Interface ItemModelPrepareInterceptorService
- All Known Implementing Classes:
DefaultItemModelPrepareInterceptorService
public interface ItemModelPrepareInterceptorService
an interface for itemModel prepare interceptor
-
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanDetermines 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)
-
Method Details
-
isOnlyChangeSynchronizationBlocked
boolean isOnlyChangeSynchronizationBlocked(ItemModel itemModel, InterceptorContext interceptorContext) Determines whether the given itemModel only changed the attribute synchronizationBlocked of CMSItemModel.- Parameters:
itemModel-ItemModelthe itemModel which will be prepare interceptorinterceptorContext-InterceptorContextthe interceptor context- Returns:
- TRUE if the itemModel only changed synchronizationBlocked, FALSE otherwise
-
isFromActiveCatalogVersion
Determines whether the given item resides in the active catalog version or not.
Note: the active catalog is also known as the Online catalog.- 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
-
isEnabled
boolean isEnabled() -
setEnabled
void setEnabled(boolean isEnabled)
-