Interface CopyServicePolicies.OnCopyCompletePolicy

All Superinterfaces:
ClassPolicy, Policy
All Known Implementing Classes:
AccessAuditor, ActionsAspect, ActionServiceImpl, DiscussableAspect, RulesAspect, TaggingServiceImpl
Enclosing interface:
CopyServicePolicies

@AlfrescoPublicApi public static interface CopyServicePolicies.OnCopyCompletePolicy extends ClassPolicy
Final callback after the copy (including any cascading) has been completed. This should be used where post-copy manipulation of nodes is required in order to enforce adherence to a particular dictionary or business model.

The copy map contains all the nodes created during the copy, this helps to re-map any potentially relative associations.

  • 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 final QName
     

    Fields inherited from interface org.alfresco.repo.policy.Policy

    NAMESPACE
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onCopyComplete(QName classRef, NodeRef sourceNodeRef, NodeRef targetNodeRef, boolean copyToNewNode, Map<NodeRef,NodeRef> copyMap)
     
  • Field Details

    • QNAME

      static final QName QNAME
  • Method Details

    • onCopyComplete

      void onCopyComplete(QName classRef, NodeRef sourceNodeRef, NodeRef targetNodeRef, boolean copyToNewNode, Map<NodeRef,NodeRef> copyMap)
      Parameters:
      classRef - the type of the node that was copied
      sourceNodeRef - the original node
      targetNodeRef - the destination node
      copyMap - a map containing all the nodes that have been created during the copy