lumis.service.newsletter
Interface IScheduleDao

Package class diagram package IScheduleDao
All Known Implementing Classes:
ScheduleDaoHib

public interface IScheduleDao

Since:
4.0.8

Method Summary
 void addOrUpdate(Schedule schedule, ITransaction transaction)
          Adds or updates a Schedule
 boolean delete(String scheduleId, ITransaction transaction)
          Deletes a Schedule
 Schedule get(String scheduleId, ITransaction transaction)
          Gets a Schedule based on it's id.
 Collection<String> getActiveSchedules(String serviceInstanceId, ITransaction transaction)
          Get all active schedule objects
 Schedule getForProcess(String scheduleId)
          Gets a Schedule object setting it's status to Schedule#STATUS_PROCESSING.
 void releaseFromProcess(String scheduleId)
          Set a schedule status from Schedule#STATUS_PROCESSING to Schedule.STATUS_ENABLED.
 

Method Detail

addOrUpdate

void addOrUpdate(Schedule schedule,
                 ITransaction transaction)
                 throws DaoException,
                        PortalException
Adds or updates a Schedule

Parameters:
schedule -
transaction -
Throws:
DaoException
PortalException
Since:
4.0.8

get

Schedule get(String scheduleId,
             ITransaction transaction)
             throws DaoException,
                    PortalException
Gets a Schedule based on it's id.

Parameters:
scheduleId -
transaction -
Returns:
the schedule object
Throws:
DaoException
PortalException
Since:
4.0.8

delete

boolean delete(String scheduleId,
               ITransaction transaction)
               throws DaoException,
                      PortalException
Deletes a Schedule

Parameters:
scheduleId -
transaction -
Returns:
Throws:
DaoException
PortalException
Since:
4.0.8

getActiveSchedules

Collection<String> getActiveSchedules(String serviceInstanceId,
                                      ITransaction transaction)
                                      throws PortalException
Get all active schedule objects

Parameters:
serviceInstanceId -
transaction -
Returns:
Throws:
PortalException
Since:
4.0.8

getForProcess

Schedule getForProcess(String scheduleId)
                       throws DaoException,
                              PortalException
Gets a Schedule object setting it's status to Schedule#STATUS_PROCESSING. The method creates it's own transaction so there can be no manipulation of data on the specified bean on a active transaction.

Parameters:
scheduleId -
Returns:
Throws:
DaoException
PortalException
Since:
4.0.8

releaseFromProcess

void releaseFromProcess(String scheduleId)
                        throws DaoException,
                               PortalException
Set a schedule status from Schedule#STATUS_PROCESSING to Schedule.STATUS_ENABLED. The method creates it's own transaction so there can be no manipulation of data on the specified bean on a active transaction.

Parameters:
scheduleId -
Throws:
DaoException
PortalException
Since:
4.0.8


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