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 StringName of the document property 'authors'.static final StringName of the document property 'detailText'.static final StringName of the ContentType'CMTeasable'.static final StringName of the document property 'searchable'.static final StringName of the document property 'pictures'.static final StringName of the document property 'related'.static final StringThe name of the teaser overlay settings struct.static final StringThe name of the style settings in the teaser overlay settings sub struct.static final StringThe name of the teaser options settings struct.static final StringName of the document property 'teaserText'.static final StringName of the document property 'teaserTitle'.Fields inherited from interface com.coremedia.blueprint.common.contentbeans.CMHasContexts
CONTEXTSFields 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, VIEWTYPEFields inherited from interface com.coremedia.blueprint.common.contentbeans.CMLocalized
LOCALE, MASTER, MASTER_VERSIONFields 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.MarkupReturns the value of the document propertyDETAIL_TEXT.Returns the first element of document propertyPICTURES.Collection<? extends CMTeasable>Returns theLocalespecific variants of thisCMLocalizedReturns 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 relatedCMTeasables which is a merge ofgetRelated(),getRelatedByReferrers(),getRelatedBySimilarTaxonomies().Returns a map where the keys are document type names and the values are Lists ofCMTeasables dynamically related to this object.List<? extends CMTeasable>List<? extends CMTeasable>ReturnsCMTeasables that are related to this item because they have a similar set of taxonomies linked.List<? extends CMTeasable>Returns a list of relatedCMTeasables which is a merge ofgetRelatedByReferrers(),getRelatedBySimilarTaxonomies().Returns a map where the keys are document type names and the values are Lists ofCMTeasables explicitly related to this object.Returns this.com.coremedia.blueprint.common.teaserOverlay.TeaserOverlaySettingsReturns the settings for the teaser overlay feature.com.coremedia.blueprint.common.teaserOverlay.TeaserOverlayStyleReturns the style for the teaser overlay feature.com.coremedia.blueprint.common.teaser.TeaserSettingsReturns the teaser settings.com.coremedia.xml.MarkupReturns 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 thisCMLocalizedindexed by theirLocalebooleanReturns the value of the document propertyNOT_SEARCHABLE.Methods inherited from interface com.coremedia.objectserver.dataviews.AssumesIdentity
assumeIdentityMethods inherited from interface com.coremedia.blueprint.common.contentbeans.BelowRootNavigation
getRootNavigationsMethods inherited from interface com.coremedia.blueprint.common.contentbeans.CMLinkable
getContexts, getExternallyDisplayedDate, getHtmlDescription, getHtmlTitle, getKeywords, getLinkedSettings, getLocalSettings, getLocationTaxonomy, getResourceBundles2, getSubjectTaxonomy, getTitle, getValidFrom, getValidTo, getViewtype, isOpenInNewTabMethods inherited from interface com.coremedia.blueprint.common.contentbeans.CMLocalized
getCountry, getLang, getLocale, getMasterVersionMethods inherited from interface com.coremedia.blueprint.common.contentbeans.CMObject
getAspectsProvider, getContentId, getUuidMethods inherited from interface com.coremedia.objectserver.beans.ContentBean
getContent, getContentBeanFactoryMethods inherited from interface com.coremedia.blueprint.common.navigation.HasViewTypeName
getViewTypeNameMethods 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:
getMasterin interfaceCMHasContexts- Specified by:
getMasterin interfaceCMLinkable- Specified by:
getMasterin interfaceCMLocalized- Returns:
- a
CMTeasableobject
-
getVariantsByLocale
Map<Locale,? extends CMTeasable> getVariantsByLocale()Description copied from interface:CMLocalizedReturns the variants of thisCMLocalizedindexed by theirLocale- Specified by:
getVariantsByLocalein interfaceCMHasContexts- Specified by:
getVariantsByLocalein interfaceCMLinkable- Specified by:
getVariantsByLocalein interfaceCMLocalized- Returns:
- the variants of this
CMLocalizedindexed by theirLocale
-
getLocalizations
Collection<? extends CMTeasable> getLocalizations()Description copied from interface:CMLocalizedReturns the
Localespecific variants of thisCMLocalized- Usage:
Add elements for each variant excluding self (self is of type
Pagein 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:
getLocalizationsin interfaceCMHasContexts- Specified by:
getLocalizationsin interfaceCMLinkable- Specified by:
getLocalizationsin interfaceCMLocalized- Returns:
- the
Localespecific 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: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 interfaceCMHasContexts- Specified by:
getAspectByNamein interfaceCMLinkable- 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 interfaceCMHasContexts- Specified by:
getAspectsin interfaceCMLinkable- Specified by:
getAspectsin interfaceCMLocalized- Specified by:
getAspectsin 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
CMLinkableobject
-
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
CMTeasableobjects
-
getRelatedByReferrers
List<? extends CMTeasable> getRelatedByReferrers()- Returns:
- a list of
CMTeasableobjects
-
getRelatedBySimilarTaxonomies
List<? extends CMTeasable> getRelatedBySimilarTaxonomies()ReturnsCMTeasables that are related to this item because they have a similar set of taxonomies linked.- Returns:
- a list of
CMTeasableobjects
-
getRelatedAll
List<? extends CMTeasable> getRelatedAll()Returns a list of relatedCMTeasables which is a merge ofgetRelated(),getRelatedByReferrers(),getRelatedBySimilarTaxonomies().- Returns:
- a list of
CMTeasableobjects
-
getRelatedImplicitly
List<? extends CMTeasable> getRelatedImplicitly()Returns a list of relatedCMTeasables which is a merge ofgetRelatedByReferrers(),getRelatedBySimilarTaxonomies().- Returns:
- a list of
CMTeasableobjects
-
getRelatedAllByType
Map<String,List<CMTeasable>> getRelatedAllByType()Returns a map where the keys are document type names and the values are Lists ofCMTeasables 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 ofCMTeasables 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
-