fr.paris.lutece.plugins.workflow.modules.alert.business
Class AlertDAO

java.lang.Object
  extended by fr.paris.lutece.plugins.workflow.modules.alert.business.AlertDAO
All Implemented Interfaces:
IAlertDAO

public class AlertDAO
extends java.lang.Object
implements IAlertDAO

AlertDAO


Constructor Summary
AlertDAO()
           
 
Method Summary
 void deleteByHistory(int nIdResourceHistory, int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Remove alert by history
 void deleteByTask(int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Remove alert by task
 void insert(Alert alertValue, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert new record
 Alert load(int nIdResourceHistory, int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load a record by primary key
 java.util.List<Alert> selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Find all alerts
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlertDAO

public AlertDAO()
Method Detail

insert

public void insert(Alert alertValue,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert new record

Specified by:
insert in interface IAlertDAO
Parameters:
alertValue - the Alert Object
plugin - the plugin

load

public Alert load(int nIdResourceHistory,
                  int nIdTask,
                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load a record by primary key

Specified by:
load in interface IAlertDAO
Parameters:
nIdResourceHistory - the action history id
nIdTask - the task id
plugin - the plugin
Returns:
Alert Object

deleteByHistory

public void deleteByHistory(int nIdResourceHistory,
                            int nIdTask,
                            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove alert by history

Specified by:
deleteByHistory in interface IAlertDAO
Parameters:
nIdResourceHistory - the History id
nIdTask - the task id
plugin - the plugin

deleteByTask

public void deleteByTask(int nIdTask,
                         fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove alert by task

Specified by:
deleteByTask in interface IAlertDAO
Parameters:
nIdTask - the task id
plugin - the plugin

selectAll

public java.util.List<Alert> selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find all alerts

Specified by:
selectAll in interface IAlertDAO
Parameters:
plugin - the plugin
Returns:
a list of Alert


Copyright © 2012 Mairie de Paris. All Rights Reserved.