UserService
injectable
Service providing user account configurations.
Methods
Section titled “Methods”changeClientLocale
Section titled “changeClientLocale”Change the users client locale
changeClientLocale(iso: string, persist: ): voidArguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
| iso | string | |
| persist | “ |
fetchUserSettings
Section titled “fetchUserSettings”fetchUserSettings(): Observable<UserSettings>getCurrentUser
Section titled “getCurrentUser”getCurrentUser(): YuvUsergetSettings
Section titled “getSettings”getSettings(section: string): Observable<any>Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
| section | string |
getUserById
Section titled “getUserById”getUserById(id: string): Observable<YuvUser>Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
| id | string |
loadObjectConfig
Section titled “loadObjectConfig”loadObjectConfig(): Observable<StoredObjectConfig | undefined>logout
Section titled “logout”logout(redirRoute: string): voidArguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
| redirRoute | string |
queryUser
Section titled “queryUser”Search for a user based on a search term
queryUser(term: string, excludeMe: boolean, roles: string[]): Observable<YuvUser[]>Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
| term | string | |
| excludeMe | boolean | |
| roles | string[] |
saveObjectConfig
Section titled “saveObjectConfig”saveObjectConfig(objectConfigs: StoredObjectConfig): Observable<any>Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
| objectConfigs | StoredObjectConfig |
saveUserSettings
Section titled “saveUserSettings”saveUserSettings(settings: Partial<UserSettings>): Observable<any>Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
| settings | Partial<UserSettings> |
setCurrentUser
Section titled “setCurrentUser”Set a new current user
setCurrentUser(user: YuvUser): voidArguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
| user | YuvUser |