Interface CMNavigation
- All Superinterfaces:
com.coremedia.objectserver.dataviews.AssumesIdentity
,BelowRootNavigation
,CMHasContexts
,CMLinkable
,CMLocalized
,CMObject
,CMTeasable
,com.coremedia.objectserver.beans.ContentBean
,com.coremedia.blueprint.common.feeds.FeedSource<CMLinkable>
,HasViewTypeName
,Linkable
,Navigation
,com.coremedia.blueprint.common.datevalidation.ValidityPeriod
public interface CMNavigation
extends Navigation, CMTeasable, com.coremedia.blueprint.common.feeds.FeedSource<CMLinkable>
Base type for navigation items.
Represents the document type CMNavigation
.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Name of the document property 'children'.static final String
Name of the document property 'css'.static final String
Name of the document property 'favicon'.static final String
Name of the document property 'hidden'.static final String
Name of the document property 'hiddenInSitemap'.static final String
Name of the document property 'javaScript'.static final String
Name of the ContentType
'CMNavigation'.static final String
Name of the document property 'placement'.static final String
Name of the document property 'theme'.Fields inherited from interface com.coremedia.blueprint.common.contentbeans.CMHasContexts
CONTEXTS
Fields inherited from interface com.coremedia.blueprint.common.contentbeans.CMLinkable
EXTERNALLY_DISPLAYED_DATE, HTML_DESCRIPTION, HTML_TITLE, KEYWORDS, LINKED_SETTINGS, LOCAL_SETTINGS, LOCATION_TAXONOMY, RESOURCE_BUNDLES2, SEGMENT, SUBJECT_TAXONOMY, TITLE, VALID_FROM, VALID_TO, VIEWTYPE
Fields inherited from interface com.coremedia.blueprint.common.contentbeans.CMLocalized
LOCALE, MASTER, MASTER_VERSION
Fields inherited from interface com.coremedia.blueprint.common.contentbeans.CMTeasable
AUTHORS, DETAIL_TEXT, NOT_SEARCHABLE, PICTURES, RELATED, TEASER_OVERLAY_SETTINGS_STRUCT_NAME, TEASER_OVERLAY_SETTINGS_STYLE_SUB_STRUCT_NAME, TEASER_SETTINGS_STRUCT_NAME, TEASER_TEXT, TEASER_TITLE
Fields inherited from interface com.coremedia.objectserver.beans.ContentBean
METADATA_PROPERTIES_PREFIX
-
Method Summary
Modifier and TypeMethodDescriptionMap<String,
? extends com.coremedia.cae.aspect.Aspect<? extends CMNavigation>> Deprecated.since 1907.1; Implement optional features as extensions.List<? extends com.coremedia.cae.aspect.Aspect<? extends CMNavigation>>
Deprecated.since 1907.1; Implement optional features as extensions.getCss()
Returns the value of the document propertyCSS
.com.coremedia.cap.common.Blob
Returns the value of the document propertyFAVICON
.Returns the value of the document propertyJAVA_SCRIPT
.Collection<? extends CMNavigation>
Returns theLocale
specific variants of thisCMLocalized
Returns the value of the document propertyCMLocalized.MASTER
.com.coremedia.cap.struct.Struct
Returns the value of the document propertyPLACEMENT
.Map<Locale,
? extends CMNavigation> Returns the variants of thisCMLocalized
indexed by theirLocale
Methods inherited from interface com.coremedia.objectserver.dataviews.AssumesIdentity
assumeIdentity
Methods inherited from interface com.coremedia.blueprint.common.contentbeans.BelowRootNavigation
getRootNavigations
Methods inherited from interface com.coremedia.blueprint.common.contentbeans.CMLinkable
getContexts, getExternallyDisplayedDate, getHtmlDescription, getHtmlTitle, getKeywords, getLinkedSettings, getLocalSettings, getLocationTaxonomy, getResourceBundles2, getSubjectTaxonomy, getTitle, getValidFrom, getValidTo, getViewtype, isOpenInNewTab
Methods inherited from interface com.coremedia.blueprint.common.contentbeans.CMLocalized
getCountry, getLang, getLocale, getMasterVersion
Methods inherited from interface com.coremedia.blueprint.common.contentbeans.CMObject
getAspectsProvider, getContentId, getUuid
Methods inherited from interface com.coremedia.blueprint.common.contentbeans.CMTeasable
fetchMediaWithRecursionDetection, getAuthors, getCallToActionSettings, getDetailText, getFirstMedia, getMedia, getPicture, getPictures, getRelated, getRelatedAll, getRelatedAllByType, getRelatedByReferrers, getRelatedBySimilarTaxonomies, getRelatedImplicitly, getRelatedImplicitlyByType, getTarget, getTeaserOverlaySettings, getTeaserOverlayStyle, getTeaserSettings, getTeaserText, getTeaserTitle, getTextAsParagraphs, isNotSearchable
Methods inherited from interface com.coremedia.objectserver.beans.ContentBean
getContent, getContentBeanFactory
Methods inherited from interface com.coremedia.blueprint.common.feeds.FeedSource
getFeedDescription, getFeedFormat, getFeedItems, getFeedTitle, getItemsFlattened, getPublishedDate
Methods inherited from interface com.coremedia.blueprint.common.navigation.HasViewTypeName
getViewTypeName
Methods inherited from interface com.coremedia.blueprint.common.navigation.Linkable
getLocale, getSegment
Methods inherited from interface com.coremedia.blueprint.common.navigation.Navigation
getAspectsProvider, getChildren, getCodeResourcesTreeRelation, getContext, getNavigationPathList, getParentNavigation, getRootNavigation, getSitemapChildren, getTheme, getVisibleChildren, isHidden, isHiddenInSitemap, isRoot
-
Field Details
-
NAME
Name of the ContentType
'CMNavigation'.- See Also:
-
CHILDREN
Name of the document property 'children'.- See Also:
-
HIDDEN
Name of the document property 'hidden'.- See Also:
-
HIDDEN_IN_SITEMAP
Name of the document property 'hiddenInSitemap'.- See Also:
-
JAVA_SCRIPT
Name of the document property 'javaScript'.- See Also:
-
CSS
Name of the document property 'css'.- See Also:
-
THEME
Name of the document property 'theme'.- See Also:
-
FAVICON
Name of the document property 'favicon'.- See Also:
-
PLACEMENT
Name of the document property 'placement'.- See Also:
-
-
Method Details
-
getMaster
CMNavigation getMaster()Returns the value of the document propertyCMLocalized.MASTER
.- Specified by:
getMaster
in interfaceCMHasContexts
- Specified by:
getMaster
in interfaceCMLinkable
- Specified by:
getMaster
in interfaceCMLocalized
- Specified by:
getMaster
in interfaceCMTeasable
- Returns:
- a
CMNavigation
object
-
getVariantsByLocale
Map<Locale,? extends CMNavigation> getVariantsByLocale()Description copied from interface:CMLocalized
Returns the variants of thisCMLocalized
indexed by theirLocale
- Specified by:
getVariantsByLocale
in interfaceCMHasContexts
- Specified by:
getVariantsByLocale
in interfaceCMLinkable
- Specified by:
getVariantsByLocale
in interfaceCMLocalized
- Specified by:
getVariantsByLocale
in interfaceCMTeasable
- Returns:
- the variants of this
CMLocalized
indexed by theirLocale
-
getLocalizations
Collection<? extends CMNavigation> getLocalizations()Description copied from interface:CMLocalized
Returns the
Locale
specific variants of thisCMLocalized
- Usage:
Add elements for each variant excluding self (self is of type
Page
in this example).- Freemarker:
-
<#if (self.content.localizations)?has_content> <#assign localizations=self.content.localizations![] /> <#list localizations as localization> <#if localization.locale != self.content.locale> <link rel="alternate" ... /> </#if> </#list> </#if>
- JSP:
-
<c:set var="locales" value="${self.content.localizations}"/> <c:if test="${not empty locales}"> <c:forEach var="localization" items="${locales}"> <c:if test="${localization.locale != self.content.locale}"> <cm:link var="localitationLink" target="${localization}"/> <link rel="alternate" ... /> </c:if> </c:forEach> </c:if>
- Specified by:
getLocalizations
in interfaceCMHasContexts
- Specified by:
getLocalizations
in interfaceCMLinkable
- Specified by:
getLocalizations
in interfaceCMLocalized
- Specified by:
getLocalizations
in interfaceCMTeasable
- Returns:
- the
Locale
specific variants of thisCMLocalized
-
getAspectByName
@Deprecated Map<String,? extends com.coremedia.cae.aspect.Aspect<? extends CMNavigation>> getAspectByName()Deprecated.since 1907.1; Implement optional features as extensions.Description copied from interface:CMObject
Returns 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:
getAspectByName
in interfaceCMHasContexts
- Specified by:
getAspectByName
in interfaceCMLinkable
- Specified by:
getAspectByName
in interfaceCMLocalized
- Specified by:
getAspectByName
in interfaceCMObject
- Specified by:
getAspectByName
in interfaceCMTeasable
- Returns:
- a Map from aspectIDs to Aspects
-
getAspects
Deprecated.since 1907.1; Implement optional features as extensions.Description copied from interface:CMObject
Returns a list of all
Aspect
from 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:
getAspects
in interfaceCMHasContexts
- Specified by:
getAspects
in interfaceCMLinkable
- Specified by:
getAspects
in interfaceCMLocalized
- Specified by:
getAspects
in interfaceCMObject
- Specified by:
getAspects
in interfaceCMTeasable
- Returns:
- a list of Aspects
-
getJavaScript
List<CMJavaScript> getJavaScript()Returns the value of the document propertyJAVA_SCRIPT
.- Returns:
- a list of
CMJavaScript
objects
-
getCss
Returns the value of the document propertyCSS
.- Returns:
- a list of
CMCSS
objects
-
getFavicon
com.coremedia.cap.common.Blob getFavicon()Returns the value of the document propertyFAVICON
.- Returns:
- the value of the document property
FAVICON
-
getPlacement
com.coremedia.cap.struct.Struct getPlacement()Returns the value of the document propertyPLACEMENT
.- Returns:
- the value of the document property
PLACEMENT
-