com.liferay.portal.kernel.backgroundtask.display
Class BaseBackgroundTaskDisplay
java.lang.Object
com.liferay.portal.kernel.backgroundtask.display.BaseBackgroundTaskDisplay
- All Implemented Interfaces:
- BackgroundTaskDisplay, Serializable
public abstract class BaseBackgroundTaskDisplay
- extends Object
- implements BackgroundTaskDisplay
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PERCENTAGE_MAX
protected static final int PERCENTAGE_MAX
- See Also:
- Constant Field Values
PERCENTAGE_MIN
protected static final int PERCENTAGE_MIN
- See Also:
- Constant Field Values
PERCENTAGE_NONE
protected static final int PERCENTAGE_NONE
- See Also:
- Constant Field Values
backgroundTask
protected final BackgroundTask backgroundTask
backgroundTaskStatus
protected final BackgroundTaskStatus backgroundTaskStatus
BaseBackgroundTaskDisplay
public BaseBackgroundTaskDisplay(BackgroundTask backgroundTask)
getPercentage
public abstract int getPercentage()
- Specified by:
getPercentage in interface BackgroundTaskDisplay
getStatus
public int getStatus()
- Specified by:
getStatus in interface BackgroundTaskDisplay
getStatusLabel
public String getStatusLabel()
- Specified by:
getStatusLabel in interface BackgroundTaskDisplay
getStatusLabel
public String getStatusLabel(Locale locale)
- Specified by:
getStatusLabel in interface BackgroundTaskDisplay
hasPercentage
public boolean hasPercentage()
- Specified by:
hasPercentage in interface BackgroundTaskDisplay
renderDisplayTemplate
public String renderDisplayTemplate()
- Specified by:
renderDisplayTemplate in interface BackgroundTaskDisplay
renderDisplayTemplate
public String renderDisplayTemplate(Locale locale)
- Specified by:
renderDisplayTemplate in interface BackgroundTaskDisplay
getBackgroundTaskStatusAttributeLong
protected long getBackgroundTaskStatusAttributeLong(String attributeKey)
getBackgroundTaskStatusAttributeString
protected String getBackgroundTaskStatusAttributeString(String attributeKey)
getStatusMessageJSONObject
protected JSONObject getStatusMessageJSONObject(Locale locale)
getTemplateResource
protected abstract TemplateResource getTemplateResource()
getTemplateVars
protected abstract Map<String,Object> getTemplateVars()
hasBackgroundTaskStatus
protected boolean hasBackgroundTaskStatus()
translateJSON
protected JSONArray translateJSON(JSONArray jsonArray,
Locale locale)
translateJSON
protected JSONObject translateJSON(JSONObject jsonObject,
Locale locale)