fr.paris.lutece.plugins.workflow.modules.mappings.service
Interface ICodeMappingService

All Known Implementing Classes:
CodeMappingService

public interface ICodeMappingService

ICodeMappingService


Method Summary
 boolean createCodeMapping(ICodeMapping codeMapping)
          Create a code mapping
 fr.paris.lutece.portal.business.workflow.Action getAction(int nIdAction)
          Get the workflow action
 ICodeMapping getCodeMapping(int nIdCode)
          Get the ICodeMapping
 fr.paris.lutece.util.ReferenceList getListActions(java.lang.String strMappingTypeKey, int nIdWorkflow)
          Get the list of actions that are not used in the mapping yet.
 java.util.List<ICodeMapping> getListCodeMappings()
          Get the list of ICodeMapping
 fr.paris.lutece.util.ReferenceList getListWorkflow()
          Get the list of workflows
 fr.paris.lutece.portal.business.workflow.Workflow getWorkflow(int nIdWorkflow)
          Get the workflow
 boolean isCodeMappingValid(ICodeMapping codeMapping)
          Check if the code mapping is valid
 void removeCodeMapping(int nIdCode)
          Remove the code mapping
 void updateCodeMapping(ICodeMapping codeMapping)
          Update the code mapping
 

Method Detail

getListCodeMappings

java.util.List<ICodeMapping> getListCodeMappings()
Get the list of ICodeMapping

Returns:
a list of ICodeMapping

getCodeMapping

ICodeMapping getCodeMapping(int nIdCode)
Get the ICodeMapping

Parameters:
nIdCode - the id code
Returns:
a ICodeMapping

getAction

fr.paris.lutece.portal.business.workflow.Action getAction(int nIdAction)
Get the workflow action

Parameters:
nIdAction - the id action
Returns:
the workflow action

getWorkflow

fr.paris.lutece.portal.business.workflow.Workflow getWorkflow(int nIdWorkflow)
Get the workflow

Parameters:
nIdWorkflow - the id workflow
Returns:
the workflow

getListWorkflow

fr.paris.lutece.util.ReferenceList getListWorkflow()
Get the list of workflows

Returns:
a ReferenceList

getListActions

fr.paris.lutece.util.ReferenceList getListActions(java.lang.String strMappingTypeKey,
                                                  int nIdWorkflow)
Get the list of actions that are not used in the mapping yet.

Parameters:
strMappingTypeKey - the mapping type key
nIdWorkflow - the id workflow
Returns:
a ReferenceList

isCodeMappingValid

boolean isCodeMappingValid(ICodeMapping codeMapping)
Check if the code mapping is valid

Parameters:
codeMapping - the code mapping
Returns:
true if the code mapping does not exist yet, false otherwise

updateCodeMapping

void updateCodeMapping(ICodeMapping codeMapping)
Update the code mapping

Parameters:
codeMapping - the code mapping

removeCodeMapping

void removeCodeMapping(int nIdCode)
Remove the code mapping

Parameters:
nIdCode - the id code

createCodeMapping

boolean createCodeMapping(ICodeMapping codeMapping)
Create a code mapping

Parameters:
codeMapping - the code mapping
Returns:
true if the code mapping is created, false otherwise


Copyright © 2012 Mairie de Paris. All Rights Reserved.