Package lumis.portal.serviceinterface
Interface IServiceInterfaceDao
-
- All Known Implementing Classes:
ServiceInterfaceDaoHib
public interface IServiceInterfaceDao
-
-
Method Summary
All Methods Instance Methods Abstract 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(java.lang.String interfaceId, ITransaction daoTransaction)
Get the service's interface.java.lang.String
getCustomDefaultStyleId(java.lang.String serviceInterfaceId, ITransaction daoTransaction)
Get the id of the custom default style.java.lang.String
getDefaultStyleId(java.lang.String serviceInterfaceId, ITransaction daoTransaction)
Get the default style of the service's interface.java.util.Collection<java.lang.String>
getIdsByServiceId(java.lang.String serviceId, ITransaction daoTransaction)
Get all interfaces ids from a given service.void
setCustomDefaultStyleId(java.lang.String serviceInterfaceId, java.lang.String serviceInterfaceStyleId, ITransaction daoTransaction)
Update the id of the custom default style.void
setDefaultStyleId(java.lang.String serviceInterfaceId, java.lang.String serviceInterfaceStyleId, ITransaction daoTransaction)
Update the default style of the service's interface.
-
-
-
Method Detail
-
get
ServiceInterfaceConfig get(java.lang.String interfaceId, ITransaction daoTransaction) throws DaoException, PortalException
Get the service's interface.- Parameters:
interfaceId
-daoTransaction
-- Returns:
- Throws:
DaoException
PortalException
-
getIdsByServiceId
java.util.Collection<java.lang.String> getIdsByServiceId(java.lang.String serviceId, ITransaction daoTransaction) throws DaoException, PortalException
Get all interfaces ids from a given service.- Parameters:
serviceId
-daoTransaction
-- Returns:
- Throws:
DaoException
PortalException
-
addOrUpdate
void addOrUpdate(ServiceInterfaceConfig serviceInterfaceConfig, ITransaction daoTransaction) throws DaoException, PortalException
Add or update the service's interface. Add the service's interface if it don't exist.- Parameters:
serviceInterfaceConfig
-daoTransaction
-- Throws:
DaoException
PortalException
-
delete
boolean delete(ServiceInterfaceConfig serviceInterfaceConfig, ITransaction daoTransaction) throws DaoException, PortalException
Delete the service's interface.- Parameters:
serviceInterfaceConfig
-daoTransaction
-- Throws:
DaoException
PortalException
-
setDefaultStyleId
void setDefaultStyleId(java.lang.String serviceInterfaceId, java.lang.String serviceInterfaceStyleId, ITransaction daoTransaction) throws DaoException, PortalException
Update the default style of the service's interface.- Parameters:
serviceInterfaceId
-serviceInterfaceStyleId
-daoTransaction
-- Throws:
DaoException
PortalException
-
getDefaultStyleId
java.lang.String getDefaultStyleId(java.lang.String serviceInterfaceId, ITransaction daoTransaction) throws DaoException, PortalException
Get the default style of the service's interface.- Parameters:
serviceInterfaceId
-daoTransaction
-- Returns:
- Throws:
DaoException
PortalException
-
setCustomDefaultStyleId
void setCustomDefaultStyleId(java.lang.String serviceInterfaceId, java.lang.String serviceInterfaceStyleId, ITransaction daoTransaction) throws DaoException, PortalException
Update the id of the custom default style.- Parameters:
serviceInterfaceId
-serviceInterfaceStyleId
-daoTransaction
-- Throws:
DaoException
PortalException
-
getCustomDefaultStyleId
java.lang.String getCustomDefaultStyleId(java.lang.String serviceInterfaceId, ITransaction daoTransaction) throws DaoException, PortalException
Get the id of the custom default style.- Parameters:
serviceInterfaceId
-daoTransaction
-- Returns:
- Throws:
DaoException
PortalException
-
-