public interface IAlertService
| Modifier and Type | Method and Description |
|---|---|
void |
create(Alert alert)
Create a new alert
|
void |
doChangeRecordState(TaskAlertConfig config,
int nIdRecord,
Alert alert)
Do change the record state
|
Alert |
find(int nIdResourceHistory,
int nIdTask)
Find an alert
|
List<Alert> |
findAll()
Find all alerts
|
long |
getDate(TaskAlertConfig config,
int nIdRecord,
int nIdDirectory)
Get the date
|
fr.paris.lutece.util.ReferenceList |
getListDirectories()
Get the list of directories
|
List<fr.paris.lutece.plugins.directory.business.IEntry> |
getListEntries(int nIdTask)
Get the list of entries from a given id task
|
fr.paris.lutece.util.ReferenceList |
getListEntriesDate(int nIdTask,
Locale locale)
Get the list of entries that have the accepted type (which are defined in workflow-alert.properties)
|
fr.paris.lutece.util.ReferenceList |
getListStates(int nIdAction)
Get the list of states
|
fr.paris.lutece.plugins.directory.business.Record |
getRecord(Alert alert)
Get the record from a given Alert
|
String |
getRecordFieldValue(int nPosition,
int nIdRecord,
int nIdDirectory)
Get the record field value
|
boolean |
isEntryTypeDateAccepted(int nIdEntryType)
Check if the given entry type id is accepted for the date
|
boolean |
isRecordStateValid(TaskAlertConfig config,
fr.paris.lutece.plugins.directory.business.Record record,
Locale locale)
Check if the record has the same state before executing the action
|
void |
removeByHistory(int nIdResourceHistory,
int nIdTask)
Remove an alert by id history
|
void |
removeByTask(int nIdTask)
Remove an alert by id task
|
void create(Alert alert)
alert - the alertvoid removeByHistory(int nIdResourceHistory,
int nIdTask)
nIdResourceHistory - the id historynIdTask - the id taskvoid removeByTask(int nIdTask)
nIdTask - the id taskAlert find(int nIdResourceHistory, int nIdTask)
nIdResourceHistory - the id historynIdTask - the id taskAlertboolean isEntryTypeDateAccepted(int nIdEntryType)
nIdEntryType - the id entry typeboolean isRecordStateValid(TaskAlertConfig config, fr.paris.lutece.plugins.directory.business.Record record, Locale locale)
config - the configrecord - the recordlocale - the localeList<fr.paris.lutece.plugins.directory.business.IEntry> getListEntries(int nIdTask)
nIdTask - the id taskfr.paris.lutece.util.ReferenceList getListEntriesDate(int nIdTask,
Locale locale)
nIdTask - the id tasklocale - the Localefr.paris.lutece.util.ReferenceList getListDirectories()
fr.paris.lutece.util.ReferenceList getListStates(int nIdAction)
nIdAction - the id actionfr.paris.lutece.plugins.directory.business.Record getRecord(Alert alert)
alert - the alertRecordlong getDate(TaskAlertConfig config, int nIdRecord, int nIdDirectory)
config - the confignIdRecord - the id recordnIdDirectory - the id directoryString getRecordFieldValue(int nPosition, int nIdRecord, int nIdDirectory)
nPosition - the position of the entrynIdRecord - the id recordnIdDirectory - the id directoryvoid doChangeRecordState(TaskAlertConfig config, int nIdRecord, Alert alert)
config - the confignIdRecord - the id recordalert - the alertCopyright © 2015 City of Paris. All rights reserved.