Interface CopyServicePolicies.BeforeCopyPolicy

  • All Superinterfaces:
    ClassPolicy, Policy
    All Known Implementing Classes:
    TaggingServiceImpl
    Enclosing interface:
    CopyServicePolicies

    @AlfrescoPublicApi
    public static interface CopyServicePolicies.BeforeCopyPolicy
    extends ClassPolicy
    The intermediate copy callback, which occurs once it has been decided which properties and aspects will be copied, but before the copy occurs. This allows you to remove cached data based on the destination node, before it is overwritten. You are unable to make changes to what gets copied though, that must be done earlier via a CopyServicePolicies.OnCopyNodePolicy.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.alfresco.repo.policy.Policy

        Policy.Arg
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static org.alfresco.service.namespace.QName QNAME  
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void beforeCopy​(org.alfresco.service.namespace.QName classRef, org.alfresco.service.cmr.repository.NodeRef sourceNodeRef, org.alfresco.service.cmr.repository.NodeRef targetNodeRef)  
    • Field Detail

      • QNAME

        static final org.alfresco.service.namespace.QName QNAME
    • Method Detail

      • beforeCopy

        void beforeCopy​(org.alfresco.service.namespace.QName classRef,
                        org.alfresco.service.cmr.repository.NodeRef sourceNodeRef,
                        org.alfresco.service.cmr.repository.NodeRef targetNodeRef)
        Parameters:
        classRef - the type of the node that will be copied
        sourceNodeRef - the original node
        targetNodeRef - the destination node