Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.platform.jbpm.dashboard
Class DashBoardItemImpl

java.lang.Object
  extended by org.nuxeo.ecm.platform.jbpm.dashboard.DashBoardItemImpl
All Implemented Interfaces:
java.io.Serializable, DashBoardItem
Direct Known Subclasses:
DashBoardItemImpl

public class DashBoardItemImpl
extends java.lang.Object
implements DashBoardItem

Dashboard item implementation.

Author:
Julien Anguenot
See Also:
Serialized Form

Constructor Summary
DashBoardItemImpl(TaskInstance task, DocumentModel document)
           
 
Method Summary
 java.lang.String getComment()
          Returns the associated item comment.
 java.lang.String getDescription()
          Returns the description of the item.
 java.lang.String getDirective()
          Returns the item associated directive.
 DocumentRef getDocRef()
          Returns the document reference on which the item is bound.
 DocumentModel getDocument()
          Returns the icon path for the doc ref.
 java.util.Date getDueDate()
          Returns the date at which the task needs to be closed.
 java.lang.Long getId()
          Returns the identifier of the dash board item.
 java.lang.String getName()
          Returns the name of the DashBoardItem.
 java.util.Date getStartDate()
          Returns the date when the task has been started.
 TaskInstance getTaskInstance()
          Returns the underneath task instance
 boolean isExpired()
          Does the user reach the deadline?
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DashBoardItemImpl

public DashBoardItemImpl(TaskInstance task,
                         DocumentModel document)
Method Detail

getComment

public java.lang.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 java.lang.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
See Also:
org.nuxeo.ecm.platform.workflow.document.api.relation.WorkflowDocumentRelationManager

getDueDate

public java.util.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 java.lang.Long getId()
Description copied from interface: DashBoardItem
Returns the identifier of the dash board item.

Workflow task instance right now.

Specified by:
getId in interface DashBoardItem
Returns:
the identifier of the dash board item.

getStartDate

public java.util.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 java.lang.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 java.lang.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.

getTaskInstance

public TaskInstance getTaskInstance()
Description copied from interface: DashBoardItem
Returns the underneath task instance

Specified by:
getTaskInstance in interface DashBoardItem

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.