Class SerialVersionLabelPolicy

    • Nested Class Summary

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

        Policy.Arg
    • Field Summary

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String calculateVersionLabel​(org.alfresco.service.namespace.QName classRef, Version preceedingVersion, int versionNumber, java.util.Map<java.lang.String,​java.io.Serializable> versionProperties)
      Get the version label value base on the data provided.
      java.lang.String calculateVersionLabel​(org.alfresco.service.namespace.QName classRef, Version preceedingVersion, java.util.Map<java.lang.String,​java.io.Serializable> versionProperties)
      Get the version label value base on the data provided.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SerialVersionLabelPolicy

        public SerialVersionLabelPolicy()
    • Method Detail

      • calculateVersionLabel

        public java.lang.String calculateVersionLabel​(org.alfresco.service.namespace.QName classRef,
                                                      Version preceedingVersion,
                                                      java.util.Map<java.lang.String,​java.io.Serializable> versionProperties)
        Get the version label value base on the data provided.
        Parameters:
        classRef - QName
        preceedingVersion - the preceeding version, null if none
        versionProperties - the version property values
        Returns:
        the version label
      • calculateVersionLabel

        public java.lang.String calculateVersionLabel​(org.alfresco.service.namespace.QName classRef,
                                                      Version preceedingVersion,
                                                      int versionNumber,
                                                      java.util.Map<java.lang.String,​java.io.Serializable> versionProperties)
        Get the version label value base on the data provided.
        Specified by:
        calculateVersionLabel in interface VersionServicePolicies.CalculateVersionLabelPolicy
        Parameters:
        preceedingVersion - the preceeding version, null if none
        versionNumber - the new version number
        versionProperties - the version property values
        Returns:
        the version label