Interface CMSite
- All Superinterfaces:
com.coremedia.objectserver.dataviews.AssumesIdentity,CMLocalized,CMObject,com.coremedia.objectserver.beans.ContentBean
Helper document: All root navigations must be referred to by a CMSite. This is an internal optimization to find the root navigations quickly.
Represents the document type CMSite.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringName of the document property 'id'.static final StringName of the document property 'master'.static final StringName of the ContentType'CMSite'.static final StringName of the document property 'root'.Fields inherited from interface com.coremedia.blueprint.common.contentbeans.CMLocalized
LOCALE, MASTER_VERSIONFields inherited from interface com.coremedia.objectserver.beans.ContentBean
METADATA_PROPERTIES_PREFIX -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.since 1907.1; Implement optional features as extensions.Deprecated.since 1907.1; Implement optional features as extensions.getId()Returns the value of the document propertyID.Returns the value of the document propertyMASTER.getRoot()Returns the value of the document propertyROOT.Methods inherited from interface com.coremedia.objectserver.dataviews.AssumesIdentity
assumeIdentityMethods inherited from interface com.coremedia.blueprint.common.contentbeans.CMLocalized
getCountry, getLang, getLocale, getLocalizations, getMasterVersion, getVariantsByLocaleMethods inherited from interface com.coremedia.blueprint.common.contentbeans.CMObject
getAspectsProvider, getContentId, getUuidMethods inherited from interface com.coremedia.objectserver.beans.ContentBean
getContent, getContentBeanFactory
-
Field Details
-
NAME
Name of the ContentType'CMSite'.- See Also:
-
ROOT
Name of the document property 'root'.- See Also:
-
ID
Name of the document property 'id'.- See Also:
-
MASTER
Name of the document property 'master'.- See Also:
-
-
Method Details
-
getAspectByName
@Deprecated Map<String,? extends com.coremedia.cae.aspect.Aspect<? extends CMSite>> getAspectByName()Deprecated.since 1907.1; Implement optional features as extensions.Description copied from interface:CMObjectReturns a Map from aspectIDs to Aspects. AspectIDs consists of an aspectname with a prefix which identifies the plugin provider.
- Usage:
Access an aspect named osmPlugin.
- Freemarker:
-
<#assign osmSocialPlugin=self.aspectByName['osmPlugin'] /> - JSP:
-
<c:set var="osmSocialPlugin" value="${self.aspectByName['osmPlugin']}"/>
- Specified by:
getAspectByNamein interfaceCMLocalized- Specified by:
getAspectByNamein interfaceCMObject- Returns:
- a Map from aspectIDs to Aspects
-
getAspects
Deprecated.since 1907.1; Implement optional features as extensions.Description copied from interface:CMObjectReturns a list of all
Aspectfrom all available PlugIns that are registered to this contentbean.- Usage:
Add all aspects with view
asHead.- Freemarker:
-
<#list self.aspects as aspect> <@cm.include self=aspect view="asHeader"/> </#list> - JSP:
-
<c:forEach items="${self.aspects}" var="aspect"> <cm:include self="${aspect}" view="asHeader"/> </c:forEach>
- Specified by:
getAspectsin interfaceCMLocalized- Specified by:
getAspectsin interfaceCMObject- Returns:
- a list of Aspects
-
getRoot
CMNavigation getRoot()Returns the value of the document propertyROOT.- Returns:
- the value of the document property
ROOT
-
getId
String getId()Returns the value of the document propertyID.- Returns:
- the value of the document property
ID
-
getMaster
CMSite getMaster()Returns the value of the document propertyMASTER.- Specified by:
getMasterin interfaceCMLocalized- Returns:
- a
CMSiteobject or null if no master site exists
-