Class WorkingCopyAspect

java.lang.Object
org.alfresco.repo.coci.WorkingCopyAspect
All Implemented Interfaces:
CopyServicePolicies.OnCopyNodePolicy, NodeServicePolicies.BeforeArchiveNodePolicy, NodeServicePolicies.OnRemoveAspectPolicy, NodeServicePolicies.OnRestoreNodePolicy, ClassPolicy, Policy

  • Constructor Details

    • WorkingCopyAspect

      public WorkingCopyAspect()
  • Method Details

    • setPolicyComponent

      public void setPolicyComponent(PolicyComponent policyComponent)
      Sets the policy component
    • setNodeService

      public void setNodeService(NodeService nodeService)
      Set the node service
    • setNodeDAO

      public void setNodeDAO(NodeDAO nodeDAO)
      Set the node dao
    • setLockService

      public void setLockService(LockService lockService)
      Set the lock service
    • setCheckOutCheckInService

      public void setCheckOutCheckInService(CheckOutCheckInService checkOutCheckInService)
      Parameters:
      checkOutCheckInService - the service dealing with working copies
    • setPolicyBehaviourFilter

      public void setPolicyBehaviourFilter(BehaviourFilter policyBehaviourFilter)
      Parameters:
      policyBehaviourFilter - BehaviourFilter
    • init

      public void init()
      Initialise method
    • beforeDeleteWorkingCopy

      public void beforeDeleteWorkingCopy(NodeRef nodeRef)
      beforeDeleteNode policy behaviour
      Parameters:
      nodeRef - the node reference about to be deleted
    • onDeleteCmisCreatedCheckoutWorkingCopyAssociation

      public void onDeleteCmisCreatedCheckoutWorkingCopyAssociation(AssociationRef nodeAssocRef)
      onDeleteAssociation policy behaviour If the node has the aspect ASPECT_CMIS_CREATED_CHECKEDOUT and ASSOC_WORKING_COPY_LINK association is deleted, delete the node. Fix for MNT-14850.
      Parameters:
      nodeAssocRef - ASSOC_WORKING_COPY_LINK association where the source is the checkedOut node and the target is the workingCopy
    • beforeArchiveNode

      public void beforeArchiveNode(NodeRef workingCopyNodeRef)
      beforeArchiveNode policy behaviour
      Specified by:
      beforeArchiveNode in interface NodeServicePolicies.BeforeArchiveNodePolicy
      Parameters:
      nodeRef - the node reference about to be archived
    • onRestoreNode

      public void onRestoreNode(ChildAssociationRef childAssocRef)
      onRestoreNode policy behaviour
      Specified by:
      onRestoreNode in interface NodeServicePolicies.OnRestoreNodePolicy
      Parameters:
      nodeRef - the node reference that was restored
    • onRemoveAspect

      public void onRemoveAspect(NodeRef nodeRef, QName aspectTypeQName)
      Description copied from interface: NodeServicePolicies.OnRemoveAspectPolicy
      Called after an aspect has been removed from a node
      Specified by:
      onRemoveAspect in interface NodeServicePolicies.OnRemoveAspectPolicy
      Parameters:
      nodeRef - the node from which the aspect will be removed
      aspectTypeQName - the type of the aspect
    • getCopyCallback

      public CopyBehaviourCallback getCopyCallback(QName classRef, CopyDetails copyDetails)
      Description copied from interface: CopyServicePolicies.OnCopyNodePolicy
      Called for all types and aspects before copying a node.
      Specified by:
      getCopyCallback in interface CopyServicePolicies.OnCopyNodePolicy
      Parameters:
      classRef - the type or aspect qualified name
      copyDetails - the details of the impending copy
      Returns:
      Returns CopyBehaviourCallback
      See Also: