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

java.lang.Object
  extended by fr.paris.lutece.plugins.workflow.modules.notifymylutece.service.NotifyMyLuteceService
All Implemented Interfaces:
INotifyMyLuteceService

public final class NotifyMyLuteceService
extends java.lang.Object
implements INotifyMyLuteceService

NotifyMyLuteceService


Field Summary
static java.lang.String BEAN_SERVICE
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BEAN_SERVICE

public static final java.lang.String BEAN_SERVICE
See Also:
Constant Field Values
Method Detail

isEntryTypeRefused

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

Specified by:
isEntryTypeRefused in interface INotifyMyLuteceService
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

Specified by:
isEntryTypeAccepted in interface INotifyMyLuteceService
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

Specified by:
getListDirectories in interface INotifyMyLuteceService
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)

Specified by:
getListEntries in interface INotifyMyLuteceService
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)

Specified by:
getListEntries in interface INotifyMyLuteceService
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

Specified by:
getReceiver in interface INotifyMyLuteceService
Parameters:
config - the config
nIdRecord - the id record
nIdDirectory - the id directory
Returns:
the receiver

getListTasks

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

Specified by:
getListTasks in interface INotifyMyLuteceService
Parameters:
nIdAction - the id action
locale - the locale
Returns:
a list of ITask

getAvailableUsers

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

Specified by:
getAvailableUsers in interface INotifyMyLuteceService
Parameters:
config - the config
Returns:
a ReferenceList

getSelectedUsers

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

Specified by:
getSelectedUsers in interface INotifyMyLuteceService
Parameters:
config - the config
Returns:
a ReferenceList

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

Specified by:
fillModel in interface INotifyMyLuteceService
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

public 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

Specified by:
sendMessage in interface INotifyMyLuteceService
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.