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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Stringcommentprotected Stringdescriptionprotected Stringdirectiveprotected DocumentModeldocumentprotected DatedueDateprotected booleanexpiredprotected Stringidprotected Stringnameprotected DatestartDateprotected Tasktask-
Fields inherited from class org.nuxeo.ecm.platform.task.dashboard.AbstractDashBoardItemImpl
locale, log
-
-
Constructor Summary
Constructors Constructor Description DashBoardItemImpl(Task task, Locale locale)DashBoardItemImpl(Task task, DocumentModel document, Locale locale)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetComment()Returns the associated item comment.StringgetDescription()Returns the description of the item.StringgetDirective()Returns the item associated directive.DocumentRefgetDocRef()Returns the document reference on which the item is bound.DocumentModelgetDocument()Returns the icon path for the doc ref.DategetDueDate()Returns the date at which the task needs to be closed.StringgetId()Returns the identifier of the workflow task instance.StringgetName()Returns the name of the DashBoardItem.DategetStartDate()Returns the date when the task has been started.TaskgetTask()Returns the underneath task instancebooleanisExpired()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 Detail
-
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 Detail
-
DashBoardItemImpl
public DashBoardItemImpl(Task task, DocumentModel document, Locale locale)
-
-
Method Detail
-
getComment
public String getComment()
Description copied from interface:DashBoardItemReturns the associated item comment.- Specified by:
getCommentin interfaceDashBoardItem- Returns:
- the associated item comment
-
getDescription
public String getDescription()
Description copied from interface:DashBoardItemReturns the description of the item.- Specified by:
getDescriptionin interfaceDashBoardItem- Returns:
- the description of the item
-
getDocRef
public DocumentRef getDocRef()
Description copied from interface:DashBoardItemReturns the document reference on which the item is bound.- Specified by:
getDocRefin interfaceDashBoardItem- Returns:
- a document reference instance
-
getDueDate
public Date getDueDate()
Description copied from interface:DashBoardItemReturns the date at which the task needs to be closed.- Specified by:
getDueDatein interfaceDashBoardItem- Returns:
- the date at which the task needs to be closed
-
getId
public String getId()
Description copied from interface:DashBoardItemReturns the identifier of the workflow task instance.- Specified by:
getIdin interfaceDashBoardItem- Returns:
- the identifier of the dash board item.
-
getStartDate
public Date getStartDate()
Description copied from interface:DashBoardItemReturns the date when the task has been started.- Specified by:
getStartDatein interfaceDashBoardItem- Returns:
- the date when the task has been started
-
getName
public String getName()
Description copied from interface:DashBoardItemReturns the name of the DashBoardItem.- Specified by:
getNamein interfaceDashBoardItem- Returns:
- the name of the DashBoardItem
-
getDirective
public String getDirective()
Description copied from interface:DashBoardItemReturns the item associated directive.- Specified by:
getDirectivein interfaceDashBoardItem- Returns:
- the item associated directive
-
getDocument
public DocumentModel getDocument()
Description copied from interface:DashBoardItemReturns the icon path for the doc ref.- Specified by:
getDocumentin interfaceDashBoardItem- Returns:
- the icon path for the doc ref
-
isExpired
public boolean isExpired()
Description copied from interface:DashBoardItemDoes the user reach the deadline?- Specified by:
isExpiredin interfaceDashBoardItem- Returns:
- the expired flag.
-
getTask
public Task getTask()
Description copied from interface:DashBoardItemReturns the underneath task instance- Specified by:
getTaskin interfaceDashBoardItem
-
-