Class WorkingCopyAspect

    • Constructor Detail

      • WorkingCopyAspect

        public WorkingCopyAspect()
    • Method Detail

      • setPolicyComponent

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

        public void setNodeService​(org.alfresco.service.cmr.repository.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​(org.alfresco.service.cmr.repository.NodeRef nodeRef)
        beforeDeleteNode policy behaviour
        Parameters:
        nodeRef - the node reference about to be deleted
      • onDeleteCmisCreatedCheckoutWorkingCopyAssociation

        public void onDeleteCmisCreatedCheckoutWorkingCopyAssociation​(org.alfresco.service.cmr.repository.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​(org.alfresco.service.cmr.repository.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​(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef)
        onRestoreNode policy behaviour
        Specified by:
        onRestoreNode in interface NodeServicePolicies.OnRestoreNodePolicy
        Parameters:
        nodeRef - the node reference that was restored
      • onRemoveAspect

        public void onRemoveAspect​(org.alfresco.service.cmr.repository.NodeRef nodeRef,
                                   org.alfresco.service.namespace.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