|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lumis.portal.serviceinterface.style.ServiceInterfaceStyleDaoJdbc
public class ServiceInterfaceStyleDaoJdbc
DAO JDBC implementation for service interface style related data operations
Constructor Summary | |
---|---|
ServiceInterfaceStyleDaoJdbc()
|
Method Summary | |
---|---|
void |
addOrUpdate(ServiceInterfaceStyleConfig serviceInterfaceStyleConfig,
ITransaction daoTransaction)
Add or update the style of the service's interface. |
void |
delete(String serviceInterfaceStyleId,
String serviceInterfaceId,
ITransaction daoTransaction)
Delete the style of the service's interface. |
ServiceInterfaceStyleConfig |
get(String serviceInterfaceStyleId,
String serviceInterfaceId,
ITransaction daoTransaction)
Get the style of the service's interface. |
Collection<String> |
getIdsByInterfaceInstanceId(String interfaceId,
String serviceInstanceId,
String interfaceInstanceId,
boolean onlyCustomStyles,
ITransaction daoTransaction)
Get the list of Ids of all styles available to an interface instance considering the isolation rules. |
Collection<String> |
getIdsByServiceInterfaceId(String serviceInterfaceId,
ITransaction daoTransaction)
Get a list of ids given the id of the service's interface. |
Collection<String> |
getIdsByXslFilePath(String xslFilePath,
ITransaction daoTransaction)
Returns a list of interface style ids that use the given XSL file. |
ServiceInterfaceStyleConfig |
getWidgetStyle(String serviceInterfaceId,
ITransaction transaction)
Get the widget style of the service's interface. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServiceInterfaceStyleDaoJdbc()
Method Detail |
---|
public void addOrUpdate(ServiceInterfaceStyleConfig serviceInterfaceStyleConfig, ITransaction daoTransaction) throws DaoException, PortalException
IServiceInterfaceStyleDao
addOrUpdate
in interface IServiceInterfaceStyleDao
DaoException
PortalException
public void delete(String serviceInterfaceStyleId, String serviceInterfaceId, ITransaction daoTransaction) throws DaoException, PortalException
IServiceInterfaceStyleDao
delete
in interface IServiceInterfaceStyleDao
DaoException
PortalException
public ServiceInterfaceStyleConfig get(String serviceInterfaceStyleId, String serviceInterfaceId, ITransaction daoTransaction) throws DaoException, PortalException
IServiceInterfaceStyleDao
get
in interface IServiceInterfaceStyleDao
DaoException
PortalException
public Collection<String> getIdsByServiceInterfaceId(String serviceInterfaceId, ITransaction daoTransaction) throws DaoException, PortalException
IServiceInterfaceStyleDao
getIdsByServiceInterfaceId
in interface IServiceInterfaceStyleDao
serviceInterfaceId
- service interface identifier.daoTransaction
- transaction used to perform the query on database.
DaoException
- if any error occurs during the process of communication with
database.
PortalException
- if any other error occurs during the process.public Collection<String> getIdsByInterfaceInstanceId(String interfaceId, String serviceInstanceId, String interfaceInstanceId, boolean onlyCustomStyles, ITransaction daoTransaction) throws DaoException, PortalException
IServiceInterfaceStyleDao
The isolation rules are:
Isolated
- Can
be used only by one interface instance.Non-Isolated
- Can
be used for any the interface instance. This level is the default for new
styles.Shared
- Can be
used just by service instances indicated by the user during the add
custom interface style process.
getIdsByInterfaceInstanceId
in interface IServiceInterfaceStyleDao
interfaceId
- identifier of the interface target.serviceInstanceId
- service interface identifier.interfaceInstanceId
- interface instance identifier.onlyCustomStyles
- determine if is to return only custom styles.daoTransaction
- transaction used to perform the query on database.
DaoException
- if any error occurs during the process of communication with
database.
PortalException
- if any other error occurs during the process.public ServiceInterfaceStyleConfig getWidgetStyle(String serviceInterfaceId, ITransaction transaction) throws DaoException, PortalException
IServiceInterfaceStyleDao
getWidgetStyle
in interface IServiceInterfaceStyleDao
serviceInterfaceId
- id of interface.transaction
- transaction used to get information from database.
DaoException
- if any error occurs during the process on database.
PortalException
- if any error occurs during the process.public Collection<String> getIdsByXslFilePath(String xslFilePath, ITransaction daoTransaction) throws DaoException, PortalException
IServiceInterfaceStyleDao
getIdsByXslFilePath
in interface IServiceInterfaceStyleDao
xslFilePath
- the XSL file path.daoTransaction
- transaction used to get information from database.
DaoException
- if any error occurs during the process on database.
PortalException
- if any error occurs during the process.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |