public class P2PGridBasisServiceDao extends Object implements DataDao, ServiceDao
Constructor and Description |
---|
P2PGridBasisServiceDao(ServiceDao dao,
DaoContext context,
String activeBpelServicesUrl,
String activeBpelDeployBinding) |
Modifier and Type | Method and Description |
---|---|
void |
addService(Service service) |
void |
clear() |
void |
clearDetachedInvocations() |
void |
deleteService(String serviceGridId,
String serviceId) |
void |
deleteServicesOfGrid(String gridId) |
void |
deleteServicesOfUser(String userGridId,
String userId) |
Service |
getService(String serviceGridId,
String serviceId) |
InputStream |
getServiceInstance(String serviceGridId,
String serviceId) |
InputStream |
getServiceWsdl(String serviceGridId,
String serviceId) |
boolean |
isServiceExist(String serviceGridId,
String serviceId) |
List<Service> |
listAllServices(String serviceGridId) |
List<BPELService> |
listParentServicesOf(String gridId,
String serviceId) |
List<Service> |
listServicesOfUser(String userGridId,
String userId) |
void |
removeEntityListener() |
ServiceSearchResult |
searchServices(int startIndex,
int maxCount,
String serviceGridId,
boolean acrossGrids,
MatchingCondition[] conditions,
Order[] orders) |
ServiceStatRankingSearchResult |
searchServiceStatRanking(int startIndex,
int maxCount,
String serviceGridId,
String nodeId,
boolean acrossGrids,
MatchingCondition[] conditions,
int sinceDays,
Order[] orders) |
void |
setEntityListener() |
boolean |
updateDataSource(Data data) |
boolean |
updateDataTarget(Data data) |
public P2PGridBasisServiceDao(ServiceDao dao, DaoContext context, String activeBpelServicesUrl, String activeBpelDeployBinding)
public void setEntityListener()
setEntityListener
in interface DataDao
public void removeEntityListener()
removeEntityListener
in interface DataDao
public boolean updateDataSource(Data data) throws DataDaoException, UnmatchedDataTypeException
updateDataSource
in interface DataDao
DataDaoException
UnmatchedDataTypeException
public boolean updateDataTarget(Data data) throws UnmatchedDataTypeException, DataDaoException
updateDataTarget
in interface DataDao
UnmatchedDataTypeException
DataDaoException
public void addService(Service service) throws DaoException, ServiceAlreadyExistsException
addService
in interface ServiceDao
DaoException
ServiceAlreadyExistsException
public void clear() throws DaoException
clear
in interface ServiceDao
DaoException
public void clearDetachedInvocations() throws DaoException
clearDetachedInvocations
in interface ServiceDao
DaoException
public void deleteService(String serviceGridId, String serviceId) throws ServiceNotFoundException, DaoException
deleteService
in interface ServiceDao
ServiceNotFoundException
DaoException
public void deleteServicesOfGrid(String gridId) throws DaoException
deleteServicesOfGrid
in interface ServiceDao
DaoException
public void deleteServicesOfUser(String userGridId, String userId) throws DaoException
deleteServicesOfUser
in interface ServiceDao
DaoException
public Service getService(String serviceGridId, String serviceId) throws ServiceNotFoundException, DaoException
getService
in interface ServiceDao
ServiceNotFoundException
DaoException
public InputStream getServiceInstance(String serviceGridId, String serviceId) throws DaoException, ServiceNotFoundException
getServiceInstance
in interface ServiceDao
DaoException
ServiceNotFoundException
public InputStream getServiceWsdl(String serviceGridId, String serviceId) throws DaoException, ServiceNotFoundException
getServiceWsdl
in interface ServiceDao
DaoException
ServiceNotFoundException
public boolean isServiceExist(String serviceGridId, String serviceId) throws DaoException
isServiceExist
in interface ServiceDao
DaoException
public List<BPELService> listParentServicesOf(String gridId, String serviceId) throws DaoException
listParentServicesOf
in interface ServiceDao
DaoException
public List<Service> listAllServices(String serviceGridId) throws DaoException
listAllServices
in interface ServiceDao
DaoException
public List<Service> listServicesOfUser(String userGridId, String userId) throws DaoException
listServicesOfUser
in interface ServiceDao
DaoException
public ServiceSearchResult searchServices(int startIndex, int maxCount, String serviceGridId, boolean acrossGrids, MatchingCondition[] conditions, Order[] orders) throws DaoException
searchServices
in interface ServiceDao
DaoException
public ServiceStatRankingSearchResult searchServiceStatRanking(int startIndex, int maxCount, String serviceGridId, String nodeId, boolean acrossGrids, MatchingCondition[] conditions, int sinceDays, Order[] orders) throws DaoException
searchServiceStatRanking
in interface ServiceDao
DaoException