Class ServiceInterfaceInstanceDaoJdbc
- java.lang.Object
-
- lumis.portal.serviceinterfaceinstance.ServiceInterfaceInstanceDaoJdbc
-
- All Implemented Interfaces:
IServiceInterfaceInstanceDao
public class ServiceInterfaceInstanceDaoJdbc extends Object implements IServiceInterfaceInstanceDao
JDBC based DAO implementation for service interface instance.- Since:
- 4.0.0
- Version:
- $Revision: 21381 $ $Date: 2018-06-14 11:45:08 -0300 (Thu, 14 Jun 2018) $
-
-
Constructor Summary
Constructors Constructor Description ServiceInterfaceInstanceDaoJdbc()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(ServiceInterfaceInstanceConfig serviceInterfaceInstance, ITransaction transaction)
Add the service's interface's instance.void
delete(String serviceInterfaceInstanceId, ITransaction transaction)
Delete the service's interface's instance.void
deleteCustomProperties(String interfaceInstanceId, ITransaction transaction)
Delete the custom propertires of the service's interface's instance.boolean
deleteCustomProperty(String interfaceInstanceId, String name, ITransaction transaction)
Delete a custom property of the service's interface's instance.ServiceInterfaceInstanceConfig
get(String interfaceInstanceId, ITransaction transaction)
Get the service's interface's instance.HashMap<String,String>
getCustomProperties(String interfaceInstanceId, ITransaction transaction)
Get all custom properties of the specified service insterface instance.String
getCustomProperty(String interfaceInstanceId, String name, ITransaction transaction)
Get the custom property of the service's interface's instance.List<String>
getIdsByBaseInterfaceInstanceId(String interfaceInstanceId, ITransaction daoTransaction)
Returns a list of ids of interface instances that have the given base interface instance id.List<String>
getIdsByInterfaceStyleId(String interfaceStyleId, ITransaction daoTransaction)
Returns a list of ids of interface instances that uses the given interface style id.Collection<String>
getIdsByServiceInstanceId(String serviceInstanceId, boolean includeRunTimeInterfaces, ITransaction transaction)
Get a list of ids given the id of the id of the service's instance.Collection<String>
getIdsByServiceInterfaceId(String serviceInterfaceId, boolean ignoreRuntimeInterfaces, boolean ignorePageTemplates, ITransaction transaction)
Get a list of ids given the id of the service's interface.Collection<String>
getIdsByServiceInterfaceId(String serviceInterfaceId, boolean ignoreRuntimeInterfaces, ITransaction transaction)
Get a list of ids given the id of the service's interface.Collection<String>
getIdsByServiceInterfaceIdAndServiceInstanceId(String serviceInterfaceId, String serviceInstanceId, boolean ignoreRuntimeInterfaces, boolean ignorePageTemplates, ITransaction transaction)
Get a list of ids given the id of the service's interface and the id of the service's instance.Collection<String>
getIdsByServiceInterfaceIdAndServiceInstanceId(String serviceInterfaceId, String serviceInstanceId, boolean ignoreRuntimeInterfaces, ITransaction transaction)
Get a list of ids given the id of the service's interface and the id of the service's instance.Collection<String>
getIdsByServiceInterfaceStyleId(String serviceInterfaceStyleId, String serviceInterfaceId, ITransaction transaction)
Get the id given the id of the service's interface's style.Collection<String>
getPageInterfaceInstanceIds(String pageId, ITransaction transaction)
Get the ids of the page's interface's instance.ServiceInterfaceInstanceConfig
getRunTimeInstance(String serviceInterfaceId, String serviceInstanceId, String pageId, ITransaction transaction)
Get the runtime instance.boolean
setCustomProperty(String interfaceInstanceId, String name, String value, ITransaction transaction)
Set the custom property of the service's interface's instance.void
update(ServiceInterfaceInstanceConfig serviceInterfaceInstance, ITransaction transaction)
Update the service's interface's instance.
-
-
-
Method Detail
-
get
public ServiceInterfaceInstanceConfig get(String interfaceInstanceId, ITransaction transaction) throws DaoException, PortalException
Description copied from interface:IServiceInterfaceInstanceDao
Get the service's interface's instance.- Specified by:
get
in interfaceIServiceInterfaceInstanceDao
- Returns:
- Throws:
DaoException
PortalException
-
add
public void add(ServiceInterfaceInstanceConfig serviceInterfaceInstance, ITransaction transaction) throws DaoException, PortalException
Description copied from interface:IServiceInterfaceInstanceDao
Add the service's interface's instance.- Specified by:
add
in interfaceIServiceInterfaceInstanceDao
- Throws:
DaoException
PortalException
-
update
public void update(ServiceInterfaceInstanceConfig serviceInterfaceInstance, ITransaction transaction) throws DaoException, PortalException
Description copied from interface:IServiceInterfaceInstanceDao
Update the service's interface's instance.- Specified by:
update
in interfaceIServiceInterfaceInstanceDao
- Throws:
DaoException
PortalException
-
delete
public void delete(String serviceInterfaceInstanceId, ITransaction transaction) throws DaoException, PortalException
Description copied from interface:IServiceInterfaceInstanceDao
Delete the service's interface's instance.- Specified by:
delete
in interfaceIServiceInterfaceInstanceDao
- Throws:
DaoException
PortalException
-
getRunTimeInstance
public ServiceInterfaceInstanceConfig getRunTimeInstance(String serviceInterfaceId, String serviceInstanceId, String pageId, ITransaction transaction) throws DaoException, PortalException
Description copied from interface:IServiceInterfaceInstanceDao
Get the runtime instance.- Specified by:
getRunTimeInstance
in interfaceIServiceInterfaceInstanceDao
- Returns:
- Throws:
DaoException
PortalException
-
getPageInterfaceInstanceIds
public Collection<String> getPageInterfaceInstanceIds(String pageId, ITransaction transaction) throws DaoException, PortalException
Description copied from interface:IServiceInterfaceInstanceDao
Get the ids of the page's interface's instance.- Specified by:
getPageInterfaceInstanceIds
in interfaceIServiceInterfaceInstanceDao
- Returns:
- Throws:
DaoException
PortalException
-
getIdsByServiceInterfaceId
public Collection<String> getIdsByServiceInterfaceId(String serviceInterfaceId, boolean ignoreRuntimeInterfaces, ITransaction transaction) throws DaoException, PortalException
Description copied from interface:IServiceInterfaceInstanceDao
Get a list of ids given the id of the service's interface.- Specified by:
getIdsByServiceInterfaceId
in interfaceIServiceInterfaceInstanceDao
- Returns:
- Throws:
DaoException
PortalException
-
getIdsByServiceInterfaceId
public Collection<String> getIdsByServiceInterfaceId(String serviceInterfaceId, boolean ignoreRuntimeInterfaces, boolean ignorePageTemplates, ITransaction transaction) throws DaoException, PortalException
Description copied from interface:IServiceInterfaceInstanceDao
Get a list of ids given the id of the service's interface.- Specified by:
getIdsByServiceInterfaceId
in interfaceIServiceInterfaceInstanceDao
ignorePageTemplates
- TODO- Returns:
- Throws:
DaoException
PortalException
-
getIdsByServiceInterfaceIdAndServiceInstanceId
public Collection<String> getIdsByServiceInterfaceIdAndServiceInstanceId(String serviceInterfaceId, String serviceInstanceId, boolean ignoreRuntimeInterfaces, ITransaction transaction) throws DaoException, PortalException
Description copied from interface:IServiceInterfaceInstanceDao
Get a list of ids given the id of the service's interface and the id of the service's instance.- Specified by:
getIdsByServiceInterfaceIdAndServiceInstanceId
in interfaceIServiceInterfaceInstanceDao
ignoreRuntimeInterfaces
- TODO- Returns:
- Throws:
DaoException
PortalException
-
getIdsByServiceInterfaceIdAndServiceInstanceId
public Collection<String> getIdsByServiceInterfaceIdAndServiceInstanceId(String serviceInterfaceId, String serviceInstanceId, boolean ignoreRuntimeInterfaces, boolean ignorePageTemplates, ITransaction transaction) throws DaoException, PortalException
Description copied from interface:IServiceInterfaceInstanceDao
Get a list of ids given the id of the service's interface and the id of the service's instance.- Specified by:
getIdsByServiceInterfaceIdAndServiceInstanceId
in interfaceIServiceInterfaceInstanceDao
ignoreRuntimeInterfaces
- TODOignorePageTemplates
- TODO- Returns:
- Throws:
DaoException
PortalException
-
getIdsByServiceInstanceId
public Collection<String> getIdsByServiceInstanceId(String serviceInstanceId, boolean includeRunTimeInterfaces, ITransaction transaction) throws DaoException, PortalException
Description copied from interface:IServiceInterfaceInstanceDao
Get a list of ids given the id of the id of the service's instance.- Specified by:
getIdsByServiceInstanceId
in interfaceIServiceInterfaceInstanceDao
- Returns:
- Throws:
DaoException
PortalException
-
getIdsByServiceInterfaceStyleId
public Collection<String> getIdsByServiceInterfaceStyleId(String serviceInterfaceStyleId, String serviceInterfaceId, ITransaction transaction) throws DaoException, PortalException
Description copied from interface:IServiceInterfaceInstanceDao
Get the id given the id of the service's interface's style.- Specified by:
getIdsByServiceInterfaceStyleId
in interfaceIServiceInterfaceInstanceDao
- Returns:
- Throws:
DaoException
PortalException
-
getCustomProperty
public String getCustomProperty(String interfaceInstanceId, String name, ITransaction transaction) throws DaoException, PortalException
Description copied from interface:IServiceInterfaceInstanceDao
Get the custom property of the service's interface's instance.- Specified by:
getCustomProperty
in interfaceIServiceInterfaceInstanceDao
- Returns:
- Throws:
DaoException
PortalException
-
getCustomProperties
public HashMap<String,String> getCustomProperties(String interfaceInstanceId, ITransaction transaction) throws DaoException, PortalException
Description copied from interface:IServiceInterfaceInstanceDao
Get all custom properties of the specified service insterface instance.- Specified by:
getCustomProperties
in interfaceIServiceInterfaceInstanceDao
- Returns:
- Throws:
DaoException
PortalException
-
setCustomProperty
public boolean setCustomProperty(String interfaceInstanceId, String name, String value, ITransaction transaction) throws DaoException, PortalException
Description copied from interface:IServiceInterfaceInstanceDao
Set the custom property of the service's interface's instance.- Specified by:
setCustomProperty
in interfaceIServiceInterfaceInstanceDao
- Returns:
true
if a modification was done by this method in the persistence,false
if the value was already set.- Throws:
DaoException
PortalException
-
deleteCustomProperties
public void deleteCustomProperties(String interfaceInstanceId, ITransaction transaction) throws DaoException, PortalException
Description copied from interface:IServiceInterfaceInstanceDao
Delete the custom propertires of the service's interface's instance.- Specified by:
deleteCustomProperties
in interfaceIServiceInterfaceInstanceDao
- Throws:
DaoException
PortalException
-
deleteCustomProperty
public boolean deleteCustomProperty(String interfaceInstanceId, String name, ITransaction transaction) throws PortalException
Description copied from interface:IServiceInterfaceInstanceDao
Delete a custom property of the service's interface's instance.- Specified by:
deleteCustomProperty
in interfaceIServiceInterfaceInstanceDao
- Returns:
true
if the property was deleted,false
if the property was not found.- Throws:
DaoException
PortalException
-
getIdsByInterfaceStyleId
public List<String> getIdsByInterfaceStyleId(String interfaceStyleId, ITransaction daoTransaction) throws DaoException, PortalException
Description copied from interface:IServiceInterfaceInstanceDao
Returns a list of ids of interface instances that uses the given interface style id.- Specified by:
getIdsByInterfaceStyleId
in interfaceIServiceInterfaceInstanceDao
- Parameters:
interfaceStyleId
- identifier of the style to be used on the search to filter the interface instances.daoTransaction
- the transaction for persistence access.- Returns:
- a list of ids of interface instances that uses the given interface style id.
- Throws:
DaoException
- if any error occurs during communication process with database.PortalException
- if any error occurs during the process.
-
getIdsByBaseInterfaceInstanceId
public List<String> getIdsByBaseInterfaceInstanceId(String interfaceInstanceId, ITransaction daoTransaction) throws DaoException, PortalException
Description copied from interface:IServiceInterfaceInstanceDao
Returns a list of ids of interface instances that have the given base interface instance id.- Specified by:
getIdsByBaseInterfaceInstanceId
in interfaceIServiceInterfaceInstanceDao
- Parameters:
interfaceInstanceId
- identifier of the interface instance to be used on the search to filter the interface instances.daoTransaction
- the transaction for persistence access.- Returns:
- a list of ids of interface instances that uses the givenbase interface instance id.
- Throws:
DaoException
- if any error occurs during communication process with database.PortalException
- if any error occurs during the process.
-
-