public class AbstractCMSComponentContentPopulator extends java.lang.Object implements Populator<java.util.Map<java.lang.String,java.lang.Object>,ItemModel>
slotId and the position attributes are present in the source Map.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PAGE_ID |
static java.lang.String |
POSITION |
static java.lang.String |
SLOT_ID |
| Constructor and Description |
|---|
AbstractCMSComponentContentPopulator() |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.function.Predicate<ComponentTypeAndContentSlotValidationDto> |
getComponentTypeAllowedForContentSlotPredicate() |
protected CMSAdminContentSlotService |
getContentSlotAdminService() |
protected UniqueItemIdentifierService |
getUniqueItemIdentifierService() |
protected ValidationDtoFactory |
getValidationDtoFactory() |
void |
populate(java.util.Map<java.lang.String,java.lang.Object> source,
ItemModel itemModel)
Populate the target instance with values from the source instance.
|
void |
setComponentTypeAllowedForContentSlotPredicate(java.util.function.Predicate<ComponentTypeAndContentSlotValidationDto> componentTypeAllowedForContentSlotPredicate) |
void |
setContentSlotAdminService(CMSAdminContentSlotService contentSlotAdminService) |
void |
setUniqueItemIdentifierService(UniqueItemIdentifierService uniqueItemIdentifierService) |
void |
setValidationDtoFactory(ValidationDtoFactory validationDtoFactory) |
public static final java.lang.String POSITION
public static final java.lang.String SLOT_ID
public static final java.lang.String PAGE_ID
public AbstractCMSComponentContentPopulator()
public void populate(java.util.Map<java.lang.String,java.lang.Object> source,
ItemModel itemModel)
throws ConversionException
Populatorpopulate in interface Populator<java.util.Map<java.lang.String,java.lang.Object>,ItemModel>source - the source objectitemModel - the target to fillConversionException - if an error occursprotected CMSAdminContentSlotService getContentSlotAdminService()
public void setContentSlotAdminService(CMSAdminContentSlotService contentSlotAdminService)
protected UniqueItemIdentifierService getUniqueItemIdentifierService()
public void setUniqueItemIdentifierService(UniqueItemIdentifierService uniqueItemIdentifierService)
protected ValidationDtoFactory getValidationDtoFactory()
public void setValidationDtoFactory(ValidationDtoFactory validationDtoFactory)
protected java.util.function.Predicate<ComponentTypeAndContentSlotValidationDto> getComponentTypeAllowedForContentSlotPredicate()
public void setComponentTypeAllowedForContentSlotPredicate(java.util.function.Predicate<ComponentTypeAndContentSlotValidationDto> componentTypeAllowedForContentSlotPredicate)
Copyright © 2018 SAP SE. All Rights Reserved.