Package fr.becpg.repo.entity.policy
Class DocumentAspectPolicy
java.lang.Object
fr.becpg.repo.policy.AbstractBeCPGPolicy
fr.becpg.repo.entity.policy.DocumentAspectPolicy
- All Implemented Interfaces:
org.alfresco.repo.content.ContentServicePolicies.OnContentUpdatePolicy,org.alfresco.repo.copy.CopyServicePolicies.OnCopyCompletePolicy,org.alfresco.repo.copy.CopyServicePolicies.OnCopyNodePolicy,org.alfresco.repo.node.NodeServicePolicies.OnCreateAssociationPolicy,org.alfresco.repo.policy.AssociationPolicy,org.alfresco.repo.policy.ClassPolicy,org.alfresco.repo.policy.Policy
public class DocumentAspectPolicy
extends AbstractBeCPGPolicy
implements org.alfresco.repo.content.ContentServicePolicies.OnContentUpdatePolicy, org.alfresco.repo.node.NodeServicePolicies.OnCreateAssociationPolicy
DocumentAspectPolicy class.
- Version:
- $Id: $Id
- Author:
- maxime
-
Nested Class Summary
Nested classes/interfaces inherited from class fr.becpg.repo.policy.AbstractBeCPGPolicy
AbstractBeCPGPolicy.BeCPGPolicyTransactionListenerNested classes/interfaces inherited from interface org.alfresco.repo.policy.Policy
org.alfresco.repo.policy.Policy.Arg -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate AssociationServiceprivate static final org.apache.commons.logging.LogFields inherited from class fr.becpg.repo.policy.AbstractBeCPGPolicy
ASSOC_REGISTRY, KEY_PENDING_DELETE_NODES, KEY_REGISTRY, lockService, nodeService, policyBehaviourFilter, policyComponent, postTransactionListener, transactionListenerFields inherited from interface org.alfresco.repo.content.ContentServicePolicies.OnContentUpdatePolicy
QNAMEFields inherited from interface org.alfresco.repo.copy.CopyServicePolicies.OnCopyCompletePolicy
QNAMEFields inherited from interface org.alfresco.repo.copy.CopyServicePolicies.OnCopyNodePolicy
ARG_0, ARG_1, QNAMEFields inherited from interface org.alfresco.repo.node.NodeServicePolicies.OnCreateAssociationPolicy
QNAMEFields inherited from interface org.alfresco.repo.policy.Policy
NAMESPACE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleandoBeforeCommit(String key, Set<org.alfresco.service.cmr.repository.NodeRef> pendingNodes) doBeforeCommit.voiddoInit()doInit.voidonContentUpdate(org.alfresco.service.cmr.repository.NodeRef nodeRef, boolean newContent) voidonCreateAssociation(org.alfresco.service.cmr.repository.AssociationRef nodeAssocRef) voidsetAssociationService(AssociationService associationService) Setter for the fieldassociationService.Methods inherited from class fr.becpg.repo.policy.AbstractBeCPGPolicy
containsNodeInQueue, containsNodeInQueue, disableOnCopyBehaviour, doAfterAssocsCommit, doAfterCommit, doBeforeAssocsCommit, generateDefaultKey, getCopyCallback, getKeyRegistry, init, isBeCPGVersion, isEntityTemplate, isNotLocked, isPendingDelete, isPropChanged, isVersionNode, isVersionStoreNode, isWorkingCopyOrVersion, onCopyComplete, queueAssoc, queueAssoc, queueNode, queueNode, setLockService, setNodeService, setPolicyBehaviourFilter, setPolicyComponent, unQueueNode, unQueueNode
-
Field Details
-
logger
private static final org.apache.commons.logging.Log logger -
associationService
-
-
Constructor Details
-
DocumentAspectPolicy
public DocumentAspectPolicy()
-
-
Method Details
-
setAssociationService
Setter for the field
associationService.- Parameters:
associationService- aAssociationServiceobject
-
doInit
public void doInit()doInit.
- Specified by:
doInitin classAbstractBeCPGPolicy
-
onContentUpdate
public void onContentUpdate(org.alfresco.service.cmr.repository.NodeRef nodeRef, boolean newContent) - Specified by:
onContentUpdatein interfaceorg.alfresco.repo.content.ContentServicePolicies.OnContentUpdatePolicy
-
onCreateAssociation
public void onCreateAssociation(org.alfresco.service.cmr.repository.AssociationRef nodeAssocRef) - Specified by:
onCreateAssociationin interfaceorg.alfresco.repo.node.NodeServicePolicies.OnCreateAssociationPolicy
-
doBeforeCommit
protected boolean doBeforeCommit(String key, Set<org.alfresco.service.cmr.repository.NodeRef> pendingNodes) doBeforeCommit.
- Overrides:
doBeforeCommitin classAbstractBeCPGPolicy- Parameters:
key- aStringobject.pendingNodes- aSetobject.- Returns:
- a boolean.
-