public class ServiceInstanceDaoJdbc extends Object implements IServiceInstanceDao
Constructor and Description |
---|
ServiceInstanceDaoJdbc() |
Modifier and Type | Method and Description |
---|---|
void |
add(ServiceInstanceConfig serviceInstanceConfig,
ITransaction transaction)
Add the service's instance.
|
void |
addServiceInstanceDependency(ServiceInstanceDependencyConfig serviceInstanceDependencyConfig,
ITransaction transaction)
Add the given service instance dependency to the persistence.
|
void |
delete(String serviceInstanceId,
ITransaction transaction)
Delete the service's instance.
|
void |
deleteCustomProperties(String serviceInstanceId,
ITransaction daoTransaction)
Delete all service instance´s custom properties.
|
void |
deleteCustomProperty(String serviceInstanceId,
String name,
ITransaction daoTransaction)
Delete a service instance´s custom property.
|
ServiceInstanceConfig |
get(String serviceInstanceId,
ITransaction transaction)
Get the service's instance.
|
ServiceInstanceConfig |
getByRestShortName(String restShortName,
ITransaction transaction)
Get the service's instance by rest short name.
|
List<IChannelChild> |
getChannelsChildren(String parentChannelIds,
boolean hideItems,
String serviceId,
IResource resource,
Locale locale,
ITransaction transaction) |
List<IChannelChild> |
getChildrenData(String channelId,
int hidePages,
String serviceId,
IResource resource,
Locale locale,
ITransaction transaction) |
HashMap<String,String> |
getCustomProperties(String serviceInstanceId,
ITransaction daoTransaction)
Get all service instance's custom properties.
|
String |
getCustomProperty(String serviceInstanceId,
String name,
ITransaction daoTransaction)
Get service instance´s custom property.
|
Collection<String> |
getDependencyIdsByServiceInstanceId(String serviceInstanceId,
ITransaction transaction)
Get the ids of all the service instances that the given service instance depends on
|
Collection<String> |
getIdsByChannelIdAndServiceId(String channelId,
String serviceId,
ITransaction transaction)
Get a list of ids in a given channel and of a given service.
|
Collection<String> |
getIdsByServiceInstanceAndDependencyType(String serviceInstanceId,
String dependencyType,
ITransaction transaction)
Get the ids of the service instances that the given service instance depends on by the given dependency type.
|
Collection<String> |
getIdsOfDependentServiceInstances(String serviceInstanceId,
ITransaction transaction)
Get the ids of all service instances that depends on the given service instance.
|
ServiceInstanceDependencyConfig |
getServiceInstanceDependency(String dependencyId,
ITransaction transaction)
Get a
ServiceInstanceDependencyConfig by the dependencyId. |
Collection<String> |
getServiceInstancesIdsByAutoAdminPageId(String pageId,
ITransaction transaction)
Returns a collection of serviceInstanceIds that contain the pageid as its auto administration page.
|
void |
removeServiceInstanceDependencies(String dependentServiceInstanceId,
String dependencyType,
ITransaction transaction)
Remove the service instance dependencies that matches the dependent service instance id and dependency type given.
|
void |
setCustomProperty(String serviceInstanceId,
String name,
String value,
ITransaction daoTransaction)
Set service instance´s custom property.
|
void |
update(ServiceInstanceConfig serviceInstanceConfig,
ITransaction transaction)
Update the service's instance.
|
public ServiceInstanceConfig get(String serviceInstanceId, ITransaction transaction) throws DaoException, PortalException
IServiceInstanceDao
get
in interface IServiceInstanceDao
DaoException
PortalException
public ServiceInstanceConfig getByRestShortName(String restShortName, ITransaction transaction) throws DaoException, PortalException
IServiceInstanceDao
getByRestShortName
in interface IServiceInstanceDao
restShortName
- rest short name of the service instance.transaction
- transaction used to perform the query.DaoException
- if any database error occurs during the process.PortalException
- if any other error occurs during the process.public void add(ServiceInstanceConfig serviceInstanceConfig, ITransaction transaction) throws DaoException, PortalException
IServiceInstanceDao
add
in interface IServiceInstanceDao
DaoException
PortalException
public void update(ServiceInstanceConfig serviceInstanceConfig, ITransaction transaction) throws DaoException, PortalException
IServiceInstanceDao
update
in interface IServiceInstanceDao
DaoException
PortalException
public void delete(String serviceInstanceId, ITransaction transaction) throws DaoException, PortalException
IServiceInstanceDao
delete
in interface IServiceInstanceDao
DaoException
PortalException
public Collection<String> getIdsByChannelIdAndServiceId(String channelId, String serviceId, ITransaction transaction) throws DaoException, PortalException
IServiceInstanceDao
getIdsByChannelIdAndServiceId
in interface IServiceInstanceDao
DaoException
PortalException
public String getCustomProperty(String serviceInstanceId, String name, ITransaction daoTransaction) throws DaoException, PortalException
IServiceInstanceDao
getCustomProperty
in interface IServiceInstanceDao
DaoException
PortalException
public HashMap<String,String> getCustomProperties(String serviceInstanceId, ITransaction daoTransaction) throws DaoException, PortalException
IServiceInstanceDao
getCustomProperties
in interface IServiceInstanceDao
DaoException
PortalException
public void setCustomProperty(String serviceInstanceId, String name, String value, ITransaction daoTransaction) throws DaoException, PortalException
IServiceInstanceDao
setCustomProperty
in interface IServiceInstanceDao
DaoException
PortalException
public void deleteCustomProperties(String serviceInstanceId, ITransaction daoTransaction) throws DaoException, PortalException
IServiceInstanceDao
deleteCustomProperties
in interface IServiceInstanceDao
DaoException
PortalException
public void deleteCustomProperty(String serviceInstanceId, String name, ITransaction daoTransaction) throws DaoException, PortalException
IServiceInstanceDao
deleteCustomProperty
in interface IServiceInstanceDao
DaoException
PortalException
public Collection<String> getIdsOfDependentServiceInstances(String serviceInstanceId, ITransaction transaction) throws PortalException
IServiceInstanceDao
getIdsOfDependentServiceInstances
in interface IServiceInstanceDao
serviceInstanceId
- the service instance the returned service instances depend on.transaction
- the transaction for persistence access.PortalException
public Collection<String> getIdsByServiceInstanceAndDependencyType(String serviceInstanceId, String dependencyType, ITransaction transaction) throws DaoException, PortalException
IServiceInstanceDao
getIdsByServiceInstanceAndDependencyType
in interface IServiceInstanceDao
serviceInstanceId
- the id of the service instance that depends on the returned service instances.dependencyType
- the type of dependency.transaction
- the transaction for persistence access.ManagerException
PortalException
DaoException
public void addServiceInstanceDependency(ServiceInstanceDependencyConfig serviceInstanceDependencyConfig, ITransaction transaction) throws PortalException
IServiceInstanceDao
addServiceInstanceDependency
in interface IServiceInstanceDao
serviceInstanceDependencyConfig
- the information about the dependency to be added.transaction
- the transaction for persistence access.PortalException
public void removeServiceInstanceDependencies(String dependentServiceInstanceId, String dependencyType, ITransaction transaction) throws PortalException
IServiceInstanceDao
removeServiceInstanceDependencies
in interface IServiceInstanceDao
PortalException
public List<IChannelChild> getChannelsChildren(String parentChannelIds, boolean hideItems, String serviceId, IResource resource, Locale locale, ITransaction transaction) throws PortalException
getChannelsChildren
in interface IServiceInstanceDao
PortalException
public List<IChannelChild> getChildrenData(String channelId, int hidePages, String serviceId, IResource resource, Locale locale, ITransaction transaction) throws DaoException, PortalException
getChildrenData
in interface IServiceInstanceDao
DaoException
PortalException
public Collection<String> getDependencyIdsByServiceInstanceId(String serviceInstanceId, ITransaction transaction) throws DaoException, PortalException
IServiceInstanceDao
getDependencyIdsByServiceInstanceId
in interface IServiceInstanceDao
DaoException
PortalException
public ServiceInstanceDependencyConfig getServiceInstanceDependency(String dependencyId, ITransaction transaction) throws DaoException, PortalException
IServiceInstanceDao
ServiceInstanceDependencyConfig
by the dependencyId.getServiceInstanceDependency
in interface IServiceInstanceDao
DaoException
PortalException
public Collection<String> getServiceInstancesIdsByAutoAdminPageId(String pageId, ITransaction transaction) throws PortalException
IServiceInstanceDao
getServiceInstancesIdsByAutoAdminPageId
in interface IServiceInstanceDao
pageId
- to list the service instance ids by.transaction
- the transaction in which the operation should happenPortalException
LumisXP 12.3.0.200408 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.