Class BundleTemplateDeleteAction
- java.lang.Object
-
- com.hybris.cockpitng.actions.delete.DeleteAction
-
- de.hybris.platform.configurablebundlebackoffice.widgets.actions.BundleTemplateDeleteAction
-
- All Implemented Interfaces:
com.hybris.cockpitng.actions.CockpitAction<java.lang.Object,java.lang.Object>
public class BundleTemplateDeleteAction extends com.hybris.cockpitng.actions.delete.DeleteAction
-
-
Constructor Summary
Constructors Constructor Description BundleTemplateDeleteAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanPerform(com.hybris.cockpitng.actions.ActionContext<java.lang.Object> ctx)protected voidfillCtxObjects(com.hybris.cockpitng.actions.ActionContext<java.lang.Object> ctx, java.util.Collection<java.lang.Object> ctxObjects)protected java.util.List<BundleTemplateModel>getAllCatalogVersionsOfBundleTemplate(BundleTemplateModel templateModel)protected BackofficeLabelServicegetBackofficeLabelService()BundleTemplateServicegetBundleTemplateService()java.lang.StringgetConfirmationMessage(com.hybris.cockpitng.actions.ActionContext<java.lang.Object> ctx)protected java.util.Collection<java.lang.Object>getCtxObjects(com.hybris.cockpitng.actions.ActionContext<java.lang.Object> ctx)FlexibleSearchServicegetFlexibleSearchService()protected java.util.List<BundleTemplateModel>getRootBundles(java.util.Collection<java.lang.Object> ctxObjects)protected booleanisBundleTemplateDeletable(BundleTemplateModel bundleTemplateModel)protected booleanisChildBundleTemplateDeletable(BundleTemplateModel bundleTemplateModel)protected booleanisRootBundleTemplateDeletable(BundleTemplateModel bundleTemplateModel)com.hybris.cockpitng.actions.ActionResult<java.lang.Object>perform(com.hybris.cockpitng.actions.ActionContext<java.lang.Object> ctx)voidsetBackofficeLabelService(BackofficeLabelService backofficeLabelService)voidsetBundleTemplateService(BundleTemplateService bundleTemplateService)voidsetFlexibleSearchService(FlexibleSearchService flexibleSearchService)-
Methods inherited from class com.hybris.cockpitng.actions.delete.DeleteAction
getNotificationService, getNotificationSource, getObjectFacade, getPermissionFacade, hasPermissionAndObjectIsPersisted, isCollectionDeletable, needsConfirmation, setNotificationService, setObjectFacade, setPermissionFacade, showFailureNotification, showSuccessNotification
-
-
-
-
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.delete.DeleteAction
-
getConfirmationMessage
public java.lang.String getConfirmationMessage(com.hybris.cockpitng.actions.ActionContext<java.lang.Object> ctx)
- Specified by:
getConfirmationMessagein interfacecom.hybris.cockpitng.actions.CockpitAction<java.lang.Object,java.lang.Object>- Overrides:
getConfirmationMessagein classcom.hybris.cockpitng.actions.delete.DeleteAction
-
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.delete.DeleteAction
-
getRootBundles
protected java.util.List<BundleTemplateModel> getRootBundles(java.util.Collection<java.lang.Object> ctxObjects)
-
isBundleTemplateDeletable
protected boolean isBundleTemplateDeletable(BundleTemplateModel bundleTemplateModel)
-
isRootBundleTemplateDeletable
protected boolean isRootBundleTemplateDeletable(BundleTemplateModel bundleTemplateModel)
-
isChildBundleTemplateDeletable
protected boolean isChildBundleTemplateDeletable(BundleTemplateModel bundleTemplateModel)
-
getAllCatalogVersionsOfBundleTemplate
protected java.util.List<BundleTemplateModel> getAllCatalogVersionsOfBundleTemplate(BundleTemplateModel templateModel)
-
fillCtxObjects
protected void fillCtxObjects(com.hybris.cockpitng.actions.ActionContext<java.lang.Object> ctx, java.util.Collection<java.lang.Object> ctxObjects)
-
getCtxObjects
protected java.util.Collection<java.lang.Object> getCtxObjects(com.hybris.cockpitng.actions.ActionContext<java.lang.Object> ctx)
-
getBackofficeLabelService
protected BackofficeLabelService getBackofficeLabelService()
-
setBackofficeLabelService
public void setBackofficeLabelService(BackofficeLabelService backofficeLabelService)
-
getBundleTemplateService
public BundleTemplateService getBundleTemplateService()
-
setBundleTemplateService
public void setBundleTemplateService(BundleTemplateService bundleTemplateService)
-
getFlexibleSearchService
public FlexibleSearchService getFlexibleSearchService()
-
setFlexibleSearchService
public void setFlexibleSearchService(FlexibleSearchService flexibleSearchService)
-
-