Class VersionInformation

java.lang.Object
org.ametys.cms.workflow.history.VersionInformation

public class VersionInformation extends Object
Object representing the version information
  • Constructor Details

  • Method Details

    • getVersionNameFromRawVersion

      public static String getVersionNameFromRawVersion(String rawName)
      Transform a JCR version name into a version name that is understandable by a user
      Parameters:
      rawName - the jcr version name
      Returns:
      the simplified version name
    • getVersionName

      Retrieves the version name.
      Returns:
      the version name.
    • getVersionRawName

      Retrieves the version raw name.
      Returns:
      the version raw name.
    • getCreatedAt

      public Date getCreatedAt() throws javax.jcr.RepositoryException
      Retrieves the creation date.
      Returns:
      the creation date.
      Throws:
      javax.jcr.RepositoryException - if an error occurs.
    • getLabels

      public Set<String> getLabels()
      Retrieves the labels associated with this version.
      Returns:
      the labels.
    • addLabel

      public void addLabel(String label)
      Add a label to this version.
      Parameters:
      label - the label.