Class DefaultItemModelPrepareInterceptorService
java.lang.Object
de.hybris.platform.cms2.servicelayer.interceptor.service.impl.DefaultItemModelPrepareInterceptorService
- All Implemented Interfaces:
ItemModelPrepareInterceptorService
public class DefaultItemModelPrepareInterceptorService
extends Object
implements ItemModelPrepareInterceptorService
An implementation of the service for itemModel when it is in prepare interceptor
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultItemModelPrepareInterceptorService(Predicate<ItemModel> cmsItemTypePredicate, Predicate<ItemModel> contentSlotForPageModelPredicate) Class DefaultItemModelPrepareInterceptorService public constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanisActiveVersion(CatalogVersionModel itemCatalogVersion) Verifies whether the version is active or not.booleanbooleanDetermines whether the given item resides in the active catalog version or not.booleanisOnlyChangeSynchronizationBlocked(ItemModel itemModel, InterceptorContext interceptorContext) Determines whether the given itemModel only changed the attribute synchronizationBlocked of CMSItemModel.voidsetEnabled(boolean isEnabled)
-
Constructor Details
-
Method Details
-
isFromActiveCatalogVersion
Description copied from interface:ItemModelPrepareInterceptorServiceDetermines whether the given item resides in the active catalog version or not.
Note: the active catalog is also known as the Online catalog.- Specified by:
isFromActiveCatalogVersionin interfaceItemModelPrepareInterceptorService- Parameters:
item-ItemModelwill be judged whether it is from the active version- Returns:
- TRUE if the item is in the active catalog version, FALSE otherwise
-
isOnlyChangeSynchronizationBlocked
public boolean isOnlyChangeSynchronizationBlocked(ItemModel itemModel, InterceptorContext interceptorContext) Description copied from interface:ItemModelPrepareInterceptorServiceDetermines whether the given itemModel only changed the attribute synchronizationBlocked of CMSItemModel.- Specified by:
isOnlyChangeSynchronizationBlockedin interfaceItemModelPrepareInterceptorService- Parameters:
itemModel-ItemModelthe itemModel which will be prepare interceptorinterceptorContext-InterceptorContextthe interceptor context- Returns:
- TRUE if the itemModel only changed synchronizationBlocked, FALSE otherwise
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabledin interfaceItemModelPrepareInterceptorService
-
setEnabled
public void setEnabled(boolean isEnabled) - Specified by:
setEnabledin interfaceItemModelPrepareInterceptorService
-
isActiveVersion
Verifies whether the version is active or not.- Parameters:
itemCatalogVersion- catalog version to verify- Returns:
- true, if the catalog version is active, false otherwise.
-
getCmsItemTypePredicate
-
getContentSlotForPageModelPredicate
-