Package fr.becpg.repo.formulation.impl
Class FormulationServiceImpl<T extends FormulatedEntity>
java.lang.Object
fr.becpg.repo.formulation.impl.FormulationServiceImpl<T>
- All Implemented Interfaces:
FormulationPlugin,FormulationService<T>
public class FormulationServiceImpl<T extends FormulatedEntity>
extends Object
implements FormulationService<T>, FormulationPlugin
FormulationServiceImpl class.
- Since:
- 1.5
- Version:
- $Id: $Id
- Author:
- matthieu
-
Nested Class Summary
Nested classes/interfaces inherited from interface fr.becpg.repo.formulation.FormulationPlugin
FormulationPlugin.FormulationPluginPriority -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate AlfrescoRepository<T>private BeCPGAuditServiceprivate static final org.apache.commons.logging.Logprivate static final Stringprivate static final Stringprivate org.alfresco.service.cmr.repository.NodeServiceFields inherited from interface fr.becpg.repo.formulation.FormulationService
DEFAULT_CHAIN_ID, FAST_FORMULATION_CHAINID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionformulate(org.alfresco.service.cmr.repository.NodeRef entityNodeRef) formulate.formulate.formulate.formulate.private TformulateInternal(T repositoryEntity, String chainId) private FormulationChain<T>getMatchPriority(org.alfresco.service.namespace.QName type) getMatchPriority.voidregisterFormulationChain(Class<T> clazz, FormulationChain<T> chain) registerFormulationChain.voidrunFormulation(org.alfresco.service.cmr.repository.NodeRef entityNodeRef, String chainId) runFormulation.voidsetAlfrescoRepository(AlfrescoRepository<T> alfrescoRepository) Setter for the fieldalfrescoRepository.voidsetBeCPGAuditService(BeCPGAuditService beCPGAuditService) Setter for the fieldbeCPGAuditService.voidsetNodeService(org.alfresco.service.cmr.repository.NodeService nodeService) Setter for the fieldnodeService.booleanshouldFormulate(org.alfresco.service.cmr.repository.NodeRef entityNodeRef) shouldFormulate.
-
Field Details
-
MESSAGE_FORMULATE_FAILURE_LOOP
- See Also:
-
MESSAGE_FORMULATE_FAILURE
- See Also:
-
alfrescoRepository
-
nodeService
private org.alfresco.service.cmr.repository.NodeService nodeService -
formulationChains
private final Map<Class<T extends FormulatedEntity>,Map<String, formulationChainsFormulationChain<T extends FormulatedEntity>>> -
logger
private static final org.apache.commons.logging.Log logger -
beCPGAuditService
-
-
Constructor Details
-
FormulationServiceImpl
public FormulationServiceImpl()
-
-
Method Details
-
setAlfrescoRepository
Setter for the field
alfrescoRepository.- Parameters:
alfrescoRepository- aAlfrescoRepositoryobject.
-
setNodeService
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService) Setter for the field
nodeService.- Parameters:
nodeService- aNodeServiceobject.
-
setBeCPGAuditService
Setter for the field
beCPGAuditService.- Parameters:
beCPGAuditService- aBeCPGAuditServiceobject
-
registerFormulationChain
registerFormulationChain.
- Specified by:
registerFormulationChainin interfaceFormulationService<T extends FormulatedEntity>- Parameters:
clazz- aClassobject.chain- aFormulationChainobject.
-
formulate
formulate.
- Specified by:
formulatein interfaceFormulationService<T extends FormulatedEntity>- Parameters:
entityNodeRef- aNodeRefobject.- Returns:
- a T object.
-
formulate
formulate.
- Specified by:
formulatein interfaceFormulationService<T extends FormulatedEntity>- Parameters:
repositoryEntity- a T object.- Returns:
- a T object.
-
formulate
formulate.
- Specified by:
formulatein interfaceFormulationService<T extends FormulatedEntity>- Parameters:
repositoryEntity- a T object.chainId- aStringobject.- Returns:
- a T object.
-
formulate
formulate.
- Specified by:
formulatein interfaceFormulationService<T extends FormulatedEntity>- Parameters:
entityNodeRef- aNodeRefobject.chainId- aStringobject.- Returns:
- a T object.
-
formulateInternal
-
shouldFormulate
public boolean shouldFormulate(org.alfresco.service.cmr.repository.NodeRef entityNodeRef) shouldFormulate.
- Specified by:
shouldFormulatein interfaceFormulationService<T extends FormulatedEntity>- Parameters:
entityNodeRef- aNodeRefobject.- Returns:
- a boolean.
-
getChain
-
getMatchPriority
public FormulationPlugin.FormulationPluginPriority getMatchPriority(org.alfresco.service.namespace.QName type) getMatchPriority.
- Specified by:
getMatchPriorityin interfaceFormulationPlugin- Parameters:
type- aQNameobject.- Returns:
- a
FormulationPlugin.FormulationPluginPriorityobject.
-
runFormulation
public void runFormulation(org.alfresco.service.cmr.repository.NodeRef entityNodeRef, String chainId) runFormulation.
- Specified by:
runFormulationin interfaceFormulationPlugin- Parameters:
entityNodeRef- aNodeRefobject.chainId- aStringobject
-