Interface DashBoardItem

All Superinterfaces:
Serializable
All Known Implementing Classes:
AbstractDashBoardItemImpl, DashBoardItemImpl

public interface DashBoardItem extends Serializable
Item holding information about a Document with a task attached to it.

Aimed at being used in Dashboard fragments.

Since:
5.5
Author:
Julien Anguenot
  • Method Details

    • getId

      String getId()
      Returns the identifier of the workflow task instance.
      Returns:
      the identifier of the dash board item.
    • getName

      String getName()
      Returns the name of the DashBoardItem.
      Returns:
      the name of the DashBoardItem
    • getDocRef

      DocumentRef getDocRef()
      Returns the document reference on which the item is bound.
      Returns:
      a document reference instance
    • getDescription

      String getDescription()
      Returns the description of the item.
      Returns:
      the description of the item
    • getComment

      String getComment()
      Returns the associated item comment.
      Returns:
      the associated item comment
    • getStartDate

      Date getStartDate()
      Returns the date when the task has been started.
      Returns:
      the date when the task has been started
    • getDueDate

      Date getDueDate()
      Returns the date at which the task needs to be closed.
      Returns:
      the date at which the task needs to be closed
    • getDirective

      String getDirective()
      Returns the item associated directive.
      Returns:
      the item associated directive
    • getDocument

      DocumentModel getDocument()
      Returns the icon path for the doc ref.
      Returns:
      the icon path for the doc ref
    • isExpired

      boolean isExpired()
      Does the user reach the deadline?
      Returns:
      the expired flag.
    • getTask

      Task getTask()
      Returns the underneath task instance
    • setLocale

      void setLocale(Locale locale)
      Defines the Locale that will be used to generate translations
    • getI18nTaskName

      String getI18nTaskName()
      Get the Translated TaskName (Locale must be set)
    • getI18nDirective

      String getI18nDirective()
      Get the Translated Task Directive (Locale must be set)
    • asMap

      Map<String,Object> asMap()
      Returns JSON representation of the item as map
    • getDocumentLink

      String getDocumentLink(boolean includeWorkflowTab)
      Return the link url to the target Document