Class ElementWithWorkflow

java.lang.Object
org.ametys.cms.workflow.history.ElementWithWorkflow

public class ElementWithWorkflow extends Object
Object representing an element with a workflow
  • Constructor Details

    • ElementWithWorkflow

      public ElementWithWorkflow(String title, Date creationDate, UserIdentity creator)
      The constructor for a no versionable element
      Parameters:
      title - the title
      creationDate - the creation date
      creator - the creator
    • ElementWithWorkflow

      public ElementWithWorkflow(String title, Date creationDate, UserIdentity creator, List<VersionInformation> versions)
      The constructor for an versionable element
      Parameters:
      title - the title
      creationDate - the creation date
      creator - the creator
      versions - the list of versions
  • Method Details

    • getTitle

      public String 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

      public boolean 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