Interface CMTeasable
- All Superinterfaces:
com.coremedia.objectserver.dataviews.AssumesIdentity
,BelowRootNavigation
,CMHasContexts
,CMLinkable
,CMLocalized
,CMObject
,com.coremedia.objectserver.beans.ContentBean
,HasViewTypeName
,Linkable
,com.coremedia.blueprint.common.datevalidation.ValidityPeriod
- All Known Subinterfaces:
CMAction
,CMArticle
,CMAudio
,CMChannel
,CMCollection<T>
,CMContext
,CMDownload
,CMDynamicList<T>
,CMExternalLink
,CMGallery<T>
,CMHTML
,CMImageMap
,CMInteractive
,CMLocTaxonomy
,CMMedia
,CMNavigation
,CMPerson
,CMPicture
,CMPlaceholder
,CMQueryList
,CMSitemap
,CMSpinner
,CMTaxonomy
,CMTeaser
,CMVideo
,CMVisual
Each content has an embedded Teaser and a detailText for the page view.
If you need different teasers for the document, you can use additional
CMTeaser
documents.
Represents the document type CMTeasable
.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Name of the document property 'authors'.static final String
Name of the document property 'detailText'.static final String
Name of the ContentType
'CMTeasable'.static final String
Name of the document property 'searchable'.static final String
Name of the document property 'pictures'.static final String
Name of the document property 'related'.static final String
The name of the teaser overlay settings struct.static final String
The name of the style settings in the teaser overlay settings sub struct.static final String
The name of the teaser options settings struct.static final String
Name of the document property 'teaserText'.static final String
Name of the document property 'teaserTitle'.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.objectserver.beans.ContentBean
METADATA_PROPERTIES_PREFIX
-
Method Summary
Modifier and TypeMethodDescriptionFunctionally equivalent togetMedia()
Map<String,
? extends com.coremedia.cae.aspect.Aspect<? extends CMTeasable>> Deprecated.since 1907.1; Implement optional features as extensions.List<? extends com.coremedia.cae.aspect.Aspect<? extends CMTeasable>>
Deprecated.since 1907.1; Implement optional features as extensions.Returns the value of the document propertyAUTHORS
.List<com.coremedia.blueprint.common.cta.CallToActionButtonSettings>
Returns the settings for all Call-To-Action buttons.com.coremedia.xml.Markup
Returns the value of the document propertyDETAIL_TEXT
.Returns the first element of document propertyPICTURES
.Collection<? extends CMTeasable>
Returns theLocale
specific variants of thisCMLocalized
Returns the value of the document propertyCMLocalized.MASTER
.getMedia()
Returns the media of the Teasable.Returns the first CMPicture stored in the document propertyPICTURES
.Returns the pictures of the Teasable.List<? extends CMTeasable>
Returns the value of the document propertyRELATED
.List<? extends CMTeasable>
Returns a list of relatedCMTeasable
s which is a merge ofgetRelated()
,getRelatedByReferrers()
,getRelatedBySimilarTaxonomies()
.Returns a map where the keys are document type names and the values are Lists ofCMTeasable
s dynamically related to this object.List<? extends CMTeasable>
List<? extends CMTeasable>
ReturnsCMTeasable
s that are related to this item because they have a similar set of taxonomies linked.List<? extends CMTeasable>
Returns a list of relatedCMTeasable
s which is a merge ofgetRelatedByReferrers()
,getRelatedBySimilarTaxonomies()
.Returns a map where the keys are document type names and the values are Lists ofCMTeasable
s explicitly related to this object.Returns this.com.coremedia.blueprint.common.teaserOverlay.TeaserOverlaySettings
Returns the settings for the teaser overlay feature.com.coremedia.blueprint.common.teaserOverlay.TeaserOverlayStyle
Returns the style for the teaser overlay feature.com.coremedia.blueprint.common.teaser.TeaserSettings
Returns the teaser settings.com.coremedia.xml.Markup
Returns the value of the document propertyTEASER_TEXT
.Returns the value of the document propertyTEASER_TITLE
.List<com.coremedia.xml.Markup>
Returns the detail text splitted at each paragraph.Map<Locale,
? extends CMTeasable> Returns the variants of thisCMLocalized
indexed by theirLocale
boolean
Returns the value of the document propertyNOT_SEARCHABLE
.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.objectserver.beans.ContentBean
getContent, getContentBeanFactory
Methods inherited from interface com.coremedia.blueprint.common.navigation.HasViewTypeName
getViewTypeName
Methods inherited from interface com.coremedia.blueprint.common.navigation.Linkable
getLocale, getSegment
-
Field Details
-
NAME
Name of the ContentType
'CMTeasable'.- See Also:
-
AUTHORS
Name of the document property 'authors'.- See Also:
-
TEASER_TITLE
Name of the document property 'teaserTitle'.- See Also:
-
TEASER_TEXT
Name of the document property 'teaserText'.- See Also:
-
DETAIL_TEXT
Name of the document property 'detailText'.- See Also:
-
PICTURES
Name of the document property 'pictures'.Meanwhile the type of the pictures linklist has been widened to CMMedia, but we kept the name "pictures" for compatibility reasons.
- See Also:
-
NOT_SEARCHABLE
Name of the document property 'searchable'.- See Also:
-
RELATED
Name of the document property 'related'.- See Also:
-
TEASER_SETTINGS_STRUCT_NAME
The name of the teaser options settings struct.- See Also:
-
TEASER_OVERLAY_SETTINGS_STRUCT_NAME
The name of the teaser overlay settings struct.- See Also:
-
TEASER_OVERLAY_SETTINGS_STYLE_SUB_STRUCT_NAME
The name of the style settings in the teaser overlay settings sub struct.- See Also:
-
-
Method Details
-
getMaster
CMTeasable getMaster()Returns the value of the document propertyCMLocalized.MASTER
.- Specified by:
getMaster
in interfaceCMHasContexts
- Specified by:
getMaster
in interfaceCMLinkable
- Specified by:
getMaster
in interfaceCMLocalized
- Returns:
- a
CMTeasable
object
-
getVariantsByLocale
Map<Locale,? extends CMTeasable> 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
- Returns:
- the variants of this
CMLocalized
indexed by theirLocale
-
getLocalizations
Collection<? extends CMTeasable> 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
- Returns:
- the
Locale
specific variants of thisCMLocalized
-
getAspectByName
@Deprecated Map<String,? extends com.coremedia.cae.aspect.Aspect<? extends CMTeasable>> 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
- 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
- Returns:
- a list of Aspects
-
getDetailText
com.coremedia.xml.Markup getDetailText()Returns the value of the document propertyDETAIL_TEXT
.- Returns:
- the value of the document property
DETAIL_TEXT
-
getPictures
Returns the pictures of the Teasable.- Returns:
- the CMPicture subset of
getMedia()
-
getMedia
Returns the media of the Teasable. -
fetchMediaWithRecursionDetection
Functionally equivalent togetMedia()
If your contentbean delegates to other contentbeans in order to accumulate more media objects, it should support this method in order to prevent infinite recursions.
-
getPicture
CMPicture getPicture()Returns the first CMPicture stored in the document propertyPICTURES
.- Returns:
- the first CMPicture stored in the document property
PICTURES
-
getFirstMedia
CMMedia getFirstMedia()Returns the first element of document propertyPICTURES
.- Returns:
- the first element of the document property
PICTURES
-
getTarget
CMLinkable getTarget()Returns this. Overridden by standalone teasers.- Returns:
- a
CMLinkable
object
-
isNotSearchable
boolean isNotSearchable()Returns the value of the document propertyNOT_SEARCHABLE
.- Returns:
- the value of the document property
NOT_SEARCHABLE
-
getRelated
List<? extends CMTeasable> getRelated()Returns the value of the document propertyRELATED
.- Returns:
- a list of
CMTeasable
objects
-
getRelatedByReferrers
List<? extends CMTeasable> getRelatedByReferrers()- Returns:
- a list of
CMTeasable
objects
-
getRelatedBySimilarTaxonomies
List<? extends CMTeasable> getRelatedBySimilarTaxonomies()ReturnsCMTeasable
s that are related to this item because they have a similar set of taxonomies linked.- Returns:
- a list of
CMTeasable
objects
-
getRelatedAll
List<? extends CMTeasable> getRelatedAll()Returns a list of relatedCMTeasable
s which is a merge ofgetRelated()
,getRelatedByReferrers()
,getRelatedBySimilarTaxonomies()
.- Returns:
- a list of
CMTeasable
objects
-
getRelatedImplicitly
List<? extends CMTeasable> getRelatedImplicitly()Returns a list of relatedCMTeasable
s which is a merge ofgetRelatedByReferrers()
,getRelatedBySimilarTaxonomies()
.- Returns:
- a list of
CMTeasable
objects
-
getRelatedAllByType
Map<String,List<CMTeasable>> getRelatedAllByType()Returns a map where the keys are document type names and the values are Lists ofCMTeasable
s dynamically related to this object.- Returns:
- a Map of String to Lists of CMTeasable
- See Also:
-
getRelatedImplicitlyByType
Map<String,List<CMTeasable>> getRelatedImplicitlyByType()Returns a map where the keys are document type names and the values are Lists ofCMTeasable
s explicitly related to this object.- Returns:
- a Map of String to Lists of CMTeasable
- See Also:
-
getTextAsParagraphs
List<com.coremedia.xml.Markup> getTextAsParagraphs()Returns the detail text splitted at each paragraph.- Returns:
- the detail text splitted at each paragraph.the detail text splitted at each paragraph.
-
getCallToActionSettings
List<com.coremedia.blueprint.common.cta.CallToActionButtonSettings> getCallToActionSettings()Returns the settings for all Call-To-Action buttons.- Returns:
- the settings for all Call-To-Action buttons.
-
getAuthors
Returns the value of the document property
AUTHORS
.- Returns:
- the value of the document property
AUTHORS
-