public interface UserManagementService
Modifier and Type | Method and Description |
---|---|
void |
addUser(String userId,
String password,
boolean canCallServices,
UserProfile profile,
Attribute[] attributes)
Adds a user.
|
void |
clear()
Clears all user data.
|
void |
deleteUser(String userId)
Deletes a user.
|
Calendar |
getPasswordChangedDate(String userId)
Gets date of user password change.
|
Attribute[] |
getUserAttributes(String userId,
String[] attributeNames)
Gets user's attribute data.
|
boolean |
getUserCanCallServices(String userId)
Gets whether or not user can call simple, composite services.
|
String |
getUserDigestedPassword(String userId)
Gets user's password.
|
UserProfile |
getUserProfile(String userId)
Gets user's profile.
|
void |
initialize()
Initializes user data.
|
UserEntrySearchResult |
searchUsers(int startIndex,
int maxCount,
MatchingCondition[] conditions,
Order[] orders)
Searches users over the specified conditions, sorts and returns.
|
UserEntrySearchResult |
searchUsersShouldChangePassword(int startIndex,
int maxCount,
int days,
Order[] orders)
Returns users whose password must be changed.
|
void |
setUserAttributes(String userId,
Attribute[] attributes)
Sets user's attribute data.
|
void |
setUserCanCallServices(String userId,
boolean canCallServices)
Sets whether or not user can call simple, composite services.
|
void |
setUserPassword(String userId,
String password)
Changes user's password.
|
void |
setUserProfile(String userId,
UserProfile profile)
Sets user profile data.
|
void clear() throws AccessLimitExceededException, NoAccessPermissionException, ServiceConfigurationException, UnknownException
AccessLimitExceededException
- Violated an access restrictionNoAccessPermissionException
- The user executing the call lacks execution privilegesServiceConfigurationException
- The service setup was not done appropriatelyUnknownException
- An unknwon exception occurredvoid initialize() throws AccessLimitExceededException, NoAccessPermissionException, ServiceConfigurationException, UnknownException
AccessLimitExceededException
- Violated an access restrictionNoAccessPermissionException
- The user executing the call lacks execution privilegesServiceConfigurationException
- The service setup was not done appropriatelyUnknownException
- An unknwon exception occurredUserEntrySearchResult searchUsers(int startIndex, int maxCount, MatchingCondition[] conditions, Order[] orders) throws AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, ServiceConfigurationException, UnknownException
startIndex
- Starting position of acquisitionmaxCount
- Maximum number of acquired resultsconditions
- Matching conditions. AND searchorders
- Sort conditionAccessLimitExceededException
- Violated an access restrictionInvalidParameterException
- An invalid parameter was passedNoAccessPermissionException
- The user executing the call lacks execution privilegesServiceConfigurationException
- The service setup was not done appropriatelyUnknownException
- An unexpected exception occurredvoid addUser(String userId, String password, boolean canCallServices, UserProfile profile, Attribute[] attributes) throws AccessLimitExceededException, InvalidParameterException, InvalidUserIdException, NoAccessPermissionException, ServiceConfigurationException, UnknownException, UserAlreadyExistsException
userId
- Usernamepassword
- PasswordcanCallServices
- Whether or not services can be calledprofile
- Profileattributes
- AttributeAccessLimitExceededException
- Violated an access restrictionInvalidParameterException
- An invalid parameter was passedInvalidUserIdException
- An invalid user ID was passedNoAccessPermissionException
- The user executing the call lacks execution privilegesServiceConfigurationException
- The service setup was not done appropriatelyUnknownException
- An unexpected exception occurredUserAlreadyExistsException
- The specified user already existsvoid deleteUser(String userId) throws AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, ServiceConfigurationException, UnknownException, UserNotFoundException
userId
- Username of the user to be deletedAccessLimitExceededException
- Violated an access restrictionInvalidParameterException
- An invalid parameter was passedNoAccessPermissionException
- The user executing the call lacks execution privilegesServiceConfigurationException
- The service setup was not done appropriatelyUnknownException
- An unexpected exception occurredUserNotFoundException
- The specified user does not existUserProfile getUserProfile(String userId) throws AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, ServiceConfigurationException, UnknownException, UserNotFoundException
userId
- UsernameAccessLimitExceededException
- Violated an access restrictionInvalidParameterException
- An invalid parameter was passedNoAccessPermissionException
- The user executing the call lacks execution privilegesServiceConfigurationException
- The service setup was not done appropriatelyUnknownException
- An unexpected exception occurredUserNotFoundException
- The specified user does not existvoid setUserProfile(String userId, UserProfile profile) throws AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, ServiceConfigurationException, UnknownException, UserNotFoundException
userId
- User IDprofile
- User profile dataAccessLimitExceededException
- Violated an access restrictionInvalidParameterException
- An invalid parameter was passedNoAccessPermissionException
- The user executing the call lacks execution privilegesServiceConfigurationException
- The service setup was not done appropriatelyUnknownException
- An unexpected exception occurredUserNotFoundException
- The specified user was not foundAttribute[] getUserAttributes(String userId, String[] attributeNames) throws AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, ServiceConfigurationException, UnknownException, UserNotFoundException
userId
- User IDattributeNames
- Array of names of acquired attributesAccessLimitExceededException
- Violated an access restrictionInvalidParameterException
- An invalid parameter was passedNoAccessPermissionException
- The user executing the call lacks execution privilegesServiceConfigurationException
- The service setup was not done appropriatelyUnknownException
- An unexpected exception occurredUserNotFoundException
- The specified user was not foundvoid setUserAttributes(String userId, Attribute[] attributes) throws AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, ServiceConfigurationException, UnknownException, UserNotFoundException
userId
- User IDattributes
- Array of attribute data.AccessLimitExceededException
- Violated an access restrictionInvalidParameterException
- An invalid parameter was passedNoAccessPermissionException
- The user executing the call lacks execution privilegesServiceConfigurationException
- The service setup was not done appropriatelyUnknownException
- An unexpected exception occurredUserNotFoundException
- The specified user was not foundvoid setUserPassword(String userId, String password) throws AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, ServiceConfigurationException, UnknownException, UserNotFoundException
userId
- Usernamepassword
- PasswordAccessLimitExceededException
- Violated an access restrictionInvalidParameterException
- An invalid parameter was passedNoAccessPermissionException
- The user executing the call lacks execution privilegesServiceConfigurationException
- The service setup was not done appropriatelyUnknownException
- An unexpected exception occurredUserNotFoundException
- The specified user does not existCalendar getPasswordChangedDate(String userId) throws AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, ServiceConfigurationException, UnknownException, UserNotFoundException
userId
- UsernameAccessLimitExceededException
- Violated an access restrictionInvalidParameterException
- An invalid parameter was passedNoAccessPermissionException
- The user executing the call lacks execution privilegesServiceConfigurationException
- The service setup was not done appropriatelyUnknownException
- An unexpected exception occurredUserNotFoundException
- The specified user does not existString getUserDigestedPassword(String userId) throws AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, ServiceConfigurationException, UnknownException, UserNotFoundException
userId
- UsernameAccessLimitExceededException
- Violated an access restrictionInvalidParameterException
- An invalid parameter was passedNoAccessPermissionException
- The user executing the call lacks execution privilegesServiceConfigurationException
- The service setup was not done appropriatelyUnknownException
- An unexpected exception occurredUserNotFoundException
- The specified user does not existboolean getUserCanCallServices(String userId) throws AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, ServiceConfigurationException, UnknownException, UserNotFoundException
userId
- UsernameAccessLimitExceededException
- Violated an access restrictionInvalidParameterException
- An invalid parameter was passedNoAccessPermissionException
- The user executing the call lacks execution privilegesServiceConfigurationException
- The service setup was not done appropriatelyUnknownException
- An unexpected exception occurredUserNotFoundException
- The specified user does not existvoid setUserCanCallServices(String userId, boolean canCallServices) throws AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, ServiceConfigurationException, UnknownException, UserNotFoundException
userId
- UsernamecanCallServices
- Whether or not the user can call simple and composite servicesAccessLimitExceededException
- Violated an access restrictionInvalidParameterException
- An invalid parameter was passedNoAccessPermissionException
- The user executing the call lacks execution privilegesServiceConfigurationException
- The service setup was not done appropriatelyUnknownException
- An unexpected exception occurredUserNotFoundException
- The specified user does not existUserEntrySearchResult searchUsersShouldChangePassword(int startIndex, int maxCount, int days, Order[] orders) throws AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, ServiceConfigurationException, UnknownException
startIndex
- Start indexmaxCount
- Number of search resultsdays
- Days elapsed since password changeorders
- Sort orderAccessLimitExceededException
- Violated an access restrictionInvalidParameterException
- An invalid parameter was passedNoAccessPermissionException
- The user executing the call lacks execution privilegesServiceConfigurationException
- The service setup was not done appropriatelyUnknownException
- An unexpected exception occurred