Class BundleTemplateCloneAction
- java.lang.Object
-
- com.hybris.cockpitng.engine.impl.AbstractComponentWidgetAdapterAware
-
- com.hybris.cockpitng.actions.clone.CloneAction
-
- de.hybris.platform.configurablebundlebackoffice.widgets.actions.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 Summary
Constructors Constructor Description BundleTemplateCloneAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanPerform(com.hybris.cockpitng.actions.ActionContext<java.lang.Object> ctx)protected BundleTemplateModelcloneBundleTemplate(BundleTemplateModel bundleToBeCloned)protected BundleTemplateModelcloneBundleTemplateRecursive(BundleTemplateModel bundleToBeCloned)protected voidcloneChildBundleTemplatesRecursive(BundleTemplateModel bundleToBeCloned, BundleTemplateModel clonedBundleTemplateModel)protected voidcloneDependentBundleTemplatesRecursive(BundleTemplateModel bundleToBeCloned, BundleTemplateModel clonedBundleTemplateModel)protected voidcloneRequiredBundleTemplatesRecursive(BundleTemplateModel bundleToBeCloned, BundleTemplateModel clonedBundleTemplateModel)protected KeyGeneratorgetCloneIdGenerator()protected UserServicegetUserService()protected booleanisBundleTemplateClonable(BundleTemplateModel bundleTemplate)com.hybris.cockpitng.actions.ActionResult<java.lang.Object>perform(com.hybris.cockpitng.actions.ActionContext<java.lang.Object> ctx)protected BundleTemplateModelresolveBundleTemplateToClone(com.hybris.cockpitng.actions.ActionContext<java.lang.Object> ctx)-
Methods inherited from class com.hybris.cockpitng.actions.clone.CloneAction
canCreateInstance, getObjectFacade, getPermissionFacade, getTypeFacade, isDifferentThanOneObject, isTypeInstanceCreationAllowed, resolveObjectToClone
-
Methods inherited from class com.hybris.cockpitng.engine.impl.AbstractComponentWidgetAdapterAware
addSocketInputEventListener, getComponentID, handleSocketInputEvent, initialize, initializeDefaultEventListeners, registerStubInstance, sendOutput, setComponentID, unregisterStubInstance
-
-
-
-
Method Detail
-
perform
public com.hybris.cockpitng.actions.ActionResult<java.lang.Object> perform(com.hybris.cockpitng.actions.ActionContext<java.lang.Object> ctx)
- Specified by:
performin interfacecom.hybris.cockpitng.actions.CockpitAction<java.lang.Object,java.lang.Object>- Overrides:
performin classcom.hybris.cockpitng.actions.clone.CloneAction
-
canPerform
public boolean canPerform(com.hybris.cockpitng.actions.ActionContext<java.lang.Object> ctx)
- Specified by:
canPerformin interfacecom.hybris.cockpitng.actions.CockpitAction<java.lang.Object,java.lang.Object>- Overrides:
canPerformin classcom.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.ObjectCloningExceptioncom.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.ObjectCloningExceptioncom.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.ObjectCloningExceptioncom.hybris.cockpitng.dataaccess.facades.object.exceptions.ObjectCreationException
-
cloneRequiredBundleTemplatesRecursive
protected void cloneRequiredBundleTemplatesRecursive(BundleTemplateModel bundleToBeCloned, BundleTemplateModel clonedBundleTemplateModel)
-
cloneDependentBundleTemplatesRecursive
protected void cloneDependentBundleTemplatesRecursive(BundleTemplateModel bundleToBeCloned, BundleTemplateModel clonedBundleTemplateModel)
-
getCloneIdGenerator
protected KeyGenerator getCloneIdGenerator()
-
getUserService
protected UserService getUserService()
-
-