public interface TemporaryUserManagementService
Modifier and Type | Method and Description |
---|---|
void |
addTemporaryUser(String userId,
String password,
Calendar beginAvailableDateTime)
Adds temporary user.
|
void |
clear()
Clears all temporary user data.
|
void |
clearExpiredUsers()
Completely clears data of temporary user exceeding validity period.
|
void |
deleteTemporaryUser(String userId)
Deletes temporary user.
|
Calendar |
getBeginAvailableDateTime(String userId)
Gets initial usage date and time of temporary user.
|
Calendar |
getEndAvailableDateTime(String userId)
Gets initial usage date and time of temporary user.
|
TemporaryUserEntrySearchResult |
searchTemporaryUsers(int startIndex,
int maxCount,
MatchingCondition[] conditions,
Order[] orders)
Searches temporary users.
|
void |
setAvailableDateTimes(String userId,
Calendar beginAvailableDateTime,
Calendar endAvailableDateTime)
Sets initial usage date and time of temporary user.
|
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 clearExpiredUsers() 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 occurredTemporaryUserEntrySearchResult searchTemporaryUsers(int startIndex, int maxCount, MatchingCondition[] conditions, Order[] orders) throws AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, ServiceConfigurationException, UnknownException
startIndex
- Start indexmaxCount
- Number of search resultsconditions
- Search conditionsorders
- 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 occurredvoid addTemporaryUser(String userId, String password, Calendar beginAvailableDateTime) throws AccessLimitExceededException, InvalidParameterException, InvalidUserIdException, NoAccessPermissionException, ServiceConfigurationException, UnknownException, UserAlreadyExistsException
userId
- Temporary user IDpassword
- PasswordbeginAvailableDateTime
- Starting date and time of validationAccessLimitExceededException
- 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 deleteTemporaryUser(String userId) throws AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, ServiceConfigurationException, UnknownException, UserNotFoundException
userId
- User ID 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 existCalendar getBeginAvailableDateTime(String userId) throws AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, ServiceConfigurationException, UnknownException, UserNotFoundException
userId
- Temporary 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 existCalendar getEndAvailableDateTime(String userId) throws AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, ServiceConfigurationException, UnknownException, UserNotFoundException
userId
- Temporary 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 setAvailableDateTimes(String userId, Calendar beginAvailableDateTime, Calendar endAvailableDateTime) throws AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, ServiceConfigurationException, UnknownException, UserNotFoundException
userId
- User IDbeginAvailableDateTime
- Starting date and time of usageendAvailableDateTime
- Ending date and time of usageAccessLimitExceededException
- 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 found