public interface PageContentSlotComponentFacade
| Modifier and Type | Method and Description |
|---|---|
PageContentSlotComponentData |
addComponentToContentSlot(PageContentSlotComponentData pageContentSlotComponent)
Add an existing component item into a specific index position of an existing content slot.
|
java.util.List<PageContentSlotComponentData> |
getPageContentSlotComponentsByPageId(java.lang.String pageId)
Get a list of content slot with their components and their position in the slots for a given page.
|
PageContentSlotComponentData |
moveComponent(java.lang.String pageUid,
java.lang.String componentUid,
java.lang.String originSlotUid,
PageContentSlotComponentData pageContentSlotComponentData)
Moves a component within a slot or between slots.
|
void |
removeComponentFromContentSlot(java.lang.String slotId,
java.lang.String componentId)
Remove a component item from a content slot.
|
java.util.List<PageContentSlotComponentData> getPageContentSlotComponentsByPageId(java.lang.String pageId) throws CMSItemNotFoundException
pageId - - the page for which to look up the content slots forCMSItemNotFoundException - when the page cannot be foundPageContentSlotComponentData addComponentToContentSlot(PageContentSlotComponentData pageContentSlotComponent) throws CMSItemNotFoundException
If the index provided is larger than or equal to the next available component index in the slot, then the component will be added into the next available index.
pageContentSlotComponent - - DTO holding required attributes; never nullCMSItemNotFoundException - when the component or slot cannot be foundValidationException - when some validation rules failvoid removeComponentFromContentSlot(java.lang.String slotId,
java.lang.String componentId)
throws CMSItemNotFoundException
slotId - - the unique identifier of the content slot; never nullcomponentId - - the unique identifier of the component item; never nullCMSItemNotFoundException - when the component or slot cannot be foundComponentNotFoundInSlotException - when the component slot does not contain the componentPageContentSlotComponentData moveComponent(java.lang.String pageUid, java.lang.String componentUid, java.lang.String originSlotUid, PageContentSlotComponentData pageContentSlotComponentData) throws CMSItemNotFoundException
pageUid - Page UIDcomponentUid - UID of the component to moveoriginSlotUid - The UID of the content slot that contains the origin content slotpageContentSlotComponentData - PageContentSlotComponentData The component which contains all information of it's final
destinationCMSItemNotFoundException - when the component or slot cannot be foundComponentNotAllowedInSlotException - when the component type is not allowed in the given content slotValidationException - when there are validation errorsCopyright © 2018 SAP SE. All Rights Reserved.