Class CloneContentSlotPopulator

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

    public class CloneContentSlotPopulator
    extends java.lang.Object
    implements Populator<java.util.Map<java.lang.String,​java.lang.Object>,​ItemModel>
    CloneContentSlot populator for cmsfacades used to clone a ContentSlot
    • Constructor Detail

      • CloneContentSlotPopulator

        public CloneContentSlotPopulator()
    • 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
      • getCloneAction

        protected CloneAction getCloneAction​(java.util.Map<java.lang.String,​java.lang.Object> source)
        Retrieves the CloneAction object from the source map.
        Parameters:
        source - the source map of the new slot
        Returns:
        the CloneAction that defined what to do with components inside the slot, null if the value can not be retrieved.
      • setContentSlotCloningStrategy

        public void setContentSlotCloningStrategy​(ContentSlotCloningStrategy contentSlotCloningStrategy)
      • setUniqueItemIdentifierService

        public void setUniqueItemIdentifierService​(UniqueItemIdentifierService uniqueItemIdentifierService)