Class DashBoardItemImpl

java.lang.Object
org.nuxeo.ecm.platform.task.dashboard.AbstractDashBoardItemImpl
org.nuxeo.ecm.platform.task.dashboard.DashBoardItemImpl
All Implemented Interfaces:
Serializable, DashBoardItem

public class DashBoardItemImpl extends AbstractDashBoardItemImpl implements DashBoardItem
Dashboard item implementation.
Since:
5.5
Author:
Julien Anguenot
See Also:
  • Field Details

    • id

      protected final String id
    • name

      protected final String name
    • description

      protected final String description
    • startDate

      protected final Date startDate
    • dueDate

      protected final Date dueDate
    • expired

      protected final boolean expired
    • directive

      protected final String directive
    • document

      protected final DocumentModel document
    • task

      protected final Task task
    • comment

      protected String comment
  • Constructor Details

    • DashBoardItemImpl

      public DashBoardItemImpl(Task task, Locale locale)
    • DashBoardItemImpl

      public DashBoardItemImpl(Task task, DocumentModel document, Locale locale)
  • Method Details

    • getComment

      public String getComment()
      Description copied from interface: DashBoardItem
      Returns the associated item comment.
      Specified by:
      getComment in interface DashBoardItem
      Returns:
      the associated item comment
    • getDescription

      public String getDescription()
      Description copied from interface: DashBoardItem
      Returns the description of the item.
      Specified by:
      getDescription in interface DashBoardItem
      Returns:
      the description of the item
    • getDocRef

      public DocumentRef getDocRef()
      Description copied from interface: DashBoardItem
      Returns the document reference on which the item is bound.
      Specified by:
      getDocRef in interface DashBoardItem
      Returns:
      a document reference instance
    • getDueDate

      public Date getDueDate()
      Description copied from interface: DashBoardItem
      Returns the date at which the task needs to be closed.
      Specified by:
      getDueDate in interface DashBoardItem
      Returns:
      the date at which the task needs to be closed
    • getId

      public String getId()
      Description copied from interface: DashBoardItem
      Returns the identifier of the workflow task instance.
      Specified by:
      getId in interface DashBoardItem
      Returns:
      the identifier of the dash board item.
    • getStartDate

      public Date getStartDate()
      Description copied from interface: DashBoardItem
      Returns the date when the task has been started.
      Specified by:
      getStartDate in interface DashBoardItem
      Returns:
      the date when the task has been started
    • getName

      public String getName()
      Description copied from interface: DashBoardItem
      Returns the name of the DashBoardItem.
      Specified by:
      getName in interface DashBoardItem
      Returns:
      the name of the DashBoardItem
    • getDirective

      public String getDirective()
      Description copied from interface: DashBoardItem
      Returns the item associated directive.
      Specified by:
      getDirective in interface DashBoardItem
      Returns:
      the item associated directive
    • getDocument

      public DocumentModel getDocument()
      Description copied from interface: DashBoardItem
      Returns the icon path for the doc ref.
      Specified by:
      getDocument in interface DashBoardItem
      Returns:
      the icon path for the doc ref
    • isExpired

      public boolean isExpired()
      Description copied from interface: DashBoardItem
      Does the user reach the deadline?
      Specified by:
      isExpired in interface DashBoardItem
      Returns:
      the expired flag.
    • getTask

      public Task getTask()
      Description copied from interface: DashBoardItem
      Returns the underneath task instance
      Specified by:
      getTask in interface DashBoardItem