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
  • Field Details

    • logger

      private static final org.apache.commons.logging.Log logger
    • associationService

      private AssociationService associationService
  • Constructor Details

    • DocumentAspectPolicy

      public DocumentAspectPolicy()
  • Method Details

    • setAssociationService

      public void setAssociationService(AssociationService associationService)

      Setter for the field associationService.

      Parameters:
      associationService - a AssociationService object
    • doInit

      public void doInit()

      doInit.

      Specified by:
      doInit in class AbstractBeCPGPolicy
    • onContentUpdate

      public void onContentUpdate(org.alfresco.service.cmr.repository.NodeRef nodeRef, boolean newContent)
      Specified by:
      onContentUpdate in interface org.alfresco.repo.content.ContentServicePolicies.OnContentUpdatePolicy
    • onCreateAssociation

      public void onCreateAssociation(org.alfresco.service.cmr.repository.AssociationRef nodeAssocRef)
      Specified by:
      onCreateAssociation in interface org.alfresco.repo.node.NodeServicePolicies.OnCreateAssociationPolicy
    • doBeforeCommit

      protected boolean doBeforeCommit(String key, Set<org.alfresco.service.cmr.repository.NodeRef> pendingNodes)

      doBeforeCommit.

      Overrides:
      doBeforeCommit in class AbstractBeCPGPolicy
      Parameters:
      key - a String object.
      pendingNodes - a Set object.
      Returns:
      a boolean.