Interface DashBoardItem
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
AbstractDashBoardItemImpl
,DashBoardItemImpl
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 Summary
Modifier and TypeMethodDescriptionasMap()
Returns JSON representation of the item as mapReturns the associated item comment.Returns the description of the item.Returns the item associated directive.Returns the document reference on which the item is bound.Returns the icon path for the doc ref.getDocumentLink
(boolean includeWorkflowTab) Return the link url to the target DocumentReturns the date at which the task needs to be closed.Get the Translated Task Directive (Locale must be set)Get the Translated TaskName (Locale must be set)getId()
Returns the identifier of the workflow task instance.getName()
Returns the name of the DashBoardItem.Returns the date when the task has been started.getTask()
Returns the underneath task instanceboolean
Does the user reach the deadline?void
Defines theLocale
that will be used to generate translations
-
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
Defines theLocale
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
Returns JSON representation of the item as map -
getDocumentLink
Return the link url to the target Document
-