fr.paris.lutece.plugins.workflow.modules.mappings.service
Class CodeMappingService

java.lang.Object
  extended by fr.paris.lutece.plugins.workflow.modules.mappings.service.CodeMappingService
All Implemented Interfaces:
ICodeMappingService

public class CodeMappingService
extends java.lang.Object
implements ICodeMappingService

CodeMappingService


Constructor Summary
CodeMappingService()
           
 
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
 java.util.List<ICodeMapping> getListCodeMappingsByFilter(CodeMappingFilter cmFilter)
          
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CodeMappingService

public CodeMappingService()
Method Detail

getListCodeMappings

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

Specified by:
getListCodeMappings in interface ICodeMappingService
Returns:
a list of ICodeMapping

getListCodeMappingsByFilter

public java.util.List<ICodeMapping> getListCodeMappingsByFilter(CodeMappingFilter cmFilter)


getCodeMapping

public ICodeMapping getCodeMapping(int nIdCode)
Get the ICodeMapping

Specified by:
getCodeMapping in interface ICodeMappingService
Parameters:
nIdCode - the id code
Returns:
a ICodeMapping

getWorkflow

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

Specified by:
getWorkflow in interface ICodeMappingService
Parameters:
nIdWorkflow - the id workflow
Returns:
the workflow

getListWorkflow

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

Specified by:
getListWorkflow in interface ICodeMappingService
Returns:
a ReferenceList

getAction

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

Specified by:
getAction in interface ICodeMappingService
Parameters:
nIdAction - the id action
Returns:
the workflow action

getListActions

public 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.

Specified by:
getListActions in interface ICodeMappingService
Parameters:
strMappingTypeKey - the mapping type key
nIdWorkflow - the id workflow
Returns:
a ReferenceList

isCodeMappingValid

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

Specified by:
isCodeMappingValid in interface ICodeMappingService
Parameters:
codeMapping - the code mapping
Returns:
true if the code mapping does not exist yet, false otherwise

updateCodeMapping

public void updateCodeMapping(ICodeMapping codeMapping)
Update the code mapping

Specified by:
updateCodeMapping in interface ICodeMappingService
Parameters:
codeMapping - the code mapping

removeCodeMapping

public void removeCodeMapping(int nIdCode)
Remove the code mapping

Specified by:
removeCodeMapping in interface ICodeMappingService
Parameters:
nIdCode - the id code

createCodeMapping

public boolean createCodeMapping(ICodeMapping codeMapping)
Create a code mapping

Specified by:
createCodeMapping in interface ICodeMappingService
Parameters:
codeMapping - the code mapping
Returns:
true if the code mapping is created, false otherwise


Copyright © 2012 Mairie de Paris. All Rights Reserved.