Interface VersionServicePolicies.OnCreateVersionPolicy

    • 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 onCreateVersion​(org.alfresco.service.namespace.QName classRef, org.alfresco.service.cmr.repository.NodeRef versionableNode, java.util.Map<java.lang.String,​java.io.Serializable> versionProperties, PolicyScope nodeDetails)
      Called during the creation of the version to determine what the versioning policy for a perticular type may be.
    • Field Detail

      • QNAME

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

      • onCreateVersion

        void onCreateVersion​(org.alfresco.service.namespace.QName classRef,
                             org.alfresco.service.cmr.repository.NodeRef versionableNode,
                             java.util.Map<java.lang.String,​java.io.Serializable> versionProperties,
                             PolicyScope nodeDetails)
        Called during the creation of the version to determine what the versioning policy for a perticular type may be. WARNING: implementing behaviour for this policy effects the versioning behaviour of the type the behaviour is registered against.
        Parameters:
        classRef - the class reference
        versionableNode - the versionable node reference
        versionProperties - the version properties
        nodeDetails - the details of the node to be versioned