Package lumis.portal.serviceinterface
Class ServiceInterfaceDaoHib
- java.lang.Object
-
- lumis.portal.dao.hibernate.GenericHibernateManualUpdateDao<ServiceInterfaceConfig,String>
-
- lumis.portal.serviceinterface.ServiceInterfaceDaoHib
-
- All Implemented Interfaces:
IServiceInterfaceDao
public class ServiceInterfaceDaoHib extends GenericHibernateManualUpdateDao<ServiceInterfaceConfig,String> implements IServiceInterfaceDao
- Since:
- 4.0.0
- Version:
- $Revision: 14232 $ $Date: 2012-04-20 17:45:55 -0300 (Fri, 20 Apr 2012) $
-
-
Constructor Summary
Constructors Constructor Description ServiceInterfaceDaoHib()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addOrUpdate(ServiceInterfaceConfig serviceInterfaceConfig, ITransaction daoTransaction)
Add or update the service's interface.boolean
delete(ServiceInterfaceConfig serviceInterfaceConfig, ITransaction daoTransaction)
Delete the service's interface.ServiceInterfaceConfig
get(String serviceInterfaceId, ITransaction daoTransaction)
Returns the bean with the given id.String
getCustomDefaultStyleId(String serviceInterfaceId, ITransaction daoTransaction)
Get the id of the custom default style.String
getDefaultStyleId(String serviceInterfaceId, ITransaction daoTransaction)
Get the default style of the service's interface.protected String
getIdentifier(ServiceInterfaceConfig serviceInterfaceConfig)
Collection<String>
getIdsByServiceId(String serviceId, ITransaction daoTransaction)
Get all interfaces ids from a given service.void
setCustomDefaultStyleId(String serviceInterfaceId, String serviceInterfaceStyleId, ITransaction daoTransaction)
Update the id of the custom default style.void
setDefaultStyleId(String serviceInterfaceId, String serviceInterfaceStyleId, ITransaction daoTransaction)
Update the default style of the service's interface.-
Methods inherited from class lumis.portal.dao.hibernate.GenericHibernateManualUpdateDao
add, delete, evict, exists, findByCriteria, findByCriteria, getPersistentClass, setReadOnly, update
-
-
-
-
Method Detail
-
getIdentifier
protected String getIdentifier(ServiceInterfaceConfig serviceInterfaceConfig)
- Specified by:
getIdentifier
in classGenericHibernateManualUpdateDao<ServiceInterfaceConfig,String>
-
get
public ServiceInterfaceConfig get(String serviceInterfaceId, ITransaction daoTransaction) throws DaoException, PortalException
Description copied from class:GenericHibernateManualUpdateDao
Returns the bean with the given id. The bean is set as read-only, so changes on it won't persist automatically.- Specified by:
get
in interfaceIServiceInterfaceDao
- Overrides:
get
in classGenericHibernateManualUpdateDao<ServiceInterfaceConfig,String>
- Parameters:
serviceInterfaceId
- the bean's id.daoTransaction
- the transaction for persistence access. Must be aITransactionHibernate
.- Returns:
- the bean.
- Throws:
DaoException
PortalException
-
addOrUpdate
public void addOrUpdate(ServiceInterfaceConfig serviceInterfaceConfig, ITransaction daoTransaction) throws DaoException, PortalException
Description copied from interface:IServiceInterfaceDao
Add or update the service's interface. Add the service's interface if it don't exist.- Specified by:
addOrUpdate
in interfaceIServiceInterfaceDao
- Overrides:
addOrUpdate
in classGenericHibernateManualUpdateDao<ServiceInterfaceConfig,String>
- Throws:
DaoException
PortalException
-
delete
public boolean delete(ServiceInterfaceConfig serviceInterfaceConfig, ITransaction daoTransaction) throws DaoException, PortalException
Description copied from interface:IServiceInterfaceDao
Delete the service's interface.- Specified by:
delete
in interfaceIServiceInterfaceDao
- Throws:
DaoException
PortalException
-
setDefaultStyleId
public void setDefaultStyleId(String serviceInterfaceId, String serviceInterfaceStyleId, ITransaction daoTransaction) throws DaoException, PortalException
Description copied from interface:IServiceInterfaceDao
Update the default style of the service's interface.- Specified by:
setDefaultStyleId
in interfaceIServiceInterfaceDao
- Throws:
DaoException
PortalException
-
getDefaultStyleId
public String getDefaultStyleId(String serviceInterfaceId, ITransaction daoTransaction) throws DaoException, PortalException
Description copied from interface:IServiceInterfaceDao
Get the default style of the service's interface.- Specified by:
getDefaultStyleId
in interfaceIServiceInterfaceDao
- Returns:
- Throws:
DaoException
PortalException
-
setCustomDefaultStyleId
public void setCustomDefaultStyleId(String serviceInterfaceId, String serviceInterfaceStyleId, ITransaction daoTransaction) throws DaoException, PortalException
Description copied from interface:IServiceInterfaceDao
Update the id of the custom default style.- Specified by:
setCustomDefaultStyleId
in interfaceIServiceInterfaceDao
- Throws:
DaoException
PortalException
-
getCustomDefaultStyleId
public String getCustomDefaultStyleId(String serviceInterfaceId, ITransaction daoTransaction) throws DaoException, PortalException
Description copied from interface:IServiceInterfaceDao
Get the id of the custom default style.- Specified by:
getCustomDefaultStyleId
in interfaceIServiceInterfaceDao
- Returns:
- Throws:
DaoException
PortalException
-
getIdsByServiceId
public Collection<String> getIdsByServiceId(String serviceId, ITransaction daoTransaction) throws DaoException, PortalException
Description copied from interface:IServiceInterfaceDao
Get all interfaces ids from a given service.- Specified by:
getIdsByServiceId
in interfaceIServiceInterfaceDao
- Returns:
- Throws:
DaoException
PortalException
-
-