Class MediaForCatalogVersionAttributePresetHandler
java.lang.Object
de.hybris.platform.cms2.cloning.service.preset.impl.MediaForCatalogVersionAttributePresetHandler
- All Implemented Interfaces:
AttributePresetHandler<CatalogVersionModel>,BiPredicate<ItemModel,,String> Supplier<CatalogVersionModel>
public class MediaForCatalogVersionAttributePresetHandler
extends Object
implements AttributePresetHandler<CatalogVersionModel>
Predicate to test if the
CATALOGVERSION qualifier of the MediaModel 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
ConstructorsConstructorDescriptionMediaForCatalogVersionAttributePresetHandler(CatalogVersionModel targetCatalogVersion) -
Method Summary
Modifier and TypeMethodDescriptionget()protected CatalogVersionModelvoidsetTargetCatalogVersion(CatalogVersionModel targetCatalogVersion) booleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.cms2.cloning.service.preset.AttributePresetHandler
getMethods inherited from interface java.util.function.BiPredicate
and, negate, or
-
Constructor Details
-
MediaForCatalogVersionAttributePresetHandler
-
-
Method Details
-
test
- Specified by:
testin interfaceBiPredicate<ItemModel,String>
-
get
- Specified by:
getin interfaceSupplier<CatalogVersionModel>
-
getTargetCatalogVersion
-
setTargetCatalogVersion
-