public class ResourceManagement extends AbstractLangridService implements ResourceManagementService
Constructor and Description |
---|
ResourceManagement() |
ResourceManagement(ServiceContext context) |
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 ResourceManagement()
public ResourceManagement(ServiceContext context)
@AccessRightValidatedMethod(policy=ADMINONLY) @TransactionMethod public void clear() throws AccessLimitExceededException, NoAccessPermissionException, ServiceConfigurationException, UnknownException
clear
in interface ResourceManagementService
AccessLimitExceededException
NoAccessPermissionException
ServiceConfigurationException
UnknownException
@AccessRightValidatedMethod @ValidatedMethod @TransactionMethod public ResourceEntrySearchResult searchResources(@IntNotNegative int startIndex, @IntInRange(minimum=0,maximum=100) int maxCount, @NotNull@EachElement@ValidMatchingCondition MatchingCondition[] conditions, @NotNull@EachElement@ValidOrder Order[] orders, @NotEmpty@ValidEnum(value=Scope.class) String scope) throws AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, ServiceConfigurationException, UnknownException, UnsupportedMatchingMethodException
@AccessRightValidatedMethod(policy=RESOURCEOWNER_OR_ADMIN) @ValidatedMethod @TransactionMethod public void addResource(@NotEmpty@ValidResourceId String resourceId, @NotNull ResourceProfile profile, @NotNull ResourceInstance instance, @NotNull@EachElement@ValidAttribute Attribute[] attributes) throws AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, ResourceAlreadyExistsException, ServiceConfigurationException, UnknownException
@AccessRightValidatedMethod(policy=ADMINONLY) @ValidatedMethod @TransactionMethod public void addResourceAs(@NotEmpty@ValidUserId String ownerUserId, @NotEmpty@ValidResourceId String resourceId, @NotNull ResourceProfile profile, @NotNull ResourceInstance instance, @NotNull@EachElement@ValidAttribute Attribute[] attributes) throws AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, ResourceAlreadyExistsException, ServiceConfigurationException, UnknownException
@AccessRightValidatedMethod(policy=RESOURCEOWNER_OR_ADMIN) @ValidatedMethod @TransactionMethod public void deleteResource(@NotEmpty@ValidResourceId String resourceId) throws AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, ServiceConfigurationException, ResourceNotFoundException, ResourceNotInactiveException, UnknownException
@AccessRightValidatedMethod @ValidatedMethod @TransactionMethod public ResourceProfile getResourceProfile(@NotEmpty@ValidResourceId String resourceId) throws AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, ServiceConfigurationException, ResourceNotFoundException, UnknownException
@AccessRightValidatedMethod(policy=RESOURCEOWNER_OR_ADMIN) @ValidatedMethod @TransactionMethod public void setResourceProfile(@NotEmpty@ValidResourceId String resourceId, @NotNull ResourceProfile profile) throws AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, ServiceConfigurationException, ResourceNotFoundException, UnknownException
@AccessRightValidatedMethod @ValidatedMethod @TransactionMethod public ResourceInstance getResourceInstance(String resourceId) throws AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, ServiceConfigurationException, ResourceNotFoundException, UnknownException
@AccessRightValidatedMethod(policy=RESOURCEOWNER_OR_ADMIN) @ValidatedMethod @TransactionMethod public void setResourceInstance(String resourceId, ResourceInstance instance) throws AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, ServiceConfigurationException, ResourceNotFoundException, UnknownException
@AccessRightValidatedMethod @ValidatedMethod @TransactionMethod public Attribute[] getResourceAttributes(String resourceId, String[] attributeNames) throws AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, ServiceConfigurationException, ResourceNotFoundException, UnknownException
@AccessRightValidatedMethod(policy=RESOURCEOWNER_OR_ADMIN) @ValidatedMethod @TransactionMethod public void setResourceAttributes(@NotEmpty@ValidResourceId String resourceId, @EachElement@ValidAttribute Attribute[] attributes) throws AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, ServiceConfigurationException, ResourceNotFoundException, UnknownException
@AccessRightValidatedMethod(policy=RESOURCEOWNER_OR_ADMIN) @ValidatedMethod @TransactionMethod public void activateResource(@NotEmpty@ValidResourceId String resourceId) throws AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, ServiceConfigurationException, ResourceNotFoundException, UnknownException
@AccessRightValidatedMethod(policy=RESOURCEOWNER_OR_ADMIN) @ValidatedMethod @TransactionMethod public void deactivateResource(@NotEmpty@ValidResourceId String resourceId) throws AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, ServiceConfigurationException, ResourceNotFoundException, UnknownException
@AccessRightValidatedMethod @ValidatedMethod @TransactionMethod public boolean isResourceActive(@NotEmpty@ValidResourceId String resourceId) throws AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, ServiceConfigurationException, ResourceNotFoundException, UnknownException
@AccessRightValidatedMethod(policy=RESOURCEOWNER_OR_ADMIN) @ValidatedMethod @TransactionMethod public void authorizeResource(@NotEmpty@ValidResourceId String resourceId) throws AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, ServiceConfigurationException, ResourceNotFoundException, UnknownException
@AccessRightValidatedMethod(policy=RESOURCEOWNER_OR_ADMIN) @ValidatedMethod @TransactionMethod public void deauthorizeResource(@NotEmpty@ValidResourceId String resourceId) throws AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, ServiceConfigurationException, ResourceNotFoundException, UnknownException
protected static void validateInputAttribute(String parameterName, Attribute[] attributes) throws InvalidParameterException
InvalidParameterException