Class MediaContainerForQualifierAttributePresetPredicate

  • All Implemented Interfaces:
    java.util.function.BiPredicate<ItemModel,​java.lang.String>, java.util.function.Supplier<java.lang.String>

    public class MediaContainerForQualifierAttributePresetPredicate
    extends java.lang.Object
    implements java.util.function.BiPredicate<ItemModel,​java.lang.String>, java.util.function.Supplier<java.lang.String>
    Predicate to test if the QUALIFIER qualifier of the MediaContainerModel 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 Detail

      • MediaContainerForQualifierAttributePresetPredicate

        public MediaContainerForQualifierAttributePresetPredicate()
    • Method Detail

      • test

        public boolean test​(ItemModel component,
                            java.lang.String qualifier)
        Specified by:
        test in interface java.util.function.BiPredicate<ItemModel,​java.lang.String>
      • get

        public java.lang.String get()
        Specified by:
        get in interface java.util.function.Supplier<java.lang.String>
      • setCmsItemDeepCloningService

        public void setCmsItemDeepCloningService​(CMSItemDeepCloningService cmsItemDeepCloningService)