Class TemporaryAspect

java.lang.Object
org.alfresco.repo.node.TemporaryAspect
All Implemented Interfaces:
CopyServicePolicies.OnCopyNodePolicy, ClassPolicy, Policy

public class TemporaryAspect extends Object implements CopyServicePolicies.OnCopyNodePolicy
Registers and contains the behaviour specific to the temporary aspect.
Author:
gavinc
  • Constructor Details

    • TemporaryAspect

      public TemporaryAspect()
  • Method Details

    • setPolicyComponent

      public void setPolicyComponent(PolicyComponent policyComponent)
      Parameters:
      policyComponent - the policy component to register behaviour with
    • init

      public void init()
      Initialise the Temporary Aspect

      Ensures that the temporary aspect copy behaviour is disabled when update copies are performed.

    • getCopyCallback

      public CopyBehaviourCallback getCopyCallback(QName classRef, CopyDetails copyDetails)
      The sys:temporary aspect is only copied if the copy is clean i.e. not to an existing node.
      Specified by:
      getCopyCallback in interface CopyServicePolicies.OnCopyNodePolicy
      Parameters:
      classRef - the type or aspect qualified name
      copyDetails - the details of the impending copy
      Returns:
      Return the callback that will be used to modify the copy behaviour for this dictionary class. Return null to assume the default.
      See Also:
    • onCopyNode

      public void onCopyNode(QName classRef, NodeRef sourceNodeRef, StoreRef destinationStoreRef, boolean copyToNewNode, PolicyScope copyDetails)
      Does nothing