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, waitgetComment, getDescription, getDirective, getDocRef, getDocument, getDueDate, getId, getName, getStartDate, getTask, isExpiredpublic AbstractDashBoardItemImpl()
protected String getI18nLabel(String label, Locale locale)
public String getI18nTaskName()
DashBoardItemgetI18nTaskName in interface DashBoardItempublic String getI18nDirective()
DashBoardItemgetI18nDirective in interface DashBoardItemprotected boolean isCreatedFromCreateTaskOperation()
protected boolean needi18n()
public net.sf.json.JSONObject asJSON()
DashBoardItemasJSON in interface DashBoardItempublic String getDocumentLink(boolean includeWorkflowTab)
DashBoardItemgetDocumentLink in interface DashBoardItemprotected String getDefaultViewFor(DocumentModel doc)
public void setLocale(Locale locale)
DashBoardItemLocale that will be used to generate translationssetLocale in interface DashBoardItemCopyright © 2018 Nuxeo. All rights reserved.