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

java.lang.Object
  extended by fr.paris.lutece.plugins.workflow.modules.alert.business.AlertHome

public final class AlertHome
extends java.lang.Object

AlertHome


Method Summary
static void create(Alert alert)
          Creation of an instance of alert
static Alert find(int nIdResourceHistory, int nIdTask)
          Load the Alert Object
static java.util.List<Alert> findAll()
          Find all alerts
static void removeByHistory(int nIdResourceHistory, int nIdTask)
          Remove the alert by history
static void removeByTask(int nIdTask)
          Remove alert by task
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static void create(Alert alert)
Creation of an instance of alert

Parameters:
alert - The instance of alert which contains the informations to store

removeByHistory

public static void removeByHistory(int nIdResourceHistory,
                                   int nIdTask)
Remove the alert by history

Parameters:
nIdResourceHistory - the history key
nIdTask - The task key

removeByTask

public static void removeByTask(int nIdTask)
Remove alert by task

Parameters:
nIdTask - The task key

find

public static Alert find(int nIdResourceHistory,
                         int nIdTask)
Load the Alert Object

Parameters:
nIdResourceHistory - the history id
nIdTask - the task id
Returns:
the Config Object

findAll

public static java.util.List<Alert> findAll()
Find all alerts

Returns:
a list of Alert


Copyright © 2011 Mairie de Paris. All Rights Reserved.