public abstract class AbstractDashBoardItemImpl extends Object implements DashBoardItem
Modifier and Type | Field and Description |
---|---|
protected Locale |
locale |
protected static org.apache.commons.logging.Log |
log |
Constructor and Description |
---|
AbstractDashBoardItemImpl() |
Modifier and Type | Method and Description |
---|---|
net.sf.json.JSONObject |
asJSON()
Returns JSON representation of the item
|
protected String |
getDefaultViewFor(DocumentModel doc) |
String |
getDocumentLink(boolean includeWorkflowTab)
Return the link url to the target Document
|
String |
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 the
Locale that will be used to generate translations |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getComment, getDescription, getDirective, getDocRef, getDocument, getDueDate, getId, getName, getStartDate, getTask, isExpired
public AbstractDashBoardItemImpl()
protected String getI18nLabel(String label, Locale locale)
public String getI18nTaskName()
DashBoardItem
getI18nTaskName
in interface DashBoardItem
public String getI18nDirective()
DashBoardItem
getI18nDirective
in interface DashBoardItem
protected boolean isCreatedFromCreateTaskOperation()
protected boolean needi18n()
public net.sf.json.JSONObject asJSON()
DashBoardItem
asJSON
in interface DashBoardItem
public String getDocumentLink(boolean includeWorkflowTab)
DashBoardItem
getDocumentLink
in interface DashBoardItem
protected String getDefaultViewFor(DocumentModel doc)
public void setLocale(Locale locale)
DashBoardItem
Locale
that will be used to generate translationssetLocale
in interface DashBoardItem
Copyright © 2018 Nuxeo. All rights reserved.