Class DashBoardItemImpl
java.lang.Object
org.nuxeo.ecm.platform.task.dashboard.AbstractDashBoardItemImpl
org.nuxeo.ecm.platform.task.dashboard.DashBoardItemImpl
- All Implemented Interfaces:
Serializable
,DashBoardItem
Dashboard item implementation.
- Since:
- 5.5
- Author:
- Julien Anguenot
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
protected final String
protected final String
protected final DocumentModel
protected final Date
protected final boolean
protected final String
protected final String
protected final Date
protected final Task
Fields inherited from class org.nuxeo.ecm.platform.task.dashboard.AbstractDashBoardItemImpl
locale
-
Constructor Summary
ConstructorDescriptionDashBoardItemImpl
(Task task, Locale locale) DashBoardItemImpl
(Task task, DocumentModel document, Locale locale) -
Method Summary
Modifier and TypeMethodDescriptionReturns 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.Returns the date at which the task needs to be closed.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?Methods inherited from class org.nuxeo.ecm.platform.task.dashboard.AbstractDashBoardItemImpl
asMap, getDefaultViewFor, getDocumentLink, getI18nDirective, getI18nLabel, getI18nTaskName, getLocale, isCreatedFromCreateTaskOperation, needi18n, setLocale
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.nuxeo.ecm.platform.task.dashboard.DashBoardItem
asMap, getDocumentLink, getI18nDirective, getI18nTaskName, setLocale
-
Field Details
-
id
-
name
-
description
-
startDate
-
dueDate
-
expired
protected final boolean expired -
directive
-
document
-
task
-
comment
-
-
Constructor Details
-
DashBoardItemImpl
-
DashBoardItemImpl
-
-
Method Details
-
getComment
Description copied from interface:DashBoardItem
Returns the associated item comment.- Specified by:
getComment
in interfaceDashBoardItem
- Returns:
- the associated item comment
-
getDescription
Description copied from interface:DashBoardItem
Returns the description of the item.- Specified by:
getDescription
in interfaceDashBoardItem
- Returns:
- the description of the item
-
getDocRef
Description copied from interface:DashBoardItem
Returns the document reference on which the item is bound.- Specified by:
getDocRef
in interfaceDashBoardItem
- Returns:
- a document reference instance
-
getDueDate
Description copied from interface:DashBoardItem
Returns the date at which the task needs to be closed.- Specified by:
getDueDate
in interfaceDashBoardItem
- Returns:
- the date at which the task needs to be closed
-
getId
Description copied from interface:DashBoardItem
Returns the identifier of the workflow task instance.- Specified by:
getId
in interfaceDashBoardItem
- Returns:
- the identifier of the dash board item.
-
getStartDate
Description copied from interface:DashBoardItem
Returns the date when the task has been started.- Specified by:
getStartDate
in interfaceDashBoardItem
- Returns:
- the date when the task has been started
-
getName
Description copied from interface:DashBoardItem
Returns the name of the DashBoardItem.- Specified by:
getName
in interfaceDashBoardItem
- Returns:
- the name of the DashBoardItem
-
getDirective
Description copied from interface:DashBoardItem
Returns the item associated directive.- Specified by:
getDirective
in interfaceDashBoardItem
- Returns:
- the item associated directive
-
getDocument
Description copied from interface:DashBoardItem
Returns the icon path for the doc ref.- Specified by:
getDocument
in interfaceDashBoardItem
- 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 interfaceDashBoardItem
- Returns:
- the expired flag.
-
getTask
Description copied from interface:DashBoardItem
Returns the underneath task instance- Specified by:
getTask
in interfaceDashBoardItem
-