fr.paris.lutece.plugins.workflow.modules.notifymylutece.service
Class NotifyMyLuteceService

java.lang.Object
  extended by fr.paris.lutece.plugins.workflow.modules.notifymylutece.service.NotifyMyLuteceService

public final class NotifyMyLuteceService
extends java.lang.Object

NotifyMyLuteceService


Method Summary
 java.util.Map<java.lang.String,java.lang.Object> fillModel(TaskNotifyMyLuteceConfig config, fr.paris.lutece.plugins.directory.business.Record record, fr.paris.lutece.plugins.directory.business.Directory directory, java.lang.String strReceiver, javax.servlet.http.HttpServletRequest request, int nIdAction, int nIdHistory)
          Fill the model for the notification message
 fr.paris.lutece.util.ReferenceList getListDirectories()
          Get the list of directorise
 java.util.List<fr.paris.lutece.plugins.directory.business.IEntry> getListEntries(int nIdTask)
          Get the list of entries that have not the refused type (which are defined in the workflow-notifymylutece.properties)
 fr.paris.lutece.util.ReferenceList getListEntries(int nIdTask, java.util.Locale locale)
          Get the list of entries that have the accepted type (which are defined in workflow-notifymylutece.properties)
 java.util.List<fr.paris.lutece.plugins.workflow.business.task.ITask> getListTasks(int nIdAction, java.util.Locale locale)
          Get the list of tasks
 java.lang.String getReceiver(TaskNotifyMyLuteceConfig config, int nIdRecord, int nIdDirectory)
          Get the receiver
static NotifyMyLuteceService getService()
          Get the instance of the service
 boolean isEntryTypeAccepted(int nIdEntryType)
          Check if the given entry type id is accepted
 boolean isEntryTypeRefused(int nIdEntryType)
          Check if the given entry type id is refused
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getService

public static NotifyMyLuteceService getService()
Get the instance of the service

Returns:
the instance of the service

isEntryTypeRefused

public boolean isEntryTypeRefused(int nIdEntryType)
Check if the given entry type id is refused

Parameters:
nIdEntryType - the id entry type
Returns:
true if it is refused, false otherwise

isEntryTypeAccepted

public boolean isEntryTypeAccepted(int nIdEntryType)
Check if the given entry type id is accepted

Parameters:
nIdEntryType - the id entry type
Returns:
true if it is accepted, false otherwise

getListDirectories

public fr.paris.lutece.util.ReferenceList getListDirectories()
Get the list of directorise

Returns:
a ReferenceList

getListEntries

public fr.paris.lutece.util.ReferenceList getListEntries(int nIdTask,
                                                         java.util.Locale locale)
Get the list of entries that have the accepted type (which are defined in workflow-notifymylutece.properties)

Parameters:
nIdTask - the id task
locale - the Locale
Returns:
a ReferenceList

getListEntries

public java.util.List<fr.paris.lutece.plugins.directory.business.IEntry> getListEntries(int nIdTask)
Get the list of entries that have not the refused type (which are defined in the workflow-notifymylutece.properties)

Parameters:
nIdTask - the id task
Returns:
a list of IEntry

getReceiver

public java.lang.String getReceiver(TaskNotifyMyLuteceConfig config,
                                    int nIdRecord,
                                    int nIdDirectory)
Get the receiver

Parameters:
config - the config
nIdRecord - the id record
nIdDirectory - the id directory
Returns:
the receiver

getListTasks

public java.util.List<fr.paris.lutece.plugins.workflow.business.task.ITask> getListTasks(int nIdAction,
                                                                                         java.util.Locale locale)
Get the list of tasks

Parameters:
nIdAction - the id action
locale - the locale
Returns:
a list of ITask

fillModel

public java.util.Map<java.lang.String,java.lang.Object> fillModel(TaskNotifyMyLuteceConfig config,
                                                                  fr.paris.lutece.plugins.directory.business.Record record,
                                                                  fr.paris.lutece.plugins.directory.business.Directory directory,
                                                                  java.lang.String strReceiver,
                                                                  javax.servlet.http.HttpServletRequest request,
                                                                  int nIdAction,
                                                                  int nIdHistory)
Fill the model for the notification message

Parameters:
config - the config
record - the record
directory - the directory
strReceiver - the user guid of the receiver
request - the HTTP requset
nIdAction - the id action
nIdHistory - the id history
Returns:
the model


Copyright © 2011 Mairie de Paris. All Rights Reserved.