Package org.ametys.cms.workflow
Class ContentHistoryAction.VersionInformation
- java.lang.Object
-
- org.ametys.cms.workflow.ContentHistoryAction.VersionInformation
-
- Enclosing class:
- ContentHistoryAction
private static class ContentHistoryAction.VersionInformation extends Object
-
-
Constructor Summary
Constructors Constructor Description VersionInformation(String name)
Creates a namedContentHistoryAction.VersionInformation
.VersionInformation(String rawName, Date creationDate)
Creates aContentHistoryAction.VersionInformation
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addLabel(String label)
Add a label to this version.Date
getCreatedAt()
Retrieves the creation date.Set<String>
getLabels()
Retrieves the labels associated with this version.String
getVersionName()
Retrieves the version name.String
getVersionRawName()
Retrieves the version raw name.void
setVersionName(String name)
Set the version name
-
-
-
Constructor Detail
-
VersionInformation
public VersionInformation(String rawName, Date creationDate) throws RepositoryException
Creates aContentHistoryAction.VersionInformation
.- Parameters:
rawName
- the revision name.creationDate
- the revision creation date.- Throws:
RepositoryException
- if an error occurs.
-
VersionInformation
public VersionInformation(String name)
Creates a namedContentHistoryAction.VersionInformation
.- Parameters:
name
- the name to use.
-
-
Method Detail
-
setVersionName
public void setVersionName(String name)
Set the version name- Parameters:
name
- The name
-
getVersionName
public String getVersionName()
Retrieves the version name.- Returns:
- the version name.
-
getVersionRawName
public String getVersionRawName()
Retrieves the version raw name.- Returns:
- the version raw name.
-
getCreatedAt
public Date getCreatedAt() throws RepositoryException
Retrieves the creation date.- Returns:
- the creation date.
- Throws:
RepositoryException
- if an error occurs.
-
getLabels
public Set<String> getLabels()
Retrieves the labels associated with this version.- Returns:
- the labels.
-
-