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,java.lang.Object,CronJobHistoryModel>
public class DefaultProcessesListItemRenderer extends java.lang.Object implements com.hybris.cockpitng.widgets.common.WidgetComponentRenderer<org.zkoss.zul.Listitem,java.lang.Object,CronJobHistoryModel>
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.String
END_DATE_PATTERN
protected static java.lang.String
LABEL_PROCESS_ABORT
protected static java.lang.String
LABEL_PROCESS_ABORTED
protected static java.lang.String
LABEL_PROCESS_COMFIRMATION_MESSAGE
protected static java.lang.String
LABEL_PROCESS_CONFIRMATION_TITLE
protected static java.lang.String
LABEL_PROCESS_FAILED
protected static java.lang.String
LABEL_PROCESS_FINISHED
protected static java.lang.String
LABEL_PROCESS_NO_ACCESS
protected static java.lang.String
LABEL_PROCESS_NO_LOGS
protected static java.lang.String
LABEL_PROCESS_PAUSED
protected static java.lang.String
LABEL_PROCESS_PROCESSING
protected static java.lang.String
LABEL_PROCESS_RE_RUN
protected static java.lang.String
LABEL_PROCESS_SHOW_LOG
protected static java.lang.String
LABEL_PROCESS_STATUS_INFO
protected static java.lang.String
LABEL_PROCESS_STATUS_INFO_RUNNING
protected static java.lang.String
LABEL_PROCESS_UNKNOWN
protected static java.lang.String
POPUP_POSITION
protected static java.lang.String
SCLASS_MENU_NO_ICON
protected static java.lang.String
SCLASS_PREFIX_PROCESSES_LIST_ICON
protected static java.lang.String
SCLASS_PREFIX_PROCESSES_LIST_STATUS
protected static java.lang.String
SCLASS_PROCESSES_LIST_CODE
protected static java.lang.String
SCLASS_PROCESSES_LIST_CONTENT
protected static java.lang.String
SCLASS_PROCESSES_LIST_CONTENT_DUE
protected static java.lang.String
SCLASS_PROCESSES_LIST_EDIT
protected static java.lang.String
SCLASS_PROCESSES_LIST_ITEM_ICON
protected static java.lang.String
SCLASS_PROCESSES_LIST_PROGRESS
protected static java.lang.String
SCLASS_PROCESSES_MENU_POPUP
protected static java.lang.String
SCLASS_PROCESSES_NO_ACCESS
protected static java.lang.String
SCLASS_STATUS_INFO_LABEL
protected static java.lang.String
STATUS_FAILED
static int
Z_INDEX
-
Constructor Summary
Constructors Constructor Description DefaultProcessesListItemRenderer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.zkoss.zul.Button
createEditButton()
protected org.zkoss.zul.Menupopup
createEditPopup(CronJobHistoryModel cronJobHistory, com.hybris.cockpitng.engine.WidgetInstanceManager wim)
protected org.zkoss.zul.Label
createEndTimeLabel(CronJobHistoryModel cronJobHistory)
protected org.zkoss.zul.Label
createJobCodeComponent(CronJobHistoryModel cronJobHistory)
protected org.zkoss.zul.Div
createMiddleContent(CronJobHistoryModel cronJobHistory, com.hybris.cockpitng.engine.WidgetInstanceManager wim)
protected org.zkoss.zk.ui.Component
createNoAccessRow()
protected org.zkoss.zul.impl.XulElement
createProgressBar(CronJobHistoryModel cronJobHistory, com.hybris.cockpitng.engine.WidgetInstanceManager wim)
protected org.zkoss.zul.Div
createStatusInfoComponent(CronJobHistoryModel cronJobHistory)
protected org.zkoss.zul.Div
createSyncIcon(CronJobHistoryModel cronJobHistory, com.hybris.cockpitng.engine.WidgetInstanceManager wim)
protected org.zkoss.zul.impl.XulElement
createTimeComponent(CronJobHistoryModel cronJobHistory)
com.hybris.cockpitng.core.user.CockpitUserService
getCockpitUserService()
CronJobHistoryFacade
getCronJobHistoryFacade()
CronJobService
getCronJobService()
protected java.lang.String
getFinishedStatusReplacementLabelKey(CronJobHistoryModel cronJobHistoryModel)
protected java.lang.String
getLabel(java.lang.String labelKey)
protected java.lang.String
getLabel(java.lang.String labelKey, java.lang.String... args)
com.hybris.cockpitng.labels.LabelService
getLabelService()
ProcessItemRenderingStrategyRegistry
getProcessItemRenderingStrategyRegistry()
protected java.lang.String
getSclassSuffixFor(CronJobHistoryModel cronJobHistoryModel)
protected java.lang.String
getStatusInfo(CronJobHistoryModel cronJobHistoryModel)
protected java.lang.String
getStatusReplacementLabelKey(CronJobHistoryModel cronJobHistoryModel)
java.util.Optional<ProcessItemRenderingStrategy>
getStrategy(CronJobHistoryModel context)
protected boolean
isAbortApplicable(CronJobHistoryModel cronJobHistory)
protected boolean
isFailed(CronJobHistoryModel cronJobHistoryModel)
protected boolean
isReRunApplicable(CronJobHistoryModel cronJobHistory)
void
render(org.zkoss.zul.Listitem listitem, java.lang.Object configuration, CronJobHistoryModel cronJobHistory, com.hybris.cockpitng.dataaccess.facades.type.DataType dataType, com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager)
protected void
rerunCronJob(CronJobHistoryModel cronJobHistory)
void
setCockpitUserService(com.hybris.cockpitng.core.user.CockpitUserService cockpitUserService)
void
setCronJobHistoryFacade(CronJobHistoryFacade cronJobHistoryFacade)
void
setCronJobService(CronJobService cronJobService)
void
setLabelService(com.hybris.cockpitng.labels.LabelService labelService)
void
setPermissionFacade(com.hybris.cockpitng.dataaccess.facades.permissions.PermissionFacade permissionFacade)
void
setProcessItemRenderingStrategyRegistry(ProcessItemRenderingStrategyRegistry registry)
void
setTimeService(TimeService timeService)
protected int
showAbortConfirmationPopup(CronJobHistoryModel cronJobHistory)
protected void
showCronJobLog(CronJobHistoryModel cronJobHistory, com.hybris.cockpitng.engine.WidgetInstanceManager wim)
-
-
-
Field Detail
-
SCLASS_PROCESSES_LIST_CONTENT
protected static final java.lang.String SCLASS_PROCESSES_LIST_CONTENT
- See Also:
- Constant Field Values
-
SCLASS_PROCESSES_LIST_CODE
protected static final java.lang.String SCLASS_PROCESSES_LIST_CODE
- See Also:
- Constant Field Values
-
SCLASS_PROCESSES_LIST_PROGRESS
protected static final java.lang.String SCLASS_PROCESSES_LIST_PROGRESS
- See Also:
- Constant Field Values
-
SCLASS_PROCESSES_LIST_ITEM_ICON
protected static final java.lang.String SCLASS_PROCESSES_LIST_ITEM_ICON
- See Also:
- Constant Field Values
-
SCLASS_PREFIX_PROCESSES_LIST_ICON
protected static final java.lang.String SCLASS_PREFIX_PROCESSES_LIST_ICON
- See Also:
- Constant Field Values
-
SCLASS_PREFIX_PROCESSES_LIST_STATUS
protected static final java.lang.String SCLASS_PREFIX_PROCESSES_LIST_STATUS
- See Also:
- Constant Field Values
-
SCLASS_STATUS_INFO_LABEL
protected static final java.lang.String SCLASS_STATUS_INFO_LABEL
- See Also:
- Constant Field Values
-
SCLASS_PROCESSES_LIST_EDIT
protected static final java.lang.String SCLASS_PROCESSES_LIST_EDIT
- See Also:
- Constant Field Values
-
SCLASS_PROCESSES_LIST_CONTENT_DUE
protected static final java.lang.String SCLASS_PROCESSES_LIST_CONTENT_DUE
- See Also:
- Constant Field Values
-
SCLASS_PROCESSES_MENU_POPUP
protected static final java.lang.String SCLASS_PROCESSES_MENU_POPUP
- See Also:
- Constant Field Values
-
SCLASS_PROCESSES_NO_ACCESS
protected static final java.lang.String SCLASS_PROCESSES_NO_ACCESS
- See Also:
- Constant Field Values
-
SCLASS_MENU_NO_ICON
protected static final java.lang.String SCLASS_MENU_NO_ICON
- See Also:
- Constant Field Values
-
LABEL_PROCESS_PROCESSING
protected static final java.lang.String LABEL_PROCESS_PROCESSING
- See Also:
- Constant Field Values
-
LABEL_PROCESS_PAUSED
protected static final java.lang.String LABEL_PROCESS_PAUSED
- See Also:
- Constant Field Values
-
LABEL_PROCESS_FINISHED
protected static final java.lang.String LABEL_PROCESS_FINISHED
- See Also:
- Constant Field Values
-
LABEL_PROCESS_ABORTED
protected static final java.lang.String LABEL_PROCESS_ABORTED
- See Also:
- Constant Field Values
-
LABEL_PROCESS_UNKNOWN
protected static final java.lang.String LABEL_PROCESS_UNKNOWN
- See Also:
- Constant Field Values
-
LABEL_PROCESS_FAILED
protected static final java.lang.String LABEL_PROCESS_FAILED
- See Also:
- Constant Field Values
-
LABEL_PROCESS_SHOW_LOG
protected static final java.lang.String LABEL_PROCESS_SHOW_LOG
- See Also:
- Constant Field Values
-
LABEL_PROCESS_RE_RUN
protected static final java.lang.String LABEL_PROCESS_RE_RUN
- See Also:
- Constant Field Values
-
LABEL_PROCESS_ABORT
protected static final java.lang.String LABEL_PROCESS_ABORT
- See Also:
- Constant Field Values
-
LABEL_PROCESS_CONFIRMATION_TITLE
protected static final java.lang.String LABEL_PROCESS_CONFIRMATION_TITLE
- See Also:
- Constant Field Values
-
LABEL_PROCESS_COMFIRMATION_MESSAGE
protected static final java.lang.String LABEL_PROCESS_COMFIRMATION_MESSAGE
- See Also:
- Constant Field Values
-
LABEL_PROCESS_NO_LOGS
protected static final java.lang.String LABEL_PROCESS_NO_LOGS
- See Also:
- Constant Field Values
-
LABEL_PROCESS_STATUS_INFO
protected static final java.lang.String LABEL_PROCESS_STATUS_INFO
- See Also:
- Constant Field Values
-
LABEL_PROCESS_STATUS_INFO_RUNNING
protected static final java.lang.String LABEL_PROCESS_STATUS_INFO_RUNNING
- See Also:
- Constant Field Values
-
LABEL_PROCESS_NO_ACCESS
protected static final java.lang.String LABEL_PROCESS_NO_ACCESS
- See Also:
- Constant Field Values
-
END_DATE_PATTERN
protected static final java.lang.String END_DATE_PATTERN
- See Also:
- Constant Field Values
-
POPUP_POSITION
protected static final java.lang.String POPUP_POSITION
- See Also:
- Constant Field Values
-
STATUS_FAILED
protected static final java.lang.String STATUS_FAILED
- See Also:
- Constant Field Values
-
Z_INDEX
public static final int Z_INDEX
- See Also:
- Constant Field Values
-
-
Method Detail
-
render
public void render(org.zkoss.zul.Listitem listitem, java.lang.Object configuration, CronJobHistoryModel cronJobHistory, com.hybris.cockpitng.dataaccess.facades.type.DataType dataType, com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager)
- Specified by:
render
in interfacecom.hybris.cockpitng.widgets.common.WidgetComponentRenderer<org.zkoss.zul.Listitem,java.lang.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
protected org.zkoss.zul.Div createStatusInfoComponent(CronJobHistoryModel cronJobHistory)
-
getSclassSuffixFor
protected java.lang.String getSclassSuffixFor(CronJobHistoryModel cronJobHistoryModel)
-
createJobCodeComponent
protected org.zkoss.zul.Label createJobCodeComponent(CronJobHistoryModel cronJobHistory)
-
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
protected org.zkoss.zul.impl.XulElement createTimeComponent(CronJobHistoryModel cronJobHistory)
-
createEditButton
protected org.zkoss.zul.Button createEditButton()
-
createEditPopup
protected org.zkoss.zul.Menupopup createEditPopup(CronJobHistoryModel cronJobHistory, com.hybris.cockpitng.engine.WidgetInstanceManager wim)
-
showAbortConfirmationPopup
protected int showAbortConfirmationPopup(CronJobHistoryModel cronJobHistory)
-
isAbortApplicable
protected boolean isAbortApplicable(CronJobHistoryModel cronJobHistory)
-
showCronJobLog
protected void showCronJobLog(CronJobHistoryModel cronJobHistory, com.hybris.cockpitng.engine.WidgetInstanceManager wim)
-
rerunCronJob
protected void rerunCronJob(CronJobHistoryModel cronJobHistory)
-
isReRunApplicable
protected boolean isReRunApplicable(CronJobHistoryModel cronJobHistory)
-
isFailed
protected boolean isFailed(CronJobHistoryModel cronJobHistoryModel)
-
createEndTimeLabel
protected org.zkoss.zul.Label createEndTimeLabel(CronJobHistoryModel cronJobHistory)
-
getStatusReplacementLabelKey
protected java.lang.String getStatusReplacementLabelKey(CronJobHistoryModel cronJobHistoryModel)
-
getFinishedStatusReplacementLabelKey
protected java.lang.String getFinishedStatusReplacementLabelKey(CronJobHistoryModel cronJobHistoryModel)
-
getLabel
protected java.lang.String getLabel(java.lang.String labelKey)
-
getLabel
protected java.lang.String getLabel(java.lang.String labelKey, java.lang.String... args)
-
getStatusInfo
protected java.lang.String getStatusInfo(CronJobHistoryModel cronJobHistoryModel)
-
getStrategy
public java.util.Optional<ProcessItemRenderingStrategy> getStrategy(CronJobHistoryModel context)
-
setCronJobHistoryFacade
public void setCronJobHistoryFacade(CronJobHistoryFacade cronJobHistoryFacade)
-
getCronJobHistoryFacade
public CronJobHistoryFacade getCronJobHistoryFacade()
-
setCockpitUserService
public void setCockpitUserService(com.hybris.cockpitng.core.user.CockpitUserService cockpitUserService)
-
getCockpitUserService
public com.hybris.cockpitng.core.user.CockpitUserService getCockpitUserService()
-
setTimeService
public void setTimeService(TimeService timeService)
-
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
public ProcessItemRenderingStrategyRegistry getProcessItemRenderingStrategyRegistry()
-
setProcessItemRenderingStrategyRegistry
public void setProcessItemRenderingStrategyRegistry(ProcessItemRenderingStrategyRegistry registry)
-
getCronJobService
public CronJobService getCronJobService()
-
setCronJobService
public void setCronJobService(CronJobService cronJobService)
-
-