public class TemporaryUserManagement extends AbstractLangridService implements TemporaryUserManagementService
| Constructor and Description |
|---|
TemporaryUserManagement()
Constructor.
|
TemporaryUserManagement(ServiceContext serviceContext)
Constructor.
|
| 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.
|
adjustDateFieldName, adjustDateFieldName, convert, convertException, convertException, convertException, convertException, convertException, convertException, convertException, convertException, convertException, convertUserOrder, copyAttributes, copyAttributes, copyProperties, getAccessLimitDao, getAccessLogDao, getAccessRightDao, getAccessStateDao, getConverter, getCoreNodeUrl, getDaoContext, getDaoFactory, getDefaultGridId, getFederationDao, getGridDao, getGridId, getNodeDao, getOverUseLimitDao, getOverUseStateDao, getResourceDao, getServiceContext, getServiceDao, getServiceDeploymentDao, getServiceLogic, getSystemPropertyDao, getTargetServiceIds, getTemporaryUserDao, getUserChecker, getUserDao, getUserLogic, unsetFactorypublic TemporaryUserManagement()
public TemporaryUserManagement(ServiceContext serviceContext)
serviceContext - Service context@AccessRightValidatedMethod(policy=ADMINONLY) public void clear() throws AccessLimitExceededException, NoAccessPermissionException, ServiceConfigurationException, UnknownException
TemporaryUserManagementServiceclear in interface TemporaryUserManagementServiceAccessLimitExceededException - Violated an access restrictionNoAccessPermissionException - The user executing the call lacks execution privilegesServiceConfigurationException - The service setup was not done appropriatelyUnknownException - An unknwon exception occurred@AccessRightValidatedMethod(policy=ADMINONLY) @TransactionMethod public void clearExpiredUsers() throws AccessLimitExceededException, NoAccessPermissionException, ServiceConfigurationException, UnknownException
TemporaryUserManagementServiceclearExpiredUsers in interface TemporaryUserManagementServiceAccessLimitExceededException - Violated an access restrictionNoAccessPermissionException - The user executing the call lacks execution privilegesServiceConfigurationException - The service setup was not done appropriatelyUnknownException - An unknwon exception occurred@ValidatedMethod @AccessRightValidatedMethod @TransactionMethod public TemporaryUserEntrySearchResult searchTemporaryUsers(@IntNotNegative int startIndex, @IntInRange(minimum=0,maximum=100) int maxCount, @NotNull@EachElement@ValidMatchingCondition MatchingCondition[] conditions, @NotNull@EachElement@ValidOrder Order[] orders) throws AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, ServiceConfigurationException, UnknownException
Searchable only by the temporary user registered by the user calling this API.
searchTemporaryUsers in interface TemporaryUserManagementServicestartIndex - 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 occurred@ValidatedMethod @AccessRightValidatedMethod @TransactionMethod public void addTemporaryUser(@NotEmpty@ValidUserId String userId, @NotEmpty String password, @NotNull Calendar beginAvailableDateTime) throws AccessLimitExceededException, InvalidParameterException, InvalidUserIdException, NoAccessPermissionException, ServiceConfigurationException, UnknownException, UserAlreadyExistsException
If a user ID already used by a user or temporary user is specified, throw InvalidUserIdException.
addTemporaryUser in interface TemporaryUserManagementServiceuserId - 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 exists@ValidatedMethod @AccessRightValidatedMethod(policy=PARENT_OR_ADMIN, argNames="userId") @TransactionMethod public void deleteTemporaryUser(@NotEmpty@ValidUserId String userId) throws AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, ServiceConfigurationException, UnknownException, UserNotFoundException
Can be executed only by the temporary user registered by the user calling this API.
deleteTemporaryUser in interface TemporaryUserManagementServiceuserId - 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 exist@ValidatedMethod @AccessRightValidatedMethod @TransactionMethod public Calendar getBeginAvailableDateTime(@NotEmpty@ValidUserId String userId) throws AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, ServiceConfigurationException, UnknownException, UserNotFoundException
Can be executed only by the temporary user registered by the user calling this API.
getBeginAvailableDateTime in interface TemporaryUserManagementServiceuserId - 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 exist@ValidatedMethod @AccessRightValidatedMethod @TransactionMethod public Calendar getEndAvailableDateTime(@NotEmpty@ValidUserId String userId) throws AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, ServiceConfigurationException, UnknownException, UserNotFoundException
Can be executed only by the temporary user registered by the user calling this API.
getEndAvailableDateTime in interface TemporaryUserManagementServiceuserId - 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 exist@ValidatedMethod @AccessRightValidatedMethod @TransactionMethod public void setAvailableDateTimes(@NotEmpty@ValidUserId String userId, @NotNull Calendar beginAvailableDateTime, @NotNull Calendar endAvailableDateTime) throws AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, ServiceConfigurationException, UnknownException, UserNotFoundException
Can be executed only by the temporary user registered by the user calling this API.
setAvailableDateTimes in interface TemporaryUserManagementServiceuserId - 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