Class AbstractSmarteditItemPropertiesSupplier
java.lang.Object
de.hybris.platform.cmsoccaddon.properties.suppliers.AbstractSmarteditItemPropertiesSupplier
- All Implemented Interfaces:
CMSItemPropertiesSupplier
- Direct Known Subclasses:
SmartEditContentSlotPropertiesSupplier,SmartEditPagePropertiesSupplier
public abstract class AbstractSmarteditItemPropertiesSupplier
extends Object
implements CMSItemPropertiesSupplier
Abstract class contains default implementation for
CMSItemPropertiesSupplier.
It provides the default group name for all SmartEdit suppliers and default implementation
for CMSItemPropertiesSupplier.isEnabled(CMSItemModel).-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThePredicateto test whether this supplier can be applied to providedCMSItemModelprotected Predicate<CMSItemModel>protected SessionServiceprotected UniqueItemIdentifierServiceMethod to provide the properties' group name.booleanisEnabled(CMSItemModel itemModel) Method to verify whether properties should be applied or not toCMSItemModel.voidsetItemModelPredicate(Predicate<CMSItemModel> itemModelPredicate) voidsetSessionService(SessionService sessionService) voidsetUniqueItemIdentifierService(UniqueItemIdentifierService uniqueItemIdentifierService) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.cmsfacades.cmsitems.properties.CMSItemPropertiesSupplier
getProperties
-
Field Details
-
GROUP_NAME
- See Also:
-
CLASSES
- See Also:
-
-
Constructor Details
-
AbstractSmarteditItemPropertiesSupplier
public AbstractSmarteditItemPropertiesSupplier()
-
-
Method Details
-
isEnabled
Description copied from interface:CMSItemPropertiesSupplierMethod to verify whether properties should be applied or not toCMSItemModel.- Specified by:
isEnabledin interfaceCMSItemPropertiesSupplier- Parameters:
itemModel- theCMSItemModel.- Returns:
- true if properties should be applied, false otherwise; default is true.
-
groupName
Description copied from interface:CMSItemPropertiesSupplierMethod to provide the properties' group name.- Specified by:
groupNamein interfaceCMSItemPropertiesSupplier- Returns:
- the properties' group name.
-
getConstrainedBy
Description copied from interface:CMSItemPropertiesSupplierThePredicateto test whether this supplier can be applied to providedCMSItemModel- Specified by:
getConstrainedByin interfaceCMSItemPropertiesSupplier- Returns:
- the
Predicate
-
getItemModelPredicate
-
setItemModelPredicate
-
getUniqueItemIdentifierService
-
setUniqueItemIdentifierService
-
getSessionService
-
setSessionService
-