Class ComponentForCatalogVersionAttributePresetPredicate

java.lang.Object
de.hybris.platform.cms2.cloning.service.predicate.ComponentForCatalogVersionAttributePresetPredicate
All Implemented Interfaces:
BiPredicate<ItemModel,String>, Supplier<CatalogVersionModel>

@Deprecated(since="2105", forRemoval=true) public class ComponentForCatalogVersionAttributePresetPredicate extends Object implements BiPredicate<ItemModel,String>, Supplier<CatalogVersionModel>
Deprecated, for removal: This API element is subject to removal in a future version.
since 2105, please use ComponentForCatalogVersionAttributePresetHandler instead.
Predicate to test if the CATALOGVERSION 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 Details

    • ComponentForCatalogVersionAttributePresetPredicate

      public ComponentForCatalogVersionAttributePresetPredicate(CatalogVersionModel targetCatalogVersion)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • test

      public boolean test(ItemModel component, String qualifier)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      test in interface BiPredicate<ItemModel,String>
    • get

      public CatalogVersionModel get()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      get in interface Supplier<CatalogVersionModel>
    • getTargetCatalogVersion

      protected CatalogVersionModel getTargetCatalogVersion()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setTargetCatalogVersion

      public void setTargetCatalogVersion(CatalogVersionModel targetCatalogVersion)
      Deprecated, for removal: This API element is subject to removal in a future version.