fr.paris.lutece.plugins.workflow.modules.taskautomaticassignment.service
Class AutomaticAssignmentService

java.lang.Object
  extended by fr.paris.lutece.plugins.workflow.modules.taskautomaticassignment.service.AutomaticAssignmentService

public final class AutomaticAssignmentService
extends java.lang.Object

AutomaticAssignmentService


Method Summary
 java.util.List<fr.paris.lutece.util.mail.FileAttachment> getFilesAttachment(TaskAutomaticAssignmentConfig config, int nIdRecord, int nIdDirectory)
          the files Attachments to insert in the mail
 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> getListEntriesFile(int nIdTask, java.util.Locale locale)
          Get the list of entries that have the accepted type for file
static AutomaticAssignmentService getService()
          Get the service
 boolean isEntryTypeFileAccepted(int nIdEntryType)
          Check if the given entry type id is accepted for file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getService

public static AutomaticAssignmentService getService()
Get the service

Returns:
the service

isEntryTypeFileAccepted

public boolean isEntryTypeFileAccepted(int nIdEntryType)
Check if the given entry type id is accepted for file

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

getListEntries

public 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

getListEntriesFile

public java.util.List<fr.paris.lutece.plugins.directory.business.IEntry> getListEntriesFile(int nIdTask,
                                                                                            java.util.Locale locale)
Get the list of entries that have the accepted type for file

Parameters:
nIdTask - the id task
locale - the Locale
Returns:
a List of entries

getFilesAttachment

public java.util.List<fr.paris.lutece.util.mail.FileAttachment> getFilesAttachment(TaskAutomaticAssignmentConfig config,
                                                                                   int nIdRecord,
                                                                                   int nIdDirectory)
the files Attachments to insert in the mail

Parameters:
config - the configuration
nIdRecord - the record id
nIdDirectory - the directory id
Returns:
the files Attachments to insert in the mail


Copyright © 2012 Mairie de Paris. All Rights Reserved.