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

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

public class ServiceLogic
extends AbstractLogic

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

作成者:
Takao Nakaguchi

コンストラクタの概要
ServiceLogic(String activeBpelServicesUrl)
          コンストラクタ。
ServiceLogic(String activeBpelServicesUrl, String activeBpelDeployUserId, String activeBpelDeployPassword, String activeBpelDeployBinding)
          コンストラクタ。
 
メソッドの概要
 void activateService(String serviceGridId, String serviceId)
           
 void addService(String ownerUserId, Service service, String coreNodeUrl, boolean allowAllAccess)
           
 void clear()
           
 void deactivateService(String serviceGridId, String serviceId)
           
 void deleteService(String serviceGridId, String serviceId)
           
 void deleteServicesOfUser(String userGridId, String userId)
           
 Invocation[] getExternalInvocations(String serviceGridId, String serviceId)
           
 byte[] getServiceTypeWsdl(String coreNodeUrl, String domainId, String serviceTypeId, String serviceGridId)
           
 byte[] getServiceWsdl(String coreNodeUrl, String serviceGridId, String serviceId)
           
 boolean isServiceActive(String serviceGridId, String serviceId)
           
 boolean isServiceVisible(String serviceGridId, String serviceId)
           
 List<Service> listAllServices(String serviceGridId)
           
 ServiceSearchResult searchServices(int startIndex, int maxCount, String userGridId, String userId, String serviceGridId, boolean acrossGrids, MatchingCondition[] conditions, Order[] orders, Scope scope)
           
 ServiceSearchResult searchServicesOverGrids(int startIndex, int maxCount, String userGridId, String userId, MatchingCondition[] conditions, Order[] orders, Scope scope)
           
 void setServiceVisible(String serviceGridId, String serviceId, boolean visible)
           
<T> T
transactRead(String serviceGridId, String serviceId, BlockPR<Service,T> block)
           
 void transactUpdate(String serviceGridId, String serviceId, BlockP<Service> 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
 

コンストラクタの詳細

ServiceLogic

public ServiceLogic(String activeBpelServicesUrl)
             throws DaoException
コンストラクタ。

パラメータ:
activeBpelServicesUrl - ActiveBPELのURL
例外:
DaoException

ServiceLogic

public ServiceLogic(String activeBpelServicesUrl,
                    String activeBpelDeployUserId,
                    String activeBpelDeployPassword,
                    String activeBpelDeployBinding)
             throws DaoException
コンストラクタ。

パラメータ:
activeBpelServicesUrl - ActiveBPELのURL("http://~/services/"まで)
activeBpelDeployUserId - 配備時の認証ユーザ名
activeBpelDeployPassword - 配備時の認証パスワード
activeBpelDeployBinding - 配備時のバインディング
例外:
DaoException
メソッドの詳細

clear

public void clear()
           throws DaoException,
                  ServiceLogicException
例外:
DaoException
ServiceLogicException

searchServices

public ServiceSearchResult searchServices(int startIndex,
                                          int maxCount,
                                          String userGridId,
                                          String userId,
                                          String serviceGridId,
                                          boolean acrossGrids,
                                          MatchingCondition[] conditions,
                                          Order[] orders,
                                          Scope scope)
                                   throws DaoException,
                                          ServiceLogicException
例外:
DaoException
ServiceLogicException

searchServicesOverGrids

public ServiceSearchResult searchServicesOverGrids(int startIndex,
                                                   int maxCount,
                                                   String userGridId,
                                                   String userId,
                                                   MatchingCondition[] conditions,
                                                   Order[] orders,
                                                   Scope scope)
                                            throws DaoException,
                                                   ServiceLogicException
例外:
DaoException
ServiceLogicException

listAllServices

public List<Service> listAllServices(String serviceGridId)
                              throws DaoException,
                                     ServiceLogicException
例外:
DaoException
ServiceLogicException

addService

public void addService(String ownerUserId,
                       Service service,
                       String coreNodeUrl,
                       boolean allowAllAccess)
                throws DaoException,
                       ServiceLogicException
例外:
DaoException
ServiceLogicException

deleteService

public void deleteService(String serviceGridId,
                          String serviceId)
                   throws DaoException,
                          ServiceLogicException
例外:
DaoException
ServiceLogicException

deleteServicesOfUser

public void deleteServicesOfUser(String userGridId,
                                 String userId)
                          throws ServiceLogicException,
                                 DaoException
例外:
ServiceLogicException
DaoException

transactRead

public <T> T transactRead(String serviceGridId,
                          String serviceId,
                          BlockPR<Service,T> block)
               throws ServiceLogicException,
                      DaoException
例外:
ServiceLogicException
DaoException

transactUpdate

public void transactUpdate(String serviceGridId,
                           String serviceId,
                           BlockP<Service> block)
                    throws ServiceLogicException,
                           DaoException
例外:
ServiceLogicException
DaoException

getServiceWsdl

public byte[] getServiceWsdl(String coreNodeUrl,
                             String serviceGridId,
                             String serviceId)
                      throws ServiceNotFoundException,
                             DaoException,
                             ServiceLogicException
例外:
ServiceNotFoundException
DaoException
ServiceLogicException

getServiceTypeWsdl

public byte[] getServiceTypeWsdl(String coreNodeUrl,
                                 String domainId,
                                 String serviceTypeId,
                                 String serviceGridId)
                          throws ServiceTypeNotFoundException,
                                 DaoException,
                                 ServiceLogicException
例外:
ServiceTypeNotFoundException
DaoException
ServiceLogicException

activateService

public void activateService(String serviceGridId,
                            String serviceId)
                     throws ServiceNotActivatableException,
                            ServiceLogicException,
                            DaoException
例外:
ServiceNotActivatableException
ServiceLogicException
DaoException

deactivateService

public void deactivateService(String serviceGridId,
                              String serviceId)
                       throws ServiceLogicException,
                              ServiceNotFoundException,
                              DaoException
例外:
ServiceLogicException
ServiceNotFoundException
DaoException

isServiceActive

public boolean isServiceActive(String serviceGridId,
                               String serviceId)
                        throws ServiceNotFoundException,
                               DaoException,
                               ServiceLogicException
例外:
ServiceNotFoundException
DaoException
ServiceLogicException

getExternalInvocations

public Invocation[] getExternalInvocations(String serviceGridId,
                                           String serviceId)
                                    throws ServiceNotFoundException,
                                           DaoException,
                                           ServiceLogicException
例外:
ServiceNotFoundException
DaoException
ServiceLogicException

isServiceVisible

public boolean isServiceVisible(String serviceGridId,
                                String serviceId)
                         throws ServiceNotFoundException,
                                DaoException,
                                ServiceLogicException
例外:
ServiceNotFoundException
DaoException
ServiceLogicException

setServiceVisible

public void setServiceVisible(String serviceGridId,
                              String serviceId,
                              boolean visible)
                       throws ServiceNotFoundException,
                              DaoException,
                              ServiceLogicException
例外:
ServiceNotFoundException
DaoException
ServiceLogicException