public interface ServiceAccessLimitManagementService
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.
|
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 unexpected exception occurredAccessLimitSearchResult searchAccessLimits(int startIndex, int maxCount, String userId, String serviceId, Order[] orders) throws AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, ServiceConfigurationException, UnknownException
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 occurredAccessLimit[] getMyAccessLimits(String serviceId) throws AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, ServiceConfigurationException, UnknownException
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 occurredvoid setAccessLimit(String userId, String serviceId, String period, String limitType, int limitCount) throws AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, ServiceConfigurationException, UnknownException
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 occurredvoid deleteAccessLimit(String userId, String serviceId, String period, String limitType) throws AccessLimitNotFoundException, AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, ServiceConfigurationException, UnknownException
userId
- User IDserviceId
- Service IDperiod
- Units of periodlimitType
- Restriction typelimitCount
- Restriction valueAccessLimitNotFoundException
- 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