Package org.ametys.cms.workflow.history
Class VersionInformation
java.lang.Object
org.ametys.cms.workflow.history.VersionInformation
Object representing the version information
-
Constructor Summary
ConstructorsConstructorDescriptionVersionInformation(String name) Creates a namedVersionInformation.VersionInformation(String rawName, Date creationDate) Creates aVersionInformation. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a label to this version.Retrieves the creation date.Retrieves the labels associated with this version.Retrieves the version name.static StringgetVersionNameFromRawVersion(String rawName) Transform a JCR version name into a version name that is understandable by a userRetrieves the version raw name.
-
Constructor Details
-
VersionInformation
Creates aVersionInformation.- Parameters:
rawName- the revision name.creationDate- the revision creation date.- Throws:
javax.jcr.RepositoryException- if an error occurs.
-
VersionInformation
Creates a namedVersionInformation.- Parameters:
name- the name to use.
-
-
Method Details
-
getVersionNameFromRawVersion
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
Retrieves the creation date.- Returns:
- the creation date.
- Throws:
javax.jcr.RepositoryException- if an error occurs.
-
getLabels
Retrieves the labels associated with this version.- Returns:
- the labels.
-
addLabel
Add a label to this version.- Parameters:
label- the label.
-