Class DefaultProcessesListItemRenderer
java.lang.Object
com.hybris.backoffice.widgets.processes.renderer.DefaultProcessesListItemRenderer
- All Implemented Interfaces:
com.hybris.cockpitng.widgets.common.WidgetComponentRenderer<org.zkoss.zul.Listitem,Object, CronJobHistoryModel>
public class DefaultProcessesListItemRenderer
extends Object
implements com.hybris.cockpitng.widgets.common.WidgetComponentRenderer<org.zkoss.zul.Listitem,Object,CronJobHistoryModel>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.zkoss.zul.Buttonprotected org.zkoss.zul.MenupopupcreateEditPopup(CronJobHistoryModel cronJobHistory, com.hybris.cockpitng.engine.WidgetInstanceManager wim) protected org.zkoss.zul.LabelcreateEndTimeLabel(CronJobHistoryModel cronJobHistory) protected org.zkoss.zul.LabelcreateJobCodeComponent(CronJobHistoryModel cronJobHistory) protected org.zkoss.zul.DivcreateMiddleContent(CronJobHistoryModel cronJobHistory, com.hybris.cockpitng.engine.WidgetInstanceManager wim) protected org.zkoss.zk.ui.Componentprotected org.zkoss.zul.impl.XulElementcreateProgressBar(CronJobHistoryModel cronJobHistory, com.hybris.cockpitng.engine.WidgetInstanceManager wim) protected SimpleDateFormatprotected org.zkoss.zul.DivcreateStatusInfoComponent(CronJobHistoryModel cronJobHistory) protected org.zkoss.zul.DivcreateSyncIcon(CronJobHistoryModel cronJobHistory, com.hybris.cockpitng.engine.WidgetInstanceManager wim) protected org.zkoss.zul.impl.XulElementcreateTimeComponent(CronJobHistoryModel cronJobHistory) com.hybris.cockpitng.core.user.CockpitUserServiceprotected StringgetFinishedStatusReplacementLabelKey(CronJobHistoryModel cronJobHistoryModel) protected Stringprotected Stringcom.hybris.cockpitng.labels.LabelServiceprotected StringgetSclassSuffixFor(CronJobHistoryModel cronJobHistoryModel) protected StringgetStatusInfo(CronJobHistoryModel cronJobHistoryModel) protected StringgetStatusReplacementLabelKey(CronJobHistoryModel cronJobHistoryModel) getStrategy(CronJobHistoryModel context) protected booleanisAbortApplicable(CronJobHistoryModel cronJobHistory) protected booleanisFailed(CronJobHistoryModel cronJobHistoryModel) protected booleanisReRunApplicable(CronJobHistoryModel cronJobHistory) voidrender(org.zkoss.zul.Listitem listitem, Object configuration, CronJobHistoryModel cronJobHistory, com.hybris.cockpitng.dataaccess.facades.type.DataType dataType, com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager) protected voidrerunCronJob(CronJobHistoryModel cronJobHistory) voidsetCockpitUserService(com.hybris.cockpitng.core.user.CockpitUserService cockpitUserService) voidsetCronJobHistoryFacade(CronJobHistoryFacade cronJobHistoryFacade) voidsetCronJobService(CronJobService cronJobService) voidsetLabelService(com.hybris.cockpitng.labels.LabelService labelService) voidsetPermissionFacade(com.hybris.cockpitng.dataaccess.facades.permissions.PermissionFacade permissionFacade) voidvoidsetTimeService(TimeService timeService) protected intshowAbortConfirmationPopup(CronJobHistoryModel cronJobHistory) protected voidshowCronJobLog(CronJobHistoryModel cronJobHistory, com.hybris.cockpitng.engine.WidgetInstanceManager wim) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.hybris.cockpitng.widgets.common.WidgetComponentRenderer
addRendererListener, removeRendererListener, render
-
Field Details
-
SCLASS_PROCESSES_LIST_CONTENT
- See Also:
-
SCLASS_PROCESSES_LIST_CODE
- See Also:
-
SCLASS_PROCESSES_LIST_PROGRESS
- See Also:
-
SCLASS_PROCESSES_LIST_ITEM_ICON
- See Also:
-
SCLASS_PREFIX_PROCESSES_LIST_ICON
- See Also:
-
SCLASS_PREFIX_PROCESSES_LIST_STATUS
- See Also:
-
SCLASS_STATUS_INFO_LABEL
- See Also:
-
SCLASS_PROCESSES_LIST_EDIT
- See Also:
-
SCLASS_PROCESSES_LIST_CONTENT_DUE
- See Also:
-
SCLASS_PROCESSES_MENU_POPUP
- See Also:
-
SCLASS_PROCESSES_NO_ACCESS
- See Also:
-
SCLASS_MENU_NO_ICON
- See Also:
-
LABEL_PROCESS_PROCESSING
- See Also:
-
LABEL_PROCESS_PAUSED
- See Also:
-
LABEL_PROCESS_FINISHED
- See Also:
-
LABEL_PROCESS_ABORTED
- See Also:
-
LABEL_PROCESS_UNKNOWN
- See Also:
-
LABEL_PROCESS_FAILED
- See Also:
-
LABEL_PROCESS_SHOW_LOG
- See Also:
-
LABEL_PROCESS_RE_RUN
- See Also:
-
LABEL_PROCESS_ABORT
- See Also:
-
LABEL_PROCESS_CONFIRMATION_TITLE
- See Also:
-
LABEL_PROCESS_COMFIRMATION_MESSAGE
- See Also:
-
LABEL_PROCESS_NO_LOGS
- See Also:
-
LABEL_PROCESS_STATUS_INFO
- See Also:
-
LABEL_PROCESS_STATUS_INFO_RUNNING
- See Also:
-
LABEL_PROCESS_NO_ACCESS
- See Also:
-
TOOLTIP_PROCESS_LIST_ITEM_EDIT_BUTTON
- See Also:
-
END_DATE_PATTERN
- See Also:
-
POPUP_POSITION
- See Also:
-
STATUS_FAILED
- See Also:
-
Z_INDEX
public static final int Z_INDEX- See Also:
-
-
Constructor Details
-
DefaultProcessesListItemRenderer
public DefaultProcessesListItemRenderer()
-
-
Method Details
-
render
public void render(org.zkoss.zul.Listitem listitem, Object configuration, CronJobHistoryModel cronJobHistory, com.hybris.cockpitng.dataaccess.facades.type.DataType dataType, com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager) - Specified by:
renderin interfacecom.hybris.cockpitng.widgets.common.WidgetComponentRenderer<org.zkoss.zul.Listitem,Object, CronJobHistoryModel>
-
createNoAccessRow
protected org.zkoss.zk.ui.Component createNoAccessRow() -
createMiddleContent
protected org.zkoss.zul.Div createMiddleContent(CronJobHistoryModel cronJobHistory, com.hybris.cockpitng.engine.WidgetInstanceManager wim) -
createStatusInfoComponent
-
getSclassSuffixFor
-
createJobCodeComponent
-
createSyncIcon
protected org.zkoss.zul.Div createSyncIcon(CronJobHistoryModel cronJobHistory, com.hybris.cockpitng.engine.WidgetInstanceManager wim) -
createProgressBar
protected org.zkoss.zul.impl.XulElement createProgressBar(CronJobHistoryModel cronJobHistory, com.hybris.cockpitng.engine.WidgetInstanceManager wim) -
createTimeComponent
-
createEditButton
protected org.zkoss.zul.Button createEditButton() -
createEditPopup
protected org.zkoss.zul.Menupopup createEditPopup(CronJobHistoryModel cronJobHistory, com.hybris.cockpitng.engine.WidgetInstanceManager wim) -
showAbortConfirmationPopup
-
isAbortApplicable
-
showCronJobLog
protected void showCronJobLog(CronJobHistoryModel cronJobHistory, com.hybris.cockpitng.engine.WidgetInstanceManager wim) -
rerunCronJob
-
isReRunApplicable
-
isFailed
-
createEndTimeLabel
-
createSimpleDateFormatForEndTimeLabel
-
getStatusReplacementLabelKey
-
getFinishedStatusReplacementLabelKey
-
getLabel
-
getLabel
-
getStatusInfo
-
getStrategy
-
setCronJobHistoryFacade
-
getCronJobHistoryFacade
-
setCockpitUserService
public void setCockpitUserService(com.hybris.cockpitng.core.user.CockpitUserService cockpitUserService) -
getCockpitUserService
public com.hybris.cockpitng.core.user.CockpitUserService getCockpitUserService() -
setTimeService
-
getTimeService
-
setLabelService
public void setLabelService(com.hybris.cockpitng.labels.LabelService labelService) -
getLabelService
public com.hybris.cockpitng.labels.LabelService getLabelService() -
setPermissionFacade
public void setPermissionFacade(com.hybris.cockpitng.dataaccess.facades.permissions.PermissionFacade permissionFacade) -
getProcessItemRenderingStrategyRegistry
-
setProcessItemRenderingStrategyRegistry
-
getCronJobService
-
setCronJobService
-