Class TemporaryAspect

    • Constructor Detail

      • TemporaryAspect

        public TemporaryAspect()
    • Method Detail

      • 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​(org.alfresco.service.namespace.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:
        CopyServicePolicies
      • onCopyNode

        public void onCopyNode​(org.alfresco.service.namespace.QName classRef,
                               org.alfresco.service.cmr.repository.NodeRef sourceNodeRef,
                               org.alfresco.service.cmr.repository.StoreRef destinationStoreRef,
                               boolean copyToNewNode,
                               PolicyScope copyDetails)
        Does nothing