public class DefaultCMSComponentService extends AbstractCMSService implements CMSComponentService
CMSComponentService interface.AbstractService.SerializableDTO| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
CE_SYSTEM_PROPS |
CURRENTCATALOGVERSION, CURRENTSITEmodelService, sessionService, txManagertenant| Constructor and Description |
|---|
DefaultCMSComponentService()
Constructor used to create new instance of
DefaultCMSComponentService |
| Modifier and Type | Method and Description |
|---|---|
<T extends AbstractCMSComponentModel> |
getAbstractCMSComponent(java.lang.String id)
Gets the abstract cms component.
|
<T extends AbstractCMSComponentModel> |
getAbstractCMSComponent(java.lang.String id,
java.util.Collection<CatalogVersionModel> catalogVersions)
Gets the abstract cms component.
|
<T extends AbstractCMSComponentModel> |
getAbstractCMSComponent(java.lang.String id,
java.lang.String contentSlotId,
java.util.Collection<CatalogVersionModel> catalogVersions)
Gets the abstract cms component.
|
<T extends AbstractCMSComponentModel> |
getAbstractCMSComponents(java.util.Collection<java.lang.String> ids,
SearchPageData searchPageData)
Gets the abstract cms component.
|
protected CatalogVersionService |
getCatalogVersionService() |
protected CMSComponentDao |
getCmsComponentDao() |
java.util.Collection<java.lang.String> |
getEditorProperties(AbstractCMSComponentModel component)
Get all editor properties for the given content element.
|
protected java.util.Collection<java.lang.String> |
getEditorProperties(AbstractCMSComponentModel component,
boolean readableOnly) |
java.util.Collection<java.lang.String> |
getReadableEditorProperties(AbstractCMSComponentModel component)
Get all readable editor properties for the given content element.
|
<T extends SimpleCMSComponentModel> |
getSimpleCMSComponent(java.lang.String id)
Gets the simple cms component.
|
protected java.util.List<java.lang.String> |
getSystemProperties() |
java.util.Collection<java.lang.String> |
getSystemProperties(AbstractCMSComponentModel component)
Get all system properties for the given content element.
|
protected TypeService |
getTypeService() |
java.lang.Boolean |
isCmsComponentRestricted(AbstractCMSComponentModel component)
Deprecated.
since 4.3. Please, use
isComponentRestricted(AbstractCMSComponentModel) instead. |
boolean |
isComponentContainer(java.lang.String componentTypeCode)
Checks if component is a container.
|
boolean |
isComponentRestricted(AbstractCMSComponentModel component)
Checks if passed as parameter
AbstractCMSComponentModel is restricted restricted. |
java.lang.Boolean |
isContainer(java.lang.String componentTypeCode)
Deprecated.
since 4.3. Please, use
isComponentContainer(String) instead. |
void |
setCatalogVersionService(CatalogVersionService catalogVersionService) |
void |
setCmsComponentDao(CMSComponentDao cmsComponentDao) |
void |
setSystemProperties(java.util.List<java.lang.String> systemProperties) |
void |
setTypeService(TypeService typeService) |
getBaseSiteService, getCurrentCatalogVersion, getCurrentSite, getSearchRestrictionService, getUserService, setBaseSiteService, setSearchRestrictionService, setUserServicegetModelService, getSessionService, getTxManager, setModelService, setSessionService, setTxManagerafterPropertiesSet, getCurrentTenant, setBeanName, setCurrentTenant, setTenantScope, writeReplaceprotected static final java.lang.String CE_SYSTEM_PROPS
public DefaultCMSComponentService()
DefaultCMSComponentServicepublic <T extends AbstractCMSComponentModel> T getAbstractCMSComponent(java.lang.String id) throws CMSItemNotFoundException
getAbstractCMSComponent in interface CMSComponentServiceT - the generic typeid - the id of cms component to getCMSItemNotFoundException - thrown when item was not foundpublic <T extends AbstractCMSComponentModel> SearchPageData<T> getAbstractCMSComponents(java.util.Collection<java.lang.String> ids, SearchPageData searchPageData)
getAbstractCMSComponents in interface CMSComponentServiceT - the AbstractCMSComponentModel subclass typeids - the id collection of cms components to getsearchPageData - the searchPageData contains requested pagination and sorting informationpublic <T extends AbstractCMSComponentModel> T getAbstractCMSComponent(java.lang.String id, java.util.Collection<CatalogVersionModel> catalogVersions) throws CMSItemNotFoundException
getAbstractCMSComponent in interface CMSComponentServiceT - the generic typeid - the id of cms component to getcatalogVersions - the catalog versionsCMSItemNotFoundException - thrown when item was not foundpublic <T extends AbstractCMSComponentModel> T getAbstractCMSComponent(java.lang.String id, java.lang.String contentSlotId, java.util.Collection<CatalogVersionModel> catalogVersions) throws CMSItemNotFoundException
getAbstractCMSComponent in interface CMSComponentServiceT - the generic typeid - the id of cms component to getcontentSlotId - the content slot idcatalogVersions - the catalog versionsCMSItemNotFoundException - thrown when item was not foundpublic java.util.Collection<java.lang.String> getEditorProperties(AbstractCMSComponentModel component)
getEditorProperties in interface CMSComponentServicecomponent - the component which editor properties should be retrievedpublic java.util.Collection<java.lang.String> getReadableEditorProperties(AbstractCMSComponentModel component)
CMSComponentService.getEditorProperties(AbstractCMSComponentModel) for
retrieving all editor properties.getReadableEditorProperties in interface CMSComponentServicecomponent - the component which editor properties should be retrievedprotected java.util.Collection<java.lang.String> getEditorProperties(AbstractCMSComponentModel component, boolean readableOnly)
public <T extends SimpleCMSComponentModel> T getSimpleCMSComponent(java.lang.String id) throws CMSItemNotFoundException
getSimpleCMSComponent in interface CMSComponentServiceT - the generic typeid - the id of component to getCMSItemNotFoundException - thrown when item was not foundpublic java.util.Collection<java.lang.String> getSystemProperties(AbstractCMSComponentModel component)
getSystemProperties in interface CMSComponentServicecomponent - the component which system properties should be retrieved@Deprecated public java.lang.Boolean isCmsComponentRestricted(AbstractCMSComponentModel component)
isComponentRestricted(AbstractCMSComponentModel) instead.AbstractCMSComponentModel is restricted restricted.isCmsComponentRestricted in interface CMSComponentServicecomponent - the component which is checked against any restrictionsBoolean.TRUE if is restricted, Boolean.FALSE otherwisepublic boolean isComponentContainer(java.lang.String componentTypeCode)
CMSComponentServiceisComponentContainer in interface CMSComponentServicecomponentTypeCode - the component's ComposedType codeBoolean.TRUE if is component, Boolean.FALSE otherwisepublic boolean isComponentRestricted(AbstractCMSComponentModel component)
CMSComponentServiceAbstractCMSComponentModel is restricted restricted.isComponentRestricted in interface CMSComponentServicecomponent - the component which is checked against any restrictionstrue if is restricted, false otherwise@Deprecated public java.lang.Boolean isContainer(java.lang.String componentTypeCode)
isComponentContainer(String) instead.isContainer in interface CMSComponentServicecomponentTypeCode - the component's ComposedType codeBoolean.TRUE if is component, Boolean.FALSE otherwiseprotected CMSComponentDao getCmsComponentDao()
public void setCmsComponentDao(CMSComponentDao cmsComponentDao)
protected java.util.List<java.lang.String> getSystemProperties()
public void setSystemProperties(java.util.List<java.lang.String> systemProperties)
protected TypeService getTypeService()
public void setTypeService(TypeService typeService)
protected CatalogVersionService getCatalogVersionService()
public void setCatalogVersionService(CatalogVersionService catalogVersionService)
Copyright © 2018 SAP SE. All Rights Reserved.