lumis.portal.serviceinterface
Class ServiceInterfaceDaoHib

Package class diagram package ServiceInterfaceDaoHib
java.lang.Object
  extended by lumis.portal.dao.hibernate.GenericHibernateManualUpdateDao<ServiceInterfaceConfig,String>
      extended by lumis.portal.serviceinterface.ServiceInterfaceDaoHib
All Implemented Interfaces:
IServiceInterfaceDao

public class ServiceInterfaceDaoHib
extends GenericHibernateManualUpdateDao<ServiceInterfaceConfig,String>
implements IServiceInterfaceDao

Since:
4.0.0

Constructor Summary
ServiceInterfaceDaoHib()
           
 
Method Summary
 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, findByCriteria, findByCriteria, getPersistentClass, setReadOnly, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceInterfaceDaoHib

public ServiceInterfaceDaoHib()
Method Detail

getIdentifier

protected String getIdentifier(ServiceInterfaceConfig serviceInterfaceConfig)
Specified by:
getIdentifier in class GenericHibernateManualUpdateDao<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 interface IServiceInterfaceDao
Overrides:
get in class GenericHibernateManualUpdateDao<ServiceInterfaceConfig,String>
Parameters:
serviceInterfaceId - the bean's id.
daoTransaction - the transaction for persistence access. Must be a ITransactionHibernate.
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 interface IServiceInterfaceDao
Overrides:
addOrUpdate in class GenericHibernateManualUpdateDao<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 interface IServiceInterfaceDao
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 interface IServiceInterfaceDao
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 interface IServiceInterfaceDao
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 interface IServiceInterfaceDao
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 interface IServiceInterfaceDao
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 interface IServiceInterfaceDao
Returns:
Throws:
DaoException
PortalException


Lumisportal  4.1.0.071221 - Copyright © 2001-2007, Lumis. All Rights Reserved.