Class ComponentForUidAttributePresetHandler
java.lang.Object
de.hybris.platform.cms2.cloning.service.preset.impl.ComponentForUidAttributePresetHandler
- All Implemented Interfaces:
AttributePresetHandler<String>,BiPredicate<ItemModel,,String> Supplier<String>
public class ComponentForUidAttributePresetHandler
extends Object
implements AttributePresetHandler<String>
Predicate to test if the
UID qualifier of the AbstractCMSComponentModel component has a preset value
during the deep cloning process.
When the expression evaluates to TRUE, the deep cloning process will detect that a new preset value (e.g.
UID) needs to be generated for the qualifier of the component and the process will call #get() to retrieve
the generated preset value.
-
Constructor Summary
ConstructorsConstructorDescriptionComponentForUidAttributePresetHandler(CMSAdminComponentService cmsAdminComponentService, CMSItemDeepCloningService cmsItemDeepCloningService) -
Method Summary
Modifier and TypeMethodDescriptionget()protected CMSAdminComponentServicevoidsetCmsAdminComponentService(CMSAdminComponentService cmsAdminComponentService) voidsetCmsItemDeepCloningService(CMSItemDeepCloningService cmsItemDeepCloningService) booleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.BiPredicate
and, negate, or
-
Constructor Details
-
ComponentForUidAttributePresetHandler
public ComponentForUidAttributePresetHandler(CMSAdminComponentService cmsAdminComponentService, CMSItemDeepCloningService cmsItemDeepCloningService)
-
-
Method Details
-
test
- Specified by:
testin interfaceBiPredicate<ItemModel,String>
-
get
-
get
- Specified by:
getin interfaceAttributePresetHandler<String>
-
getCmsAdminComponentService
-
setCmsAdminComponentService
-
getCmsItemDeepCloningService
-
setCmsItemDeepCloningService
-