fr.paris.lutece.plugins.form.service
Class OutputProcessorService

java.lang.Object
  extended by fr.paris.lutece.plugins.form.service.OutputProcessorService

public class OutputProcessorService
extends Object

OutputProcessorService


Method Summary
 void addProcessorAssociation(int nIdForm, String strKeyProcessor)
          Add an association between a form and a processor
 Collection<IOutputProcessor> getAllProcessors()
          Get the list of all processors
static OutputProcessorService getInstance()
          Get the instance of this service
 IOutputProcessor getProcessorByKey(String strKey)
          Get a processor by its key
 List<IOutputProcessor> getProcessorsByIdForm(int nIdForm)
          Get processors associated with a given form
 boolean isUsed(int nIdForm, String strKeyProcessor)
          Check if an association exist between a form and a processor
 void removeProcessorAssociation(int nIdForm, String strKeyProcessor)
          Remove an association between a form and a processor
 void removeProcessorAssociationsByIdForm(int nIdForm)
          Remove associations between a form and processors
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static OutputProcessorService getInstance()
Get the instance of this service

Returns:
The instance of this service

getAllProcessors

public Collection<IOutputProcessor> getAllProcessors()
Get the list of all processors

Returns:
The list of all processors

getProcessorsByIdForm

public List<IOutputProcessor> getProcessorsByIdForm(int nIdForm)
Get processors associated with a given form

Parameters:
nIdForm - The if of the form the processors must be associated with
Returns:
The list of processors, or an empty list of none was found

removeProcessorAssociationsByIdForm

public void removeProcessorAssociationsByIdForm(int nIdForm)
Remove associations between a form and processors

Parameters:
nIdForm - The id of the form to remove the associations of

removeProcessorAssociation

public void removeProcessorAssociation(int nIdForm,
                                       String strKeyProcessor)
Remove an association between a form and a processor

Parameters:
nIdForm - The id of the form
strKeyProcessor - The key of the processor

addProcessorAssociation

public void addProcessorAssociation(int nIdForm,
                                    String strKeyProcessor)
Add an association between a form and a processor

Parameters:
nIdForm - The id of the form
strKeyProcessor - The key of the processor

isUsed

public boolean isUsed(int nIdForm,
                      String strKeyProcessor)
Check if an association exist between a form and a processor

Parameters:
nIdForm - The id of the form
strKeyProcessor - The key of the processor
Returns:
True if an association exist, false otherwise

getProcessorByKey

public IOutputProcessor getProcessorByKey(String strKey)
Get a processor by its key

Parameters:
strKey - The key of the processor to get
Returns:
The processor, or null if no processor has the given key


Copyright © 2014 Mairie de Paris. All Rights Reserved.