private static class ContentHistoryAction.VersionInformation extends Object
Modifier and Type | Field and Description |
---|---|
private Date |
_creationDate |
private Set<String> |
_labels |
private String |
_name |
private String |
_rawName |
Constructor and Description |
---|
VersionInformation(String name)
Creates a named
ContentHistoryAction.VersionInformation . |
VersionInformation(String rawName,
Date creationDate)
Creates a
ContentHistoryAction.VersionInformation . |
Modifier and Type | Method and 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
|
private Date _creationDate
public VersionInformation(String rawName, Date creationDate) throws RepositoryException
ContentHistoryAction.VersionInformation
.rawName
- the revision name.creationDate
- the revision creation date.RepositoryException
- if an error occurs.public VersionInformation(String name)
ContentHistoryAction.VersionInformation
.name
- the name to use.public void setVersionName(String name)
name
- The namepublic String getVersionName()
public String getVersionRawName()
public Date getCreatedAt() throws RepositoryException
RepositoryException
- if an error occurs.public Set<String> getLabels()