lumis.portal.service
Interface IServiceDao

Package class diagram package IServiceDao
All Known Implementing Classes:
ServiceDaoHib, ServiceDaoJdbc

public interface IServiceDao

Interface for service DAO

Since:
4.0.0

Method Summary
 void add(ServiceConfig serviceConfig, ITransaction transaction)
          Add the service.
 void clearCache()
          Clears the caches in this DAO.
 boolean delete(String serviceId, ITransaction transaction)
          Delete the service.
 ServiceConfig get(String serviceId, ITransaction transaction)
          Get the service.
 ServiceConfig getByBaseUrl(String baseUrl, ITransaction daoTransaction)
          Returns a ServiceConfig by it's baseUrl.
 Collection<String> getServicesIds(boolean getInstantiableServicesOnly, ITransaction transaction)
          Get the ids of services.
 void update(ServiceConfig serviceConfig, ITransaction transaction)
          Update the service.
 

Method Detail

get

ServiceConfig get(String serviceId,
                  ITransaction transaction)
                  throws DaoException,
                         PortalException
Get the service.

Parameters:
serviceId -
transaction -
Returns:
Throws:
DaoException
PortalException

add

void add(ServiceConfig serviceConfig,
         ITransaction transaction)
         throws DaoException,
                PortalException
Add the service. Add the service if it don't exist.

Parameters:
serviceConfig -
transaction -
Throws:
DaoException
PortalException

update

void update(ServiceConfig serviceConfig,
            ITransaction transaction)
            throws DaoException,
                   PortalException
Update the service.

Parameters:
serviceConfig -
transaction -
Throws:
DaoException
PortalException

delete

boolean delete(String serviceId,
               ITransaction transaction)
               throws DaoException,
                      PortalException
Delete the service.

Parameters:
serviceId -
transaction -
Throws:
DaoException
PortalException

getServicesIds

Collection<String> getServicesIds(boolean getInstantiableServicesOnly,
                                  ITransaction transaction)
                                  throws PortalException
Get the ids of services.

Parameters:
transaction -
Returns:
Throws:
ManagerException
PortalException

getByBaseUrl

ServiceConfig getByBaseUrl(String baseUrl,
                           ITransaction daoTransaction)
                           throws DaoException,
                                  PortalException
Returns a ServiceConfig by it's baseUrl.

Parameters:
baseUrl -
daoTransaction -
Returns:
Throws:
DaoException
PortalException
Since:
4.0.8

clearCache

void clearCache()
                throws PortalException
Clears the caches in this DAO.

Throws:
PortalException
Since:
4.0.11


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