public class NodeManagement extends AbstractLangridService implements NodeManagementService
Constructor and Description |
---|
NodeManagement() |
NodeManagement(ServiceContext nodeContext) |
Modifier and Type | Method and Description |
---|---|
void |
activateNode(String nodeId) |
void |
addNode(String nodeId,
NodeProfile profile,
Attribute[] attributes) |
void |
addNodeAs(String ownerUserId,
String nodeId,
NodeProfile profile,
Attribute[] attributes) |
void |
clear() |
void |
deactivateNode(String nodeId) |
void |
deleteNode(String nodeId) |
Attribute[] |
getNodeAttributes(String nodeId,
String[] attributeNames) |
NodeProfile |
getNodeProfile(String nodeId) |
String |
getSelfNodeId() |
boolean |
isNodeActive(String nodeId) |
NodeEntrySearchResult |
searchNodes(int startIndex,
int maxCount,
MatchingCondition[] conditions,
Order[] orders,
String scope) |
void |
setNodeAttributes(String nodeId,
Attribute[] attributes) |
void |
setNodeProfile(String nodeId,
NodeProfile profile) |
protected static void |
validateInputAttribute(String parameterName,
Attribute[] attributes) |
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 NodeManagement()
public NodeManagement(ServiceContext nodeContext)
@AccessRightValidatedMethod(policy=ADMINONLY) @TransactionMethod public void clear() throws AccessLimitExceededException, NoAccessPermissionException, ServiceConfigurationException, UnknownException
clear
in interface NodeManagementService
AccessLimitExceededException
NoAccessPermissionException
ServiceConfigurationException
UnknownException
@AccessRightValidatedMethod @ValidatedMethod @TransactionMethod public NodeEntrySearchResult searchNodes(@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 @ValidatedMethod @TransactionMethod public void addNode(@NotEmpty@ValidNodeId String nodeId, @NotNull@ValidNodeProfile NodeProfile profile, @NotNull@EachElement@ValidAttribute Attribute[] attributes) throws AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, NodeAlreadyExistsException, ServiceConfigurationException, UnknownException
@AccessRightValidatedMethod(policy=ADMINONLY) @ValidatedMethod @TransactionMethod public void addNodeAs(@NotEmpty@ValidUserId String ownerUserId, @NotEmpty@ValidNodeId String nodeId, @NotNull@ValidNodeProfile NodeProfile profile, @NotNull@EachElement@ValidAttribute Attribute[] attributes) throws AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, NodeAlreadyExistsException, ServiceConfigurationException, UnknownException
@ValidatedMethod @AccessRightValidatedMethod @TransactionMethod public void deleteNode(@NotEmpty@ValidNodeId String nodeId) throws AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, ServiceConfigurationException, NodeNotFoundException, NodeNotInactiveException, UnknownException
@ValidatedMethod @AccessRightValidatedMethod @TransactionMethod public NodeProfile getNodeProfile(@NotEmpty@ValidNodeId String nodeId) throws AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, ServiceConfigurationException, NodeNotFoundException, UnknownException
@ValidatedMethod @AccessRightValidatedMethod @TransactionMethod public void setNodeProfile(@NotEmpty@ValidNodeId String nodeId, @NotNull@ValidNodeProfile NodeProfile profile) throws AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, ServiceConfigurationException, NodeNotFoundException, UnknownException
@ValidatedMethod @AccessRightValidatedMethod @TransactionMethod public Attribute[] getNodeAttributes(@NotEmpty@ValidNodeId String nodeId, @NotNull@EachElement@ValidAttributeName String[] attributeNames) throws AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, ServiceConfigurationException, NodeNotFoundException, UnknownException
@ValidatedMethod @AccessRightValidatedMethod @TransactionMethod public void setNodeAttributes(@NotEmpty@ValidNodeId String nodeId, @EachElement@ValidAttribute Attribute[] attributes) throws AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, ServiceConfigurationException, NodeNotFoundException, UnknownException
@ValidatedMethod @AccessRightValidatedMethod @TransactionMethod public void activateNode(@NotEmpty@ValidNodeId String nodeId) throws AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, ServiceConfigurationException, NodeNotFoundException, UnknownException
@ValidatedMethod @AccessRightValidatedMethod(policy=ADMINONLY) @TransactionMethod public void deactivateNode(@NotEmpty@ValidNodeId String nodeId) throws AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, ServiceConfigurationException, NodeNotFoundException, UnknownException
@ValidatedMethod @AccessRightValidatedMethod @TransactionMethod public boolean isNodeActive(@NotEmpty@ValidNodeId String nodeId) throws AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, ServiceConfigurationException, NodeNotFoundException, UnknownException
@AccessRightValidatedMethod @TransactionMethod public String getSelfNodeId() throws AccessLimitExceededException, NoAccessPermissionException, ServiceConfigurationException, UnknownException
getSelfNodeId
in interface NodeManagementService
AccessLimitExceededException
NoAccessPermissionException
ServiceConfigurationException
UnknownException
protected static void validateInputAttribute(String parameterName, Attribute[] attributes) throws InvalidParameterException
InvalidParameterException