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


Field Summary
static java.lang.String BEAN_SERVICE
           
 
Constructor Summary
CodeMappingService()
           
 
Method Summary
 boolean createCodeMapping(ICodeMapping codeMapping)
          Create a code mapping
 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)
          Get the list of code mappings by filter
 fr.paris.lutece.util.ReferenceList getListWorkflow()
          Get the list of workflows
 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
 

Field Detail

BEAN_SERVICE

public static final java.lang.String BEAN_SERVICE
See Also:
Constant Field Values
Constructor Detail

CodeMappingService

public CodeMappingService()
Method Detail

updateCodeMapping

@Transactional(value="workflow-mappings.transactionManager")
public void updateCodeMapping(ICodeMapping codeMapping)
Update the code mapping

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

removeCodeMapping

@Transactional(value="workflow-mappings.transactionManager")
public void removeCodeMapping(int nIdCode)
Remove the code mapping

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

createCodeMapping

@Transactional(value="workflow-mappings.transactionManager")
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

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)
Get the list of code mappings by filter

Specified by:
getListCodeMappingsByFilter in interface ICodeMappingService
Parameters:
cmFilter - the filter
Returns:
a list of ICodeMapping

getCodeMapping

public ICodeMapping getCodeMapping(int nIdCode)
Get the ICodeMapping

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

getListWorkflow

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

Specified by:
getListWorkflow in interface ICodeMappingService
Returns:
a ReferenceList

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


Copyright © 2012 Mairie de Paris. All Rights Reserved.