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.Retrieves the version raw name.voidsetVersionName(String name) Set the version 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
-
setVersionName
Set the version name- Parameters:
name- The 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.
-