fr.paris.lutece.plugins.workflow.modules.notifycrm.service
Interface INotifyCRMService

All Known Implementing Classes:
NotifyCRMService

public interface INotifyCRMService

INotifyCRMService


Method Summary
 java.util.Map<java.lang.String,java.lang.Object> fillModel(TaskNotifyCRMConfig config, fr.paris.lutece.plugins.directory.business.Record record, fr.paris.lutece.plugins.directory.business.Directory directory, javax.servlet.http.HttpServletRequest request, int nIdAction, int nIdHistory)
          Fill the model for the notification message
 java.lang.String getIdDemand(TaskNotifyCRMConfig config, int nIdRecord, int nIdDirectory)
          Get the id demand
 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 from a given id task
 java.util.List<fr.paris.lutece.plugins.directory.business.IEntry> getListEntriesFreemarker(int nIdTask)
          Get the list of entries that have not the refused type (which are defined in the workflow-notifycrm.properties).
 fr.paris.lutece.util.ReferenceList getListEntriesIdDemand(int nIdTask, java.util.Locale locale)
          Get the list of entries that have the accepted type (which are defined in workflow-notifycrm.properties)
 fr.paris.lutece.util.ReferenceList getListEntriesUserGuid(int nIdTask, java.util.Locale locale)
          Get the list of entries that have the accepted type (which are defined in workflow-notifycrm.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 getUserGuid(TaskNotifyCRMConfig config, int nIdRecord, int nIdDirectory)
          Get the user guid
 boolean isEntryTypeIdDemandAccepted(int nIdEntryType)
          Check if the given entry type id is accepted for the id demand
 boolean isEntryTypeRefused(int nIdEntryType)
          Check if the given entry type id is refused
 boolean isEntryTypeUserGuidAccepted(int nIdEntryType)
          Check if the given entry type id is accepted for the user guid
 

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

isEntryTypeIdDemandAccepted

boolean isEntryTypeIdDemandAccepted(int nIdEntryType)
Check if the given entry type id is accepted for the id demand

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

isEntryTypeUserGuidAccepted

boolean isEntryTypeUserGuidAccepted(int nIdEntryType)
Check if the given entry type id is accepted for the user guid

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

java.util.List<fr.paris.lutece.plugins.directory.business.IEntry> getListEntries(int nIdTask)
Get the list of entries from a given id task

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

getListEntriesIdDemand

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

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

getListEntriesUserGuid

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

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

getListEntriesFreemarker

java.util.List<fr.paris.lutece.plugins.directory.business.IEntry> getListEntriesFreemarker(int nIdTask)
Get the list of entries that have not the refused type (which are defined in the workflow-notifycrm.properties).
This list will be displayed as a freemarker label that the webmaster can use to write the notifications.

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

getIdDemand

java.lang.String getIdDemand(TaskNotifyCRMConfig config,
                             int nIdRecord,
                             int nIdDirectory)
Get the id demand

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

getUserGuid

java.lang.String getUserGuid(TaskNotifyCRMConfig config,
                             int nIdRecord,
                             int nIdDirectory)
Get the user guid

Parameters:
config - the config
nIdRecord - the id record
nIdDirectory - the id directory
Returns:
the user guid, an empty string if the position is not set

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

fillModel

java.util.Map<java.lang.String,java.lang.Object> fillModel(TaskNotifyCRMConfig config,
                                                           fr.paris.lutece.plugins.directory.business.Record record,
                                                           fr.paris.lutece.plugins.directory.business.Directory directory,
                                                           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
request - the HTTP request
nIdAction - the id action
nIdHistory - the id history
Returns:
the model filled


Copyright © 2012 Mairie de Paris. All Rights Reserved.