jp.go.nict.langrid.management.logic
クラス ResourceLogic

java.lang.Object
  上位を拡張 jp.go.nict.langrid.management.logic.AbstractLogic
      上位を拡張 jp.go.nict.langrid.management.logic.ResourceLogic

public class ResourceLogic
extends AbstractLogic

Resourceに関するロジックを提供する。

バージョン:
$Revision:4384 $
作成者:
Takao Nakaguchi, $Author:nakaguchi $

コンストラクタの概要
ResourceLogic()
          コンストラクタ。
 
メソッドの概要
 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, BlockPR<Resource,T> block)
           
 void transactUpdate(String serviceGridId, String resourceId, BlockP<Resource> block)
           
 
クラス jp.go.nict.langrid.management.logic.AbstractLogic から継承されたメソッド
getAccessLimitDao, getAccessLogDao, getAccessRightDao, getAccessStateDao, getDaoContext, getDaoFactory, getDomainDao, getFederationDao, getGridDao, getInvocationDao, getNewsDao, getNodeDao, getOperationRequestDao, getOverUseLimitDao, getOverUseStateDao, getProtocolDao, getResourceDao, getResourceTypeDao, getScheduleDao, getServiceDao, getServiceDeploymentDao, getServiceTypeDao, getSubscriptionDao, getSystemPropertyDao, getTemporaryUserDao, getUserDao
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

ResourceLogic

public ResourceLogic()
              throws DaoException
コンストラクタ。

例外:
DaoException
メソッドの詳細

clear

public void clear()
           throws DaoException
例外:
DaoException

searchResources

public ResourceSearchResult searchResources(int startIndex,
                                            int maxCount,
                                            String gridId,
                                            String userId,
                                            MatchingCondition[] conditions,
                                            Order[] orders,
                                            Scope scope)
                                     throws DaoException
例外:
DaoException

addResource

public void addResource(Resource resource,
                        boolean allowAllAccess)
                 throws ResourceAlreadyExistsException,
                        DaoException,
                        ResourceLogicException
例外:
ResourceAlreadyExistsException
DaoException
ResourceLogicException

deleteResource

public void deleteResource(String serviceGridId,
                           String resourceId)
                    throws DaoException,
                           ResourceLogicException
例外:
DaoException
ResourceLogicException

transactRead

public <T> T transactRead(String serviceGridId,
                          String resourceId,
                          BlockPR<Resource,T> block)
               throws ResourceNotFoundException,
                      DaoException
例外:
ResourceNotFoundException
DaoException

transactUpdate

public void transactUpdate(String serviceGridId,
                           String resourceId,
                           BlockP<Resource> block)
                    throws ResourceNotFoundException,
                           DaoException
例外:
ResourceNotFoundException
DaoException

isResourceVisible

public boolean isResourceVisible(String serviceGridId,
                                 String resourceId)
                          throws ResourceNotFoundException,
                                 DaoException
例外:
ResourceNotFoundException
DaoException

setResourceVisible

public void setResourceVisible(String serviceGridId,
                               String resourceId,
                               boolean visible)
                        throws ResourceNotFoundException,
                               DaoException
例外:
ResourceNotFoundException
DaoException

activateResource

public void activateResource(String gridId,
                             String resourceId)
                      throws ResourceNotFoundException,
                             DaoException
例外:
ResourceNotFoundException
DaoException

deactivateResource

public void deactivateResource(String gridId,
                               String resourceId)
                        throws ResourceNotFoundException,
                               DaoException
例外:
ResourceNotFoundException
DaoException