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 String
getDefaultViewFor(DocumentModel doc)
String
getDocumentLink(boolean includeWorkflowTab)
Return the link url to the target DocumentString
getI18nDirective()
Get the Translated Task Directive (Locale must be set)protected String
getI18nLabel(String label, Locale locale)
String
getI18nTaskName()
Get the Translated TaskName (Locale must be set)Locale
getLocale()
protected boolean
isCreatedFromCreateTaskOperation()
protected boolean
needi18n()
void
setLocale(Locale locale)
Defines theLocale
that 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:DashBoardItem
Get the Translated TaskName (Locale must be set)- Specified by:
getI18nTaskName
in interfaceDashBoardItem
-
getI18nDirective
public String 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
public Map<String,Object> asMap()
Description copied from interface:DashBoardItem
Returns JSON representation of the item as map- Specified by:
asMap
in interfaceDashBoardItem
-
getDocumentLink
public String getDocumentLink(boolean includeWorkflowTab)
Description copied from interface:DashBoardItem
Return the link url to the target Document- Specified by:
getDocumentLink
in interfaceDashBoardItem
-
getDefaultViewFor
protected String getDefaultViewFor(DocumentModel doc)
-
getLocale
public Locale getLocale()
-
setLocale
public void setLocale(Locale locale)
Description copied from interface:DashBoardItem
Defines theLocale
that will be used to generate translations- Specified by:
setLocale
in interfaceDashBoardItem
-
-