fr.paris.lutece.plugins.workflow.modules.notifymylutece.service
Interface INotifyMyLuteceService

All Known Implementing Classes:
NotifyMyLuteceService

public interface INotifyMyLuteceService

INotifyMyLuteceService


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 getAvailableUsers(TaskNotifyMyLuteceConfig config)
          Get the list of available users
 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.workflowcore.service.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
 fr.paris.lutece.util.ReferenceList getSelectedUsers(TaskNotifyMyLuteceConfig config)
          Get the list of selected users
 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
 void sendMessage(javax.servlet.http.HttpServletRequest request, int nIdResourceHistory, java.util.Locale locale, fr.paris.lutece.plugins.directory.business.Record record, fr.paris.lutece.plugins.directory.business.Directory directory, TaskNotifyMyLuteceConfig config, fr.paris.lutece.plugins.workflowcore.service.task.ITask task)
          Send the message
 

Method Detail

isEntryTypeRefused

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

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

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

Returns:
a ReferenceList

getListEntries

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

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

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

java.util.List<fr.paris.lutece.plugins.workflowcore.service.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

getAvailableUsers

fr.paris.lutece.util.ReferenceList getAvailableUsers(TaskNotifyMyLuteceConfig config)
Get the list of available users

Parameters:
config - the config
Returns:
a ReferenceList

getSelectedUsers

fr.paris.lutece.util.ReferenceList getSelectedUsers(TaskNotifyMyLuteceConfig config)
Get the list of selected users

Parameters:
config - the config
Returns:
a ReferenceList

fillModel

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

sendMessage

void sendMessage(javax.servlet.http.HttpServletRequest request,
                 int nIdResourceHistory,
                 java.util.Locale locale,
                 fr.paris.lutece.plugins.directory.business.Record record,
                 fr.paris.lutece.plugins.directory.business.Directory directory,
                 TaskNotifyMyLuteceConfig config,
                 fr.paris.lutece.plugins.workflowcore.service.task.ITask task)
Send the message

Parameters:
request - the HTTP request
nIdResourceHistory - the id resource history
locale - the locale
record - the record
directory - the directory
config - the config
task - the task


Copyright © 2012 Mairie de Paris. All Rights Reserved.