Class BundleTemplateCloneAction

  • All Implemented Interfaces:
    com.hybris.cockpitng.actions.CockpitAction<java.lang.Object,​java.lang.Object>, com.hybris.cockpitng.engine.ComponentWidgetAdapterAware

    public class BundleTemplateCloneAction
    extends com.hybris.cockpitng.actions.clone.CloneAction
    • Constructor Detail

      • BundleTemplateCloneAction

        public BundleTemplateCloneAction()
    • Method Detail

      • perform

        public com.hybris.cockpitng.actions.ActionResult<java.lang.Object> perform​(com.hybris.cockpitng.actions.ActionContext<java.lang.Object> ctx)
        Specified by:
        perform in interface com.hybris.cockpitng.actions.CockpitAction<java.lang.Object,​java.lang.Object>
        Overrides:
        perform in class com.hybris.cockpitng.actions.clone.CloneAction
      • canPerform

        public boolean canPerform​(com.hybris.cockpitng.actions.ActionContext<java.lang.Object> ctx)
        Specified by:
        canPerform in interface com.hybris.cockpitng.actions.CockpitAction<java.lang.Object,​java.lang.Object>
        Overrides:
        canPerform in class com.hybris.cockpitng.actions.clone.CloneAction
      • resolveBundleTemplateToClone

        protected BundleTemplateModel resolveBundleTemplateToClone​(com.hybris.cockpitng.actions.ActionContext<java.lang.Object> ctx)
      • isBundleTemplateClonable

        protected boolean isBundleTemplateClonable​(BundleTemplateModel bundleTemplate)
      • cloneBundleTemplate

        protected BundleTemplateModel cloneBundleTemplate​(BundleTemplateModel bundleToBeCloned)
                                                   throws com.hybris.cockpitng.dataaccess.facades.object.exceptions.ObjectCloningException,
                                                          com.hybris.cockpitng.dataaccess.facades.object.exceptions.ObjectCreationException
        Throws:
        com.hybris.cockpitng.dataaccess.facades.object.exceptions.ObjectCloningException
        com.hybris.cockpitng.dataaccess.facades.object.exceptions.ObjectCreationException
      • cloneBundleTemplateRecursive

        protected BundleTemplateModel cloneBundleTemplateRecursive​(BundleTemplateModel bundleToBeCloned)
                                                            throws com.hybris.cockpitng.dataaccess.facades.object.exceptions.ObjectCloningException,
                                                                   com.hybris.cockpitng.dataaccess.facades.object.exceptions.ObjectCreationException
        Throws:
        com.hybris.cockpitng.dataaccess.facades.object.exceptions.ObjectCloningException
        com.hybris.cockpitng.dataaccess.facades.object.exceptions.ObjectCreationException
      • cloneChildBundleTemplatesRecursive

        protected void cloneChildBundleTemplatesRecursive​(BundleTemplateModel bundleToBeCloned,
                                                          BundleTemplateModel clonedBundleTemplateModel)
                                                   throws com.hybris.cockpitng.dataaccess.facades.object.exceptions.ObjectCloningException,
                                                          com.hybris.cockpitng.dataaccess.facades.object.exceptions.ObjectCreationException
        Throws:
        com.hybris.cockpitng.dataaccess.facades.object.exceptions.ObjectCloningException
        com.hybris.cockpitng.dataaccess.facades.object.exceptions.ObjectCreationException
      • getCloneIdGenerator

        protected KeyGenerator getCloneIdGenerator()
      • getUserService

        protected UserService getUserService()