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

public class ExcelExportAction extends com.hybris.cockpitng.engine.impl.AbstractComponentWidgetAdapterAware implements com.hybris.cockpitng.actions.CockpitAction<String,com.hybris.cockpitng.search.data.pageable.Pageable<? extends ItemModel>>
  • Field Details

  • Constructor Details

    • ExcelExportAction

      public ExcelExportAction()
  • Method Details

    • perform

      public com.hybris.cockpitng.actions.ActionResult<com.hybris.cockpitng.search.data.pageable.Pageable<? extends ItemModel>> perform(com.hybris.cockpitng.actions.ActionContext<String> ctx)
      Specified by:
      perform in interface com.hybris.cockpitng.actions.CockpitAction<String,com.hybris.cockpitng.search.data.pageable.Pageable<? extends ItemModel>>
    • 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

      public boolean needsConfirmation(com.hybris.cockpitng.actions.ActionContext<String> ctx)
      Specified by:
      needsConfirmation in interface com.hybris.cockpitng.actions.CockpitAction<String,com.hybris.cockpitng.search.data.pageable.Pageable<? extends ItemModel>>
    • getExportMaxRows

      protected int getExportMaxRows(com.hybris.cockpitng.actions.ActionContext<String> ctx)
    • getConfirmationMessage

      public String getConfirmationMessage(com.hybris.cockpitng.actions.ActionContext<String> ctx)
      Specified by:
      getConfirmationMessage in interface com.hybris.cockpitng.actions.CockpitAction<String,com.hybris.cockpitng.search.data.pageable.Pageable<? extends ItemModel>>
    • canPerform

      public boolean canPerform(com.hybris.cockpitng.actions.ActionContext<String> ctx)
      Specified by:
      canPerform in interface com.hybris.cockpitng.actions.CockpitAction<String,com.hybris.cockpitng.search.data.pageable.Pageable<? extends ItemModel>>
    • 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

      protected Optional<com.hybris.cockpitng.search.data.pageable.Pageable<ItemModel>> getSelectedItems(com.hybris.cockpitng.actions.ActionContext<String> ctx)
    • getSelectedItemsFromModel

      protected Collection<Object> getSelectedItemsFromModel(com.hybris.cockpitng.actions.ActionContext<String> ctx)
    • getSelectedItemsType

      protected Optional<String> getSelectedItemsType(com.hybris.cockpitng.actions.ActionContext<String> ctx)
    • getPageable

      protected com.hybris.cockpitng.search.data.pageable.Pageable<ItemModel> getPageable(com.hybris.cockpitng.actions.ActionContext<String> ctx)
    • getWidgetModel

      protected com.hybris.cockpitng.core.model.WidgetModel getWidgetModel(com.hybris.cockpitng.actions.ActionContext<String> ctx)
    • getSize

      public int getSize(com.hybris.cockpitng.actions.ActionContext<String> ctx)
    • getPageableModelProperty

      protected String getPageableModelProperty(com.hybris.cockpitng.actions.ActionContext<String> ctx)
    • getSelectedItemsModelProperty

      protected String getSelectedItemsModelProperty(com.hybris.cockpitng.actions.ActionContext<String> ctx)
    • getConfirmationThresholdValue

      protected int getConfirmationThresholdValue(com.hybris.cockpitng.actions.ActionContext<String> ctx)
    • getTypeService

      public TypeService getTypeService()
    • getPermissionFacade

      public com.hybris.cockpitng.dataaccess.facades.permissions.PermissionFacade getPermissionFacade()
    • getBackofficeTypeUtils

      public com.hybris.cockpitng.util.type.BackofficeTypeUtils getBackofficeTypeUtils()