public interface UserManager extends Remote
Modifier and Type | Method and Description |
---|---|
NamedValueSet[] |
findCredentialManagerUsers(NamedValue[] searchOptions)
Find a list of users from the current credential manager that match
the specified search options.
|
Item[] |
findDomainUsers(NamedValue[] options,
AttributeRequest[] attrs)
Find a list of provisioned users in the current domain that match the
specified search options.
|
Preference |
getDomainDefaultUserPreference(String key,
AttributeRequest[] attributes)
Get domain level default value for a single user preference.
|
Preference[] |
getDomainDefaultUserPreferences(String[] keys,
AttributeRequest[] attributes)
Get domain level default values for the requested user preferences.
|
Item |
getUser(String name,
AttributeRequest[] attributes)
Gets the specified user by name.
|
Preference |
getUserPreference(String key,
AttributeRequest[] attributes)
Get a user preference for the current user,
by its preference key.
|
Preference[] |
getUserPreferences(String[] keys,
AttributeRequest[] attributes)
Get a set of user preferences for the current user,
by preference key.
|
Preference[] |
getUserPreferencesForUser(long userId,
String[] keys,
AttributeRequest[] attributes)
Get a set of user preferences for the specified user,
by preference key.
|
boolean |
hasUserPreference(String key)
Check if a user preference is set for the current user.
|
String[] |
listExternallySupportedUserPreferences()
Returns the list of externally supported user preferences
|
void |
provisionCurrentUserPreferences()
Synchronize the preferences of the current user with user preferences
from the Identity Repositiory.
|
void |
provisionUserPreferences(long userId)
Synchronize the preferences of the specified user with user preferences
from the Identity Repository.
|
void |
removeUserPreference(String key)
Remove a user preference for the current user.
|
void |
setDomainDefaultUserPreference(Preference value)
Set domain level default value for a single user preference.
|
void |
setDomainDefaultUserPreferences(Preference[] values)
Set domain level default values for user preferences.
|
void |
setUserPreference(Preference value)
Set a user preference for the current user.
|
void |
setUserPreferences(Preference[] values)
Set an array of user preferences for the current user.
|
void |
setUserPreferencesForUser(long userId,
Preference[] values)
Set an array of user preferences for the specified user.
|
Preference getUserPreference(String key, AttributeRequest[] attributes) throws FdkException
key
- the user preference keyattributes
- requested attributesFdkException
- - if the operation failsPreference[] getUserPreferences(String[] keys, AttributeRequest[] attributes) throws FdkException
keys
- the user preference keysattributes
- requested attributesFdkException
- - if the operation failsPreference[] getUserPreferencesForUser(long userId, String[] keys, AttributeRequest[] attributes) throws FdkException
userId
- the user IDkeys
- the user preference keysattributes
- requested attributesFdkException
- - if the operation failsvoid setUserPreference(Preference value) throws FdkException
value
- the user preference value (which contains the key)FdkException
- - if the operation failsvoid setUserPreferences(Preference[] values) throws FdkException
values
- array of user preferencesFdkException
- - if the operation failsvoid setUserPreferencesForUser(long userId, Preference[] values) throws FdkException
userId
- the user IDvalues
- the user preference value (which contains the key)FdkException
- - if the operation failsboolean hasUserPreference(String key) throws FdkException
key
- the user preference keyFdkException
- - if the operation failsvoid removeUserPreference(String key) throws FdkException
key
- the user preference keyFdkException
- - if the operation failsvoid setDomainDefaultUserPreferences(Preference[] values) throws FdkException
values
- the user preference valuesFdkException
- if the operation failsvoid setDomainDefaultUserPreference(Preference value) throws FdkException
value
- the user preference valueFdkException
- if the operation failsPreference[] getDomainDefaultUserPreferences(String[] keys, AttributeRequest[] attributes) throws FdkException
keys
- keys used to identify the user preferencesattributes
- list of FDK attributes needed in the preferenceFdkException
- if the operation failsPreference getDomainDefaultUserPreference(String key, AttributeRequest[] attributes) throws FdkException
key
- key used to identify the user preferenceattributes
- list of FDK attributes needed in the preferenceFdkException
- if the operation failsNamedValueSet[] findCredentialManagerUsers(NamedValue[] searchOptions) throws FdkException
Search a realm for a list of users that matches the options. If the realm is not specified, then the default realm is used. Null is returned if no user is found.
The value of the option specifies a filter to the option. The character '*' can be used to indicate zero or more characters in that position. Special characters '*', '(', ')', and '\' must be escaped in accordance with RFC-2254.
searchOptions
- The search options. Options must include one or
more of the following Options:
FdkException
- (FDK_INVALID_OPTION): Invalid search optionFdkException
- others: If the operation fails.Item[] findDomainUsers(NamedValue[] options, AttributeRequest[] attrs) throws FdkException
The value of the option specifies a filter to the option. Standard database and Windows wildcards (_?%*) accepted.
options
- The search options. Valid options:
FdkException
- (FDK_INVALID_OPTION): Invalid search optionFdkException
- others: If the operation fails.Item getUser(String name, AttributeRequest[] attributes) throws FdkException
name
- The name of the user to return.attributes
- additional attributes to retrieve for each user.FdkException
- if the operation fails.void provisionUserPreferences(long userId) throws FdkException
userId
- The user ID of specified userFdkException
- if the operation fails.void provisionCurrentUserPreferences() throws FdkException
FdkException
- if the operation fails.String[] listExternallySupportedUserPreferences() throws FdkException
FdkException
- if the operation fails.Copyright © 2023. All rights reserved.