Class ProductWizardCatalogVersionPopulator

java.lang.Object
de.hybris.platform.platformbackoffice.handlers.ProductWizardCatalogVersionPopulator
All Implemented Interfaces:
com.hybris.cockpitng.widgets.configurableflow.FlowPrepareHandler

public class ProductWizardCatalogVersionPopulator extends Object implements com.hybris.cockpitng.widgets.configurableflow.FlowPrepareHandler
Wizard handler which populates ProductModel.CATALOGVERSION property from context and checks if user can create product in such Catalog Version.
  • Constructor Details

    • ProductWizardCatalogVersionPopulator

      public ProductWizardCatalogVersionPopulator()
  • Method Details

    • prepareFlow

      public void prepareFlow(com.hybris.cockpitng.config.jaxb.wizard.PrepareType prepare, com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager)
      Specified by:
      prepareFlow in interface com.hybris.cockpitng.widgets.configurableflow.FlowPrepareHandler
    • getCatalogVersionFromActionContext

      protected CatalogVersionModel getCatalogVersionFromActionContext(Map<String,Object> ctx)
    • getCatalogVersionFromMap

      protected CatalogVersionModel getCatalogVersionFromMap(Map<String,Object> ctx)
    • populateProductWithCatalogVersion

      protected void populateProductWithCatalogVersion(com.hybris.cockpitng.core.model.WidgetModel widgetModel, CatalogVersionModel catalogVersion)
    • getAllWritableCatalogVersions

      protected Collection<CatalogVersionModel> getAllWritableCatalogVersions(UserModel currentUser)
    • getCatalogVersionService

      protected CatalogVersionService getCatalogVersionService()
    • setCatalogVersionService

      public void setCatalogVersionService(CatalogVersionService catalogVersionService)
    • getUserService

      protected UserService getUserService()
    • setUserService

      public void setUserService(UserService userService)