public interface CMSAdminComponentService
@Deprecated AbstractCMSComponentModel createCMSComponent(ContentSlotModel contentSlot, String composedTypeCode, String id, String name) throws CMSItemCreateException
createAndAddCmsComponent(ContentSlotModel, String, String, String) instead.contentSlot - composedTypeCode - id - name - CMSItemCreateException@Deprecated AbstractCMSComponentModel createAndAddCmsComponent(ContentSlotModel contentSlot, String composedTypeCode, String id, String name) throws CMSItemCreateException
ModelService.save(Object) on create cms component model.contentSlot - the content slotcomposedTypeCode - the composed type code for new cms componentid - the id for new cms componentname - the name for new cms componentCMSItemCreateException - thrown when there was an problem to find composed type with code composedTypeCode for new
cms component.AbstractCMSComponentModel createCmsComponent(ContentSlotModel contentSlotModel, String componentUid, String componentName, String typeCode)
contentSlotModel - the content slotcomponentUid - the uid for the new cms componentcomponentName - the name for new cms componenttypeCode - the composed type code for new cms componentString generateCmsComponentUid()
@Deprecated void deleteCMSComponent(AbstractCMSComponentModel contentElement)
ModelService.remove(Object) instead.contentElement - the component model to delete.Collection<ComposedTypeModel> getAllowedCMSComponentContainers()
Collection<ComposedTypeModel> getAllowedCMSComponents()
@Deprecated AbstractCMSComponentModel getCMSComponent(String id) throws CMSItemNotFoundException
getCMSComponentForId(String) instead.id - the id of cms componentCMSItemNotFoundException - thrown when no cms comoponent has been found@Deprecated AbstractCMSComponentContainerModel getCMSComponentContainer(String id) throws CMSItemNotFoundException
getCMSComponentContainerForId(String) instead.id - the id of cms component container.CMSItemNotFoundException - thrown when no cms comoponent container has been foundAbstractCMSComponentContainerModel getCMSComponentContainerForId(String id) throws AmbiguousIdentifierException, UnknownIdentifierException
id - the id of cms component container.AmbiguousIdentifierException - thrown when more than one object has been found.UnknownIdentifierException - thrown when no object has been foundAbstractCMSComponentModel getCMSComponentForId(String id) throws AmbiguousIdentifierException, UnknownIdentifierException
id - the id of cms componentAmbiguousIdentifierException - thrown when more than one object has been found.UnknownIdentifierException - thrown when no object has been found@Deprecated Collection<SimpleCMSComponentModel> getCMSComponentsOfContainer(String containerId) throws CMSItemNotFoundException
getCMSComponentsForContainerId(String) instead.containerId - the container idCMSItemNotFoundException - thrown when no object has been found@Deprecated Collection<SimpleCMSComponentModel> getCMSComponentsForContainerId(String containerId)
containerId - the container idCollection<String> getEditorProperties(ItemModel component)
component - the component which editor properties should be retrievedCollection<String> getSystemProperties(AbstractCMSComponentModel component)
component - the component which system properties should be retrievedvoid removeCMSComponentFromContentSlot(AbstractCMSComponentModel component, ContentSlotModel slotModel)
component - the component to removeslotModel - the content slot from which the component will be removed.List<AbstractCMSComponentModel> getAllCMSComponentsForCatalogVersion(CatalogVersionModel catalogVersionModel)
catalogVersionModel - @Deprecated void save(AbstractCMSComponentModel contentElement)
ModelService.save(Object) instead.contentElement - the component model to save.Collection<AbstractCMSComponentModel> getCMSComponentsForContainer(AbstractCMSComponentContainerModel container)
This service depends on a CMSComponentContainerStrategy to decide if:
container - - the container model from which we want to get the componentsnullCollection<AbstractCMSComponentModel> getDisplayedComponentsForContentSlot(ContentSlotModel contentSlot)
The difference between ContentSlotModel.getCmsComponents() and getting the displayed components in the
slot has to do with containers. Some containers are rendered as a single component while some others are rendered
as a collection of components or in other ways. So for container components, the
#getCMSComponentsForContainer(AbstractCMSComponentContainerModel) method will be used.
contentSlot - - the content slot for which we want to get all displayed componentsnullSearchResult<AbstractCMSComponentModel> findByCatalogVersionAndMask(CatalogVersionModel catalogVersionModel, String mask, PageableData pageableData)
PageableData query, will return a page object consisting of the
content list of the requested page number and the total number of entities for the given maskcatalogVersionModel - the catalog version to filter onmask - the string value on which components will be filtered, implementations may choose to filter on the
component namepageableData - the PageableData object containing the page request details. PageableData may contain a String
value for sort, this will be used by a sorting strategy to select the most appropriate query or resort
to a default one.Copyright © 2017 SAP SE. All Rights Reserved.