public class CxActionRemoveInterceptor extends Object implements RemoveInterceptor<CxCmsActionModel>
| Constructor and Description |
|---|
CxActionRemoveInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
cleanCxContainer(CxCmsActionModel cmsAction) |
protected Optional<CatalogVersionModel> |
getContentCatalog(CxCmsActionModel action)
Method return content catalog for container
|
protected boolean |
isCleanupEnabled() |
protected boolean |
isLastCmsAction(CxCmsActionModel cmsAction) |
void |
onRemove(CxCmsActionModel cmsAction,
InterceptorContext ctx)
Called in the
modelService.removeAll() method. |
void |
setCatalogVersionService(CatalogVersionService catalogVersionService) |
void |
setCmsComponentService(CMSComponentService cmsComponentService) |
void |
setConfigurationService(ConfigurationService configurationService) |
void |
setFlexibleSearchService(FlexibleSearchService flexibleSearchService) |
void |
setModelService(ModelService modelService) |
public void onRemove(CxCmsActionModel cmsAction, InterceptorContext ctx) throws InterceptorException
RemoveInterceptormodelService.removeAll() method.onRemove in interface RemoveInterceptor<CxCmsActionModel>cmsAction - the model which should be removedctx - the InterceptorContextInterceptorException - if the remove reports an errorprotected boolean isCleanupEnabled()
protected void cleanCxContainer(CxCmsActionModel cmsAction)
protected Optional<CatalogVersionModel> getContentCatalog(CxCmsActionModel action)
action - Action objectprotected boolean isLastCmsAction(CxCmsActionModel cmsAction)
public void setModelService(ModelService modelService)
public void setCmsComponentService(CMSComponentService cmsComponentService)
public void setFlexibleSearchService(FlexibleSearchService flexibleSearchService)
public void setCatalogVersionService(CatalogVersionService catalogVersionService)
public void setConfigurationService(ConfigurationService configurationService)
Copyright © 2017 SAP SE. All Rights Reserved.