Package org.ametys.cms.workflow.history
Class ElementWithWorkflow
java.lang.Object
org.ametys.cms.workflow.history.ElementWithWorkflow
Object representing an element with a workflow
-
Constructor Summary
ConstructorDescriptionElementWithWorkflow
(String title, ZonedDateTime creationDate, UserIdentity creator) The constructor for a no versionable elementElementWithWorkflow
(String title, ZonedDateTime creationDate, UserIdentity creator, List<VersionInformation> versions) The constructor for an versionable element -
Method Summary
Modifier and TypeMethodDescriptionGet the creation date of the elementGet the creator of the elementgetTitle()
Get the title of the elementThe list of versions of the elementboolean
true
if the element is versionable
-
Constructor Details
-
ElementWithWorkflow
The constructor for a no versionable element- Parameters:
title
- the titlecreationDate
- the creation datecreator
- the creator
-
ElementWithWorkflow
public ElementWithWorkflow(String title, ZonedDateTime creationDate, UserIdentity creator, List<VersionInformation> versions) The constructor for an versionable element- Parameters:
title
- the titlecreationDate
- the creation datecreator
- the creatorversions
- the list of versions
-
-
Method Details
-
getTitle
Get the title of the element- Returns:
- the title
-
getCreationDate
Get the creation date of the element- Returns:
- the creation date
-
getCreator
Get the creator of the element- Returns:
- the creator
-
isVersionable
true
if the element is versionable- Returns:
true
if the element is versionable
-
getVersions
The list of versions of the element- Returns:
- the list of versions
-