Class RestoreContentPagePopulator

  • All Implemented Interfaces:
    Populator<java.util.Map<java.lang.String,​java.lang.Object>,​ItemModel>

    public class RestoreContentPagePopulator
    extends java.lang.Object
    implements Populator<java.util.Map<java.lang.String,​java.lang.Object>,​ItemModel>
    RestoreContentPagePopulator populator for cmsfacades used to replace a category page with same label while page restore with replace set to true.
    • Constructor Detail

      • RestoreContentPagePopulator

        public RestoreContentPagePopulator()
    • Method Detail

      • populate

        public void populate​(java.util.Map<java.lang.String,​java.lang.Object> source,
                             ItemModel itemModel)
                      throws ConversionException
        Description copied from interface: Populator
        Populate the target instance with values from the source instance.
        Specified by:
        populate in interface Populator<java.util.Map<java.lang.String,​java.lang.Object>,​ItemModel>
        Parameters:
        source - the source object
        itemModel - the target to fill
        Throws:
        ConversionException - if an error occurs
      • swapHomePage

        protected void swapHomePage​(ContentPageModel contentPageModel)
      • pageBeReplaced

        protected boolean pageBeReplaced​(java.util.Map<java.lang.String,​java.lang.Object> source)
      • getPrimaryPageWithLabelExistsPredicate

        protected java.util.function.Predicate<java.lang.String> getPrimaryPageWithLabelExistsPredicate()
      • setPrimaryPageWithLabelExistsPredicate

        public void setPrimaryPageWithLabelExistsPredicate​(java.util.function.Predicate<java.lang.String> primaryPageWithLabelExistsPredicate)