lumis.portal.serviceinterface.style
Class ServiceInterfaceStyleDaoJdbc

Package class diagram package ServiceInterfaceStyleDaoJdbc
java.lang.Object
  extended by lumis.portal.serviceinterface.style.ServiceInterfaceStyleDaoJdbc
All Implemented Interfaces:
IServiceInterfaceStyleDao

public class ServiceInterfaceStyleDaoJdbc
extends Object
implements IServiceInterfaceStyleDao

DAO JDBC implementation for service interface style related data operations

Since:
4.0.8

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

ServiceInterfaceStyleDaoJdbc

public ServiceInterfaceStyleDaoJdbc()
Method Detail

addOrUpdate

public void addOrUpdate(ServiceInterfaceStyleConfig serviceInterfaceStyleConfig,
                        ITransaction daoTransaction)
                 throws DaoException,
                        PortalException
Description copied from interface: IServiceInterfaceStyleDao
Add or update the style of the service's interface. Add the style if it don't exist.

Specified by:
addOrUpdate in interface IServiceInterfaceStyleDao
Throws:
DaoException
PortalException

delete

public void delete(String serviceInterfaceStyleId,
                   String serviceInterfaceId,
                   ITransaction daoTransaction)
            throws DaoException,
                   PortalException
Description copied from interface: IServiceInterfaceStyleDao
Delete the style of the service's interface.

Specified by:
delete in interface IServiceInterfaceStyleDao
Throws:
DaoException
PortalException

get

public ServiceInterfaceStyleConfig get(String serviceInterfaceStyleId,
                                       String serviceInterfaceId,
                                       ITransaction daoTransaction)
                                throws DaoException,
                                       PortalException
Description copied from interface: IServiceInterfaceStyleDao
Get the style of the service's interface.

Specified by:
get in interface IServiceInterfaceStyleDao
Returns:
Throws:
DaoException
PortalException

getIdsByServiceInterfaceId

public Collection<String> getIdsByServiceInterfaceId(String serviceInterfaceId,
                                                     ITransaction daoTransaction)
                                              throws DaoException,
                                                     PortalException
Description copied from interface: IServiceInterfaceStyleDao
Get a list of ids given the id of the service's interface. This method don't consider isolation rules.

Specified by:
getIdsByServiceInterfaceId in interface IServiceInterfaceStyleDao
Parameters:
serviceInterfaceId - service interface identifier.
daoTransaction - transaction used to perform the query on database.
Returns:
a list of ids given the id of the service's interface.
Throws:
DaoException - if any error occurs during the process of communication with database.
PortalException - if any other error occurs during the process.

getIdsByInterfaceInstanceId

public Collection<String> getIdsByInterfaceInstanceId(String interfaceId,
                                                      String serviceInstanceId,
                                                      String interfaceInstanceId,
                                                      boolean onlyCustomStyles,
                                                      ITransaction daoTransaction)
                                               throws DaoException,
                                                      PortalException
Description copied from interface: IServiceInterfaceStyleDao
Get the list of Ids of all styles available to an interface instance considering the isolation rules.

The isolation rules are:

Specified by:
getIdsByInterfaceInstanceId in interface IServiceInterfaceStyleDao
Parameters:
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.
Returns:
list of interface styles according with the isolation rules.
Throws:
DaoException - if any error occurs during the process of communication with database.
PortalException - if any other error occurs during the process.

getWidgetStyle

public ServiceInterfaceStyleConfig getWidgetStyle(String serviceInterfaceId,
                                                  ITransaction transaction)
                                           throws DaoException,
                                                  PortalException
Description copied from interface: IServiceInterfaceStyleDao
Get the widget style of the service's interface.

Specified by:
getWidgetStyle in interface IServiceInterfaceStyleDao
Parameters:
serviceInterfaceId - id of interface.
transaction - transaction used to get information from database.
Returns:
the Interface Style entity.
Throws:
DaoException - if any error occurs during the process on database.
PortalException - if any error occurs during the process.

getIdsByXslFilePath

public Collection<String> getIdsByXslFilePath(String xslFilePath,
                                              ITransaction daoTransaction)
                                       throws DaoException,
                                              PortalException
Description copied from interface: IServiceInterfaceStyleDao
Returns a list of interface style ids that use the given XSL file.

Specified by:
getIdsByXslFilePath in interface IServiceInterfaceStyleDao
Parameters:
xslFilePath - the XSL file path.
daoTransaction - transaction used to get information from database.
Returns:
a list of interface style ids that use the given XSL file.
Throws:
DaoException - if any error occurs during the process on database.
PortalException - if any error occurs during the process.


Lumisportal  6.2.0.120405 - Copyright © 2006–2012 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.