public class ServiceAccessLimitManagement extends AbstractLangridService implements ServiceAccessLimitManagementService
Constructor and Description |
---|
ServiceAccessLimitManagement()
Constructor.
|
ServiceAccessLimitManagement(ServiceContext serviceContext)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Deletes access restriction data.
|
void |
deleteAccessLimit(String userId,
String serviceId,
String period,
String limitType)
Deletes access restriction.
|
AccessLimit[] |
getMyAccessLimits(String serviceId)
Gets the access restrictions set for the called service.
|
AccessLimitSearchResult |
searchAccessLimits(int startIndex,
int maxCount,
String userId,
String serviceId,
Order[] orders)
Searches access restriction data over the specified conditions, sorts and returns.
|
void |
setAccessLimit(String userId,
String serviceId,
String period,
String limitType,
int limitCount)
Sets access restriction.
|
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, unsetFactory
public ServiceAccessLimitManagement()
public ServiceAccessLimitManagement(ServiceContext serviceContext)
serviceContext
- Service context@AccessRightValidatedMethod(policy=ADMINONLY) @TransactionMethod public void clear() throws AccessLimitExceededException, NoAccessPermissionException, ServiceConfigurationException, UnknownException
ServiceAccessLimitManagementService
clear
in interface ServiceAccessLimitManagementService
AccessLimitExceededException
- Violated an access restrictionNoAccessPermissionException
- The user executing the call lacks execution privilegesServiceConfigurationException
- The service setup was not done appropriatelyUnknownException
- An unexpected exception occurred@ValidatedMethod @AccessRightValidatedMethod(policy=SERVICEOWNER_OR_ADMIN, argNames="serviceId") @TransactionMethod public AccessLimitSearchResult searchAccessLimits(@IntNotNegative int startIndex, @IntInRange(minimum=0,maximum=100) int maxCount, @NotNull@ValidUserId(allowWildcard=true,allowEmpty=true) String userId, @NotNull@ValidServiceId(allowWildcard=true,allowEmpty=true) String serviceId, @NotNull@EachElement@ValidOrder Order[] orders) throws AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, ServiceConfigurationException, UnknownException
When userId and serviceId are omitted, specifies an empty string. When userId is omitted, search data of all users. When serviceId is omitted, search data of all services registered by the user calling this method.
searchAccessLimits
in interface ServiceAccessLimitManagementService
startIndex
- Starting position of result acquisitionmaxCount
- Maximum number of acquired resultsuserId
- Target user ID for searching access restrictionserviceId
- Target service IDs of searched access restrictionsorders
- 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 occurred@AccessRightValidatedMethod @TransactionMethod @ValidatedMethod public AccessLimit[] getMyAccessLimits(@NotEmpty@ValidServiceId String serviceId) throws AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, ServiceConfigurationException, UnknownException
ServiceAccessLimitManagementService
getMyAccessLimits
in interface ServiceAccessLimitManagementService
serviceId
- Service IDAccessLimitExceededException
- 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@AccessRightValidatedMethod(policy=SERVICEOWNER_OR_ADMIN, argNames="serviceId") @TransactionMethod @ValidatedMethod public void setAccessLimit(@NotEmpty@ValidUserId(allowWildcard=true) String userId, @NotEmpty@ValidServiceId String serviceId, @NotEmpty@ValidEnum(value=Period.class) String period, @NotEmpty@ValidEnum(value=LimitType.class) String limitType, @IntNotNegative int limitCount) throws AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, ServiceConfigurationException, UnknownException
By setting userID to "*", you can set the service's defined value of the service (the value applied to newly added services).
setAccessLimit
in interface ServiceAccessLimitManagementService
userId
- User IDserviceId
- Service IDperiod
- Units of periodlimitType
- Restriction typelimitCount
- Restriction valueAccessLimitExceededException
- 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 @TransactionMethod @AccessRightValidatedMethod(policy=SERVICEOWNER_OR_ADMIN, argNames="serviceId") public void deleteAccessLimit(@NotEmpty@ValidUserId(allowWildcard=true) String userId, @NotEmpty@ValidServiceId String serviceId, @NotEmpty@ValidEnum(value=Period.class) String period, @NotEmpty@ValidEnum(value=LimitType.class) String limitType) throws AccessLimitNotFoundException, AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, ServiceConfigurationException, UnknownException
ServiceAccessLimitManagementService
deleteAccessLimit
in interface ServiceAccessLimitManagementService
userId
- User IDserviceId
- Service IDperiod
- Units of periodlimitType
- Restriction typeAccessLimitNotFoundException
- The access restriction does not existAccessLimitExceededException
- 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