public interface CMSComponentService
| Modifier and Type | Method and Description |
|---|---|
<T extends AbstractCMSComponentModel> |
getAbstractCMSComponent(String id)
Gets the abstract cms component.
|
<T extends AbstractCMSComponentModel> |
getAbstractCMSComponent(String id,
Collection<CatalogVersionModel> catalogVersions)
Gets the abstract cms component.
|
<T extends AbstractCMSComponentModel> |
getAbstractCMSComponent(String id,
String contentSlotId,
Collection<CatalogVersionModel> catalogVersions)
Gets the abstract cms component.
|
Collection<String> |
getEditorProperties(AbstractCMSComponentModel component)
Get all editor properties for the given content element.
|
<T extends SimpleCMSComponentModel> |
getSimpleCMSComponent(String id)
Gets the simple cms component.
|
Collection<String> |
getSystemProperties(AbstractCMSComponentModel component)
Get all system properties for the given content element.
|
Boolean |
isCmsComponentRestricted(AbstractCMSComponentModel component)
Deprecated.
use
isComponentRestricted(AbstractCMSComponentModel) instead. |
boolean |
isComponentContainer(String componentTypeCode)
Checks if component is a container.
|
boolean |
isComponentRestricted(AbstractCMSComponentModel component)
Checks if passed as parameter
AbstractCMSComponentModel is restricted restricted. |
Boolean |
isContainer(String componentTypeCode)
Deprecated.
use
isComponentContainer(String) instead. |
<T extends AbstractCMSComponentModel> T getAbstractCMSComponent(String id) throws CMSItemNotFoundException
T - the generic typeid - the id of cms component to getCMSItemNotFoundException - thrown when item was not found<T extends AbstractCMSComponentModel> T getAbstractCMSComponent(String id, Collection<CatalogVersionModel> catalogVersions) throws CMSItemNotFoundException
T - the generic typeid - the id of cms component to getcatalogVersions - the catalog versionsCMSItemNotFoundException - thrown when item was not found<T extends AbstractCMSComponentModel> T getAbstractCMSComponent(String id, String contentSlotId, Collection<CatalogVersionModel> catalogVersions) throws CMSItemNotFoundException
T - the generic typeid - the id of cms component to getcontentSlotId - the content slot idcatalogVersions - the catalog versionsCMSItemNotFoundException - thrown when item was not foundCollection<String> getEditorProperties(AbstractCMSComponentModel component)
component - the component which editor properties should be retrieved<T extends SimpleCMSComponentModel> T getSimpleCMSComponent(String id) throws CMSItemNotFoundException
T - the generic typeid - the id of component to getCMSItemNotFoundException - thrown when item was not foundCollection<String> getSystemProperties(AbstractCMSComponentModel component)
component - the component which system properties should be retrieved@Deprecated Boolean isCmsComponentRestricted(AbstractCMSComponentModel component)
isComponentRestricted(AbstractCMSComponentModel) instead.AbstractCMSComponentModel is restricted restricted.component - the component which is checked against any restrictionsBoolean.TRUE if is restricted, Boolean.FALSE otherwiseboolean isComponentRestricted(AbstractCMSComponentModel component)
AbstractCMSComponentModel is restricted restricted.component - the component which is checked against any restrictionstrue if is restricted, false otherwise@Deprecated Boolean isContainer(String componentTypeCode)
isComponentContainer(String) instead.componentTypeCode - the component's ComposedType codeBoolean.TRUE if is component, Boolean.FALSE otherwiseboolean isComponentContainer(String componentTypeCode)
componentTypeCode - the component's ComposedType codeBoolean.TRUE if is component, Boolean.FALSE otherwiseCopyright © 2017 SAP SE. All Rights Reserved.