Class ExcelExportAction
java.lang.Object
com.hybris.cockpitng.engine.impl.AbstractComponentWidgetAdapterAware
com.hybris.backoffice.widgets.actions.excel.ExcelExportAction
- All Implemented Interfaces:
com.hybris.cockpitng.actions.CockpitAction<String,,com.hybris.cockpitng.search.data.pageable.Pageable<? extends ItemModel>> com.hybris.cockpitng.engine.ComponentWidgetAdapterAware
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanPerform(com.hybris.cockpitng.actions.ActionContext<String> ctx) com.hybris.cockpitng.util.type.BackofficeTypeUtilsgetConfirmationMessage(com.hybris.cockpitng.actions.ActionContext<String> ctx) protected intgetConfirmationThresholdValue(com.hybris.cockpitng.actions.ActionContext<String> ctx) Returns data related with collection browser's pageable.protected intgetExportMaxRows(com.hybris.cockpitng.actions.ActionContext<String> ctx) protected com.hybris.cockpitng.search.data.pageable.Pageable<ItemModel>getPageable(com.hybris.cockpitng.actions.ActionContext<String> ctx) protected StringgetPageableModelProperty(com.hybris.cockpitng.actions.ActionContext<String> ctx) com.hybris.cockpitng.dataaccess.facades.permissions.PermissionFacadegetSelectedItems(com.hybris.cockpitng.actions.ActionContext<String> ctx) protected Collection<Object>getSelectedItemsFromModel(com.hybris.cockpitng.actions.ActionContext<String> ctx) protected StringgetSelectedItemsModelProperty(com.hybris.cockpitng.actions.ActionContext<String> ctx) getSelectedItemsType(com.hybris.cockpitng.actions.ActionContext<String> ctx) intprotected com.hybris.cockpitng.core.model.WidgetModelgetWidgetModel(com.hybris.cockpitng.actions.ActionContext<String> ctx) protected booleanisMaxRowsExceeded(com.hybris.cockpitng.actions.ActionContext<String> ctx, int rows) booleanneedsConfirmation(com.hybris.cockpitng.actions.ActionContext<String> ctx) com.hybris.cockpitng.actions.ActionResult<com.hybris.cockpitng.search.data.pageable.Pageable<? extends ItemModel>>protected voidshowMaxRowsExceeded(com.hybris.cockpitng.actions.ActionContext<String> ctx, int rows) Methods inherited from class com.hybris.cockpitng.engine.impl.AbstractComponentWidgetAdapterAware
addSocketInputEventListener, getComponentID, handleSocketInputEvent, initialize, initializeDefaultEventListeners, registerStubInstance, sendOutput, setComponentID, unregisterStubInstance
-
Field Details
-
SOCKET_OUT_ITEMS_TO_EXPORT
- See Also:
-
LABEL_EXCEL_EXPORT_ACTION_CONFIRMATION
- See Also:
-
PARAM_CONFIRMATION_THRESHOLD
- See Also:
-
MODEL_SELECTED_OBJECTS
- See Also:
-
MODEL_PAGEABLE
- See Also:
-
-
Constructor Details
-
ExcelExportAction
public ExcelExportAction()
-
-
Method Details
-
perform
-
showMaxRowsExceeded
protected void showMaxRowsExceeded(com.hybris.cockpitng.actions.ActionContext<String> ctx, int rows) -
isMaxRowsExceeded
protected boolean isMaxRowsExceeded(com.hybris.cockpitng.actions.ActionContext<String> ctx, int rows) -
needsConfirmation
-
getExportMaxRows
-
getConfirmationMessage
-
canPerform
-
getData
public Optional<com.hybris.cockpitng.search.data.pageable.Pageable<ItemModel>> getData(com.hybris.cockpitng.actions.ActionContext<String> ctx) Returns data related with collection browser's pageable. If no items are selected then the all items for specific typeCode are returned. Otherwise, only selected items are returned.- Parameters:
ctx- context of the ExcelExportAction- Returns:
- optional of pageable
-
getSelectedItems
-
getSelectedItemsFromModel
protected Collection<Object> getSelectedItemsFromModel(com.hybris.cockpitng.actions.ActionContext<String> ctx) -
getSelectedItemsType
-
getPageable
-
getWidgetModel
protected com.hybris.cockpitng.core.model.WidgetModel getWidgetModel(com.hybris.cockpitng.actions.ActionContext<String> ctx) -
getSize
-
getPageableModelProperty
-
getSelectedItemsModelProperty
-
getConfirmationThresholdValue
-
getTypeService
-
getPermissionFacade
public com.hybris.cockpitng.dataaccess.facades.permissions.PermissionFacade getPermissionFacade() -
getBackofficeTypeUtils
public com.hybris.cockpitng.util.type.BackofficeTypeUtils getBackofficeTypeUtils()
-