public class DefaultCMSComponentService extends AbstractCMSService implements CMSComponentService
CMSComponentService interface.AbstractService.SerializableDTO| Modifier and Type | Field and Description |
|---|---|
protected CatalogService |
catalogService |
protected static String |
CE_SYSTEM_PROPS |
protected CMSComponentDao |
cmsComponentDao
Deprecated.
Implement the CMSComponentDao as own property
|
protected List |
systemProperties
Deprecated.
Implement the List as own property
|
protected TypeService |
typeService
Deprecated.
Implement the TypeService as own property
|
CURRENTCATALOGVERSION, CURRENTSITEmodelService, sessionService, txManagertenant| Constructor and Description |
|---|
DefaultCMSComponentService()
Constructor used to create new instance of
DefaultCMSComponentService |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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. |
void |
setCatalogService(CatalogService catalogService) |
void |
setCmsComponentDao(CMSComponentDao cmsComponentDao) |
void |
setSystemProperties(List 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 String CE_SYSTEM_PROPS
@Deprecated protected CMSComponentDao cmsComponentDao
@Deprecated protected List systemProperties
@Deprecated protected TypeService typeService
protected CatalogService catalogService
public DefaultCMSComponentService()
DefaultCMSComponentServicepublic AbstractCMSComponentModel getAbstractCMSComponent(String id) throws CMSItemNotFoundException
getAbstractCMSComponent in interface CMSComponentServiceid - the id of cms component to getCMSItemNotFoundException - thrown when item was not foundpublic <T extends AbstractCMSComponentModel> T getAbstractCMSComponent(String id, 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(String id, String contentSlotId, 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 Collection<String> getEditorProperties(AbstractCMSComponentModel component)
getEditorProperties in interface CMSComponentServicecomponent - the component which editor properties should be retrievedpublic SimpleCMSComponentModel getSimpleCMSComponent(String id) throws CMSItemNotFoundException
getSimpleCMSComponent in interface CMSComponentServiceid - the id of component to getCMSItemNotFoundException - thrown when item was not foundpublic Collection<String> getSystemProperties(AbstractCMSComponentModel component)
getSystemProperties in interface CMSComponentServicecomponent - the component which system properties should be retrieved@Deprecated public 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(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 Boolean isContainer(String componentTypeCode)
isComponentContainer(String) instead.isContainer in interface CMSComponentServicecomponentTypeCode - the component's ComposedType codeBoolean.TRUE if is component, Boolean.FALSE otherwisepublic void setCatalogService(CatalogService catalogService)
public void setCmsComponentDao(CMSComponentDao cmsComponentDao)
public void setSystemProperties(List systemProperties)
public void setTypeService(TypeService typeService)
Copyright © 2017 SAP SE. All Rights Reserved.