Class AbstractDashBoardItemImpl
- java.lang.Object
-
- org.nuxeo.ecm.platform.task.dashboard.AbstractDashBoardItemImpl
-
- All Implemented Interfaces:
Serializable,DashBoardItem
- Direct Known Subclasses:
DashBoardItemImpl
public abstract class AbstractDashBoardItemImpl extends Object implements DashBoardItem
- Since:
- 5.5
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbstractDashBoardItemImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>asMap()Returns JSON representation of the item as mapprotected StringgetDefaultViewFor(DocumentModel doc)StringgetDocumentLink(boolean includeWorkflowTab)Return the link url to the target DocumentStringgetI18nDirective()Get the Translated Task Directive (Locale must be set)protected StringgetI18nLabel(String label, Locale locale)StringgetI18nTaskName()Get the Translated TaskName (Locale must be set)LocalegetLocale()protected booleanisCreatedFromCreateTaskOperation()protected booleanneedi18n()voidsetLocale(Locale locale)Defines theLocalethat will be used to generate translations-
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
getComment, getDescription, getDirective, getDocRef, getDocument, getDueDate, getId, getName, getStartDate, getTask, isExpired
-
-
-
-
Method Detail
-
getI18nTaskName
public String getI18nTaskName()
Description copied from interface:DashBoardItemGet the Translated TaskName (Locale must be set)- Specified by:
getI18nTaskNamein interfaceDashBoardItem
-
getI18nDirective
public String getI18nDirective()
Description copied from interface:DashBoardItemGet the Translated Task Directive (Locale must be set)- Specified by:
getI18nDirectivein interfaceDashBoardItem
-
isCreatedFromCreateTaskOperation
protected boolean isCreatedFromCreateTaskOperation()
-
needi18n
protected boolean needi18n()
-
asMap
public Map<String,Object> asMap()
Description copied from interface:DashBoardItemReturns JSON representation of the item as map- Specified by:
asMapin interfaceDashBoardItem
-
getDocumentLink
public String getDocumentLink(boolean includeWorkflowTab)
Description copied from interface:DashBoardItemReturn the link url to the target Document- Specified by:
getDocumentLinkin interfaceDashBoardItem
-
getDefaultViewFor
protected String getDefaultViewFor(DocumentModel doc)
-
getLocale
public Locale getLocale()
-
setLocale
public void setLocale(Locale locale)
Description copied from interface:DashBoardItemDefines theLocalethat will be used to generate translations- Specified by:
setLocalein interfaceDashBoardItem
-
-