Methods
getCustomProperties() → {object}
Returns:
- key value pairs of custom properties.
- Type
- object
getHomeContext() → {string}
Returns:
- a context id (not the full resource URI).
- Type
- string
getLanguage() → {string}
Returns:
- Type
- string
getName() → {string}
- Description:
Get the name of the user, this is a a unique name (username) in the current repository's _principals context.
- Source:
Returns:
- Type
- string
getSource() → {Object}
Returns:
- Type
- Object
isDisabled() → {boolean}
- Description:
Check if the user is disabled. Disabled users cannot sign in, although they still exist for lookup, e.g. when presenting creators and contributors.
- Source:
Returns:
- Type
- boolean
(async) setCustomProperties(customProperties) → {Promise}
Parameters:
Name | Type | Description |
---|---|---|
customProperties |
object |
Returns:
- Type
- Promise
(async) setDisabled(disabled) → {Promise}
Parameters:
Name | Type | Description |
---|---|---|
disabled |
boolean |
Returns:
- Type
- Promise
(async) setHomeContext(contextId) → {Promise}
Parameters:
Name | Type | Description |
---|---|---|
contextId |
string | a context id (not the full resource URI). |
Returns:
- Type
- Promise
(async) setLanguage(language) → {Promise}
Parameters:
Name | Type | Description |
---|---|---|
language |
string |
Returns:
- Type
- Promise
(async) setName(name) → {Promise}
- Description:
Set a new name (username), it will not succeed if it is already in use, for instance by another user or group.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
name |
string |
Returns:
- Type
- Promise
(async) setPassword(newPassword, currentPassword) → {Promise}
Parameters:
Name | Type | Description |
---|---|---|
newPassword |
string | a new password, should be at least 8 characters long. |
currentPassword |
string | undefined | the current password, may be required depending on EntryStore configuration. |
Returns:
- Type
- Promise