public class ResourceLogic extends AbstractLogic
Constructor and Description |
---|
ResourceLogic() |
Modifier and Type | Method and Description |
---|---|
void |
activateResource(String gridId,
String resourceId) |
void |
addResource(Resource resource,
boolean allowAllAccess) |
void |
clear() |
void |
deactivateResource(String gridId,
String resourceId) |
void |
deleteResource(String serviceGridId,
String resourceId) |
boolean |
isResourceVisible(String serviceGridId,
String resourceId) |
ResourceSearchResult |
searchResources(int startIndex,
int maxCount,
String gridId,
String userId,
MatchingCondition[] conditions,
Order[] orders,
Scope scope) |
void |
setResourceVisible(String serviceGridId,
String resourceId,
boolean visible) |
<T> T |
transactRead(String serviceGridId,
String resourceId,
jp.go.nict.langrid.commons.lang.block.BlockPR<Resource,T> block) |
void |
transactUpdate(String serviceGridId,
String resourceId,
jp.go.nict.langrid.commons.lang.block.BlockP<Resource> block) |
getAccessLimitDao, getAccessLogDao, getAccessRightDao, getAccessStateDao, getDaoContext, getDaoFactory, getDomainDao, getFederationDao, getGridDao, getInvocationDao, getNewsDao, getNodeDao, getOperationRequestDao, getOverUseLimitDao, getOverUseStateDao, getProtocolDao, getResourceDao, getResourceTypeDao, getScheduleDao, getServiceDao, getServiceDeploymentDao, getServiceTypeDao, getSystemPropertyDao, getTemporaryUserDao, getUserDao
public ResourceLogic() throws DaoException
DaoException
public void clear() throws DaoException
DaoException
public ResourceSearchResult searchResources(int startIndex, int maxCount, String gridId, String userId, MatchingCondition[] conditions, Order[] orders, Scope scope) throws DaoException
DaoException
public void addResource(Resource resource, boolean allowAllAccess) throws ResourceAlreadyExistsException, DaoException, ResourceLogicException
public void deleteResource(String serviceGridId, String resourceId) throws DaoException, ResourceLogicException
DaoException
ResourceLogicException
public <T> T transactRead(String serviceGridId, String resourceId, jp.go.nict.langrid.commons.lang.block.BlockPR<Resource,T> block) throws ResourceNotFoundException, DaoException
public void transactUpdate(String serviceGridId, String resourceId, jp.go.nict.langrid.commons.lang.block.BlockP<Resource> block) throws ResourceNotFoundException, DaoException
public boolean isResourceVisible(String serviceGridId, String resourceId) throws ResourceNotFoundException, DaoException
public void setResourceVisible(String serviceGridId, String resourceId, boolean visible) throws ResourceNotFoundException, DaoException
public void activateResource(String gridId, String resourceId) throws ResourceNotFoundException, DaoException
public void deactivateResource(String gridId, String resourceId) throws ResourceNotFoundException, DaoException