public final class NotifyCRMService extends Object implements INotifyCRMService
| Modifier and Type | Field and Description |
|---|---|
static String |
BEAN_SERVICE
The Constant BEAN_SERVICE.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,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
|
String |
getCrmWebAppCode(TaskNotifyCRMConfig config,
int nIdRecord,
int nIdDirectory)
Get the crm Web app code associate to the demand
|
String |
getIdDemand(TaskNotifyCRMConfig config,
int nIdRecord,
int nIdDirectory)
Get the id demand
|
List<fr.paris.lutece.plugins.workflowcore.service.task.ITask> |
getListBelowTasks(fr.paris.lutece.plugins.workflowcore.service.task.ITask task,
Locale locale)
Get the list of tasks that have an order below the given reference task and that
have a ITaskProvider .
|
fr.paris.lutece.util.ReferenceList |
getListDirectories()
Get the list of directorise
|
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 |
getListEntriesCrmWebAppCode(int nIdTask,
Locale locale)
Get the list of entries that have the accepted type (which are defined in workflow-notifycrm.properties)
|
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,
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,
Locale locale)
Get the list of entries that have the accepted type (which are defined in workflow-notifycrm.properties)
|
Locale |
getLocale(javax.servlet.http.HttpServletRequest request)
Gets the locale.
|
String |
getUserGuid(TaskNotifyCRMConfig config,
int nIdRecord,
int nIdDirectory)
Get the user guid
|
boolean |
isEntryTypeCrmWebAppCodeAccepted(int nIdEntryType)
Check if the given entry type id is accepted for the crm web app code
|
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
|
public static final String BEAN_SERVICE
public boolean isEntryTypeRefused(int nIdEntryType)
isEntryTypeRefused in interface INotifyCRMServicenIdEntryType - the id entry typepublic boolean isEntryTypeIdDemandAccepted(int nIdEntryType)
isEntryTypeIdDemandAccepted in interface INotifyCRMServicenIdEntryType - the id entry typepublic boolean isEntryTypeUserGuidAccepted(int nIdEntryType)
isEntryTypeUserGuidAccepted in interface INotifyCRMServicenIdEntryType - the id entry typepublic boolean isEntryTypeCrmWebAppCodeAccepted(int nIdEntryType)
isEntryTypeCrmWebAppCodeAccepted in interface INotifyCRMServicenIdEntryType - the id entry typepublic fr.paris.lutece.util.ReferenceList getListDirectories()
getListDirectories in interface INotifyCRMServicepublic List<fr.paris.lutece.plugins.directory.business.IEntry> getListEntries(int nIdTask)
getListEntries in interface INotifyCRMServicenIdTask - the id taskpublic fr.paris.lutece.util.ReferenceList getListEntriesIdDemand(int nIdTask,
Locale locale)
getListEntriesIdDemand in interface INotifyCRMServicenIdTask - the id tasklocale - the Localepublic fr.paris.lutece.util.ReferenceList getListEntriesUserGuid(int nIdTask,
Locale locale)
getListEntriesUserGuid in interface INotifyCRMServicenIdTask - the id tasklocale - the Localepublic fr.paris.lutece.util.ReferenceList getListEntriesCrmWebAppCode(int nIdTask,
Locale locale)
getListEntriesCrmWebAppCode in interface INotifyCRMServicenIdTask - the id tasklocale - the Localepublic List<fr.paris.lutece.plugins.directory.business.IEntry> getListEntriesFreemarker(int nIdTask)
getListEntriesFreemarker in interface INotifyCRMServicenIdTask - the id taskIEntrypublic String getIdDemand(TaskNotifyCRMConfig config, int nIdRecord, int nIdDirectory)
getIdDemand in interface INotifyCRMServiceconfig - the confignIdRecord - the id recordnIdDirectory - the id directorypublic String getUserGuid(TaskNotifyCRMConfig config, int nIdRecord, int nIdDirectory)
getUserGuid in interface INotifyCRMServiceconfig - the confignIdRecord - the id recordnIdDirectory - the id directorypublic String getCrmWebAppCode(TaskNotifyCRMConfig config, int nIdRecord, int nIdDirectory)
getCrmWebAppCode in interface INotifyCRMServiceconfig - the confignIdRecord - the id recordnIdDirectory - the id directorypublic List<fr.paris.lutece.plugins.workflowcore.service.task.ITask> getListBelowTasks(fr.paris.lutece.plugins.workflowcore.service.task.ITask task, Locale locale)
getListBelowTasks in interface INotifyCRMServicetask - the reference tasklocale - the localeITaskpublic Map<String,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)
fillModel in interface INotifyCRMServiceconfig - the configrecord - the recorddirectory - the directoryrequest - the HTTP requestnIdAction - the id actionnIdHistory - the id historypublic Locale getLocale(javax.servlet.http.HttpServletRequest request)
getLocale in interface INotifyCRMServicerequest - the requestCopyright © 2015 City of Paris. All rights reserved.