Class CreateAuditReportAction
- java.lang.Object
-
- com.hybris.cockpitng.engine.impl.AbstractComponentWidgetAdapterAware
-
- com.hybris.backoffice.widgets.actions.audit.CreateAuditReportAction
-
- All Implemented Interfaces:
com.hybris.cockpitng.actions.CockpitAction<ItemModel,java.lang.Object>
,com.hybris.cockpitng.engine.ComponentWidgetAdapterAware
public class CreateAuditReportAction extends com.hybris.cockpitng.engine.impl.AbstractComponentWidgetAdapterAware implements com.hybris.cockpitng.actions.CockpitAction<ItemModel,java.lang.Object>
Action responsible for creating audit reports for given item.
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.String
PARAMETER_ALLOWED_CONFIG_CODES
protected static java.lang.String
PARAMETER_AUDIT
protected static java.lang.String
PARAMETER_PRESELECTED_CONFIG
protected static java.lang.String
PARAMETER_REPORT_NAME
protected static java.lang.String
REPORT_NAME_FORMAT
protected static java.lang.String
SETTING_PRESELECTED_REPORT_CONFIG
protected static java.lang.String
SETTING_REPORT_DATE_FORMAT
protected static java.lang.String
SOCKET_OUT_OPEN_WIZARD
-
Constructor Summary
Constructors Constructor Description CreateAuditReportAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canPerform(com.hybris.cockpitng.actions.ActionContext<ItemModel> ctx)
AuditConfigService
getAuditConfigService()
java.lang.String
getConfirmationMessage(com.hybris.cockpitng.actions.ActionContext<ItemModel> ctx)
com.hybris.cockpitng.labels.LabelService
getLabelService()
com.hybris.cockpitng.dataaccess.facades.type.TypeFacade
getTypeFacade()
boolean
needsConfirmation(com.hybris.cockpitng.actions.ActionContext<ItemModel> ctx)
com.hybris.cockpitng.actions.ActionResult<java.lang.Object>
perform(com.hybris.cockpitng.actions.ActionContext<ItemModel> ctx)
protected java.lang.String
prepareFormattedDate(com.hybris.cockpitng.actions.ActionContext<ItemModel> ctx)
protected java.lang.String
prepareReportName(com.hybris.cockpitng.actions.ActionContext<ItemModel> ctx, java.lang.String objectLabel)
protected java.lang.String
resolvePreselectedConfig(com.hybris.cockpitng.actions.ActionContext<ItemModel> ctx, java.util.List<java.lang.String> configs)
void
setAuditConfigService(AuditConfigService auditConfigService)
void
setLabelService(com.hybris.cockpitng.labels.LabelService labelService)
void
setTypeFacade(com.hybris.cockpitng.dataaccess.facades.type.TypeFacade typeFacade)
-
-
-
Field Detail
-
PARAMETER_REPORT_NAME
protected static final java.lang.String PARAMETER_REPORT_NAME
- See Also:
- Constant Field Values
-
PARAMETER_AUDIT
protected static final java.lang.String PARAMETER_AUDIT
- See Also:
- Constant Field Values
-
PARAMETER_ALLOWED_CONFIG_CODES
protected static final java.lang.String PARAMETER_ALLOWED_CONFIG_CODES
- See Also:
- Constant Field Values
-
PARAMETER_PRESELECTED_CONFIG
protected static final java.lang.String PARAMETER_PRESELECTED_CONFIG
- See Also:
- Constant Field Values
-
REPORT_NAME_FORMAT
protected static final java.lang.String REPORT_NAME_FORMAT
- See Also:
- Constant Field Values
-
SOCKET_OUT_OPEN_WIZARD
protected static final java.lang.String SOCKET_OUT_OPEN_WIZARD
- See Also:
- Constant Field Values
-
SETTING_REPORT_DATE_FORMAT
protected static final java.lang.String SETTING_REPORT_DATE_FORMAT
- See Also:
- Constant Field Values
-
SETTING_PRESELECTED_REPORT_CONFIG
protected static final java.lang.String SETTING_PRESELECTED_REPORT_CONFIG
- See Also:
- Constant Field Values
-
-
Method Detail
-
perform
public com.hybris.cockpitng.actions.ActionResult<java.lang.Object> perform(com.hybris.cockpitng.actions.ActionContext<ItemModel> ctx)
- Specified by:
perform
in interfacecom.hybris.cockpitng.actions.CockpitAction<ItemModel,java.lang.Object>
-
resolvePreselectedConfig
protected java.lang.String resolvePreselectedConfig(com.hybris.cockpitng.actions.ActionContext<ItemModel> ctx, java.util.List<java.lang.String> configs)
-
prepareReportName
protected java.lang.String prepareReportName(com.hybris.cockpitng.actions.ActionContext<ItemModel> ctx, java.lang.String objectLabel)
-
prepareFormattedDate
protected java.lang.String prepareFormattedDate(com.hybris.cockpitng.actions.ActionContext<ItemModel> ctx)
-
getTypeFacade
public com.hybris.cockpitng.dataaccess.facades.type.TypeFacade getTypeFacade()
-
setTypeFacade
public void setTypeFacade(com.hybris.cockpitng.dataaccess.facades.type.TypeFacade typeFacade)
-
getAuditConfigService
public AuditConfigService getAuditConfigService()
-
setAuditConfigService
public void setAuditConfigService(AuditConfigService auditConfigService)
-
getLabelService
public com.hybris.cockpitng.labels.LabelService getLabelService()
-
setLabelService
public void setLabelService(com.hybris.cockpitng.labels.LabelService labelService)
-
canPerform
public boolean canPerform(com.hybris.cockpitng.actions.ActionContext<ItemModel> ctx)
- Specified by:
canPerform
in interfacecom.hybris.cockpitng.actions.CockpitAction<ItemModel,java.lang.Object>
-
needsConfirmation
public boolean needsConfirmation(com.hybris.cockpitng.actions.ActionContext<ItemModel> ctx)
- Specified by:
needsConfirmation
in interfacecom.hybris.cockpitng.actions.CockpitAction<ItemModel,java.lang.Object>
-
-