Class AbstractDashBoardItemImpl
java.lang.Object
org.nuxeo.ecm.platform.task.dashboard.AbstractDashBoardItemImpl
- All Implemented Interfaces:
Serializable
,DashBoardItem
- Direct Known Subclasses:
DashBoardItemImpl
- Since:
- 5.5
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionasMap()
Returns JSON representation of the item as mapprotected String
getDocumentLink
(boolean includeWorkflowTab) Return the link url to the target DocumentGet the Translated Task Directive (Locale must be set)protected String
getI18nLabel
(String label, Locale locale) Get the Translated TaskName (Locale must be set)protected boolean
protected boolean
needi18n()
void
Defines theLocale
that will be used to generate translationsMethods 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
-
Field Details
-
locale
-
-
Constructor Details
-
AbstractDashBoardItemImpl
public AbstractDashBoardItemImpl()
-
-
Method Details
-
getI18nLabel
-
getI18nTaskName
Description copied from interface:DashBoardItem
Get the Translated TaskName (Locale must be set)- Specified by:
getI18nTaskName
in interfaceDashBoardItem
-
getI18nDirective
Description copied from interface:DashBoardItem
Get the Translated Task Directive (Locale must be set)- Specified by:
getI18nDirective
in interfaceDashBoardItem
-
isCreatedFromCreateTaskOperation
protected boolean isCreatedFromCreateTaskOperation() -
needi18n
protected boolean needi18n() -
asMap
Description copied from interface:DashBoardItem
Returns JSON representation of the item as map- Specified by:
asMap
in interfaceDashBoardItem
-
getDocumentLink
Description copied from interface:DashBoardItem
Return the link url to the target Document- Specified by:
getDocumentLink
in interfaceDashBoardItem
-
getDefaultViewFor
-
getLocale
-
setLocale
Description copied from interface:DashBoardItem
Defines theLocale
that will be used to generate translations- Specified by:
setLocale
in interfaceDashBoardItem
-