Interface CMCSS
- All Superinterfaces:
com.coremedia.objectserver.dataviews.AssumesIdentity
,CMAbstractCode
,CMLocalized
,CMObject
,com.coremedia.objectserver.beans.ContentBean
CMCSS beans provide static CSS resources with a media attribute and a dependency list with other CSS documents.
Represents document type CMCSS
.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Name of the document property 'media'.static final String
Name of the ContentType
'CMCSS'.Fields inherited from interface com.coremedia.blueprint.common.contentbeans.CMAbstractCode
CODE, DATA_URL, DESCRIPTION, HTML_ATTRIBUTES, INCLUDE
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 TypeMethodDescriptionDeprecated.since 1907.1; Implement optional features as extensions.Deprecated.since 1907.1; Implement optional features as extensions.Returns the value of the document propertyCMAbstractCode.INCLUDE
.Collection<? extends CMCSS>
Returns theLocale
specific variants of thisCMLocalized
Returns the value of the document propertyCMLocalized.MASTER
.getMedia()
Returns the value of the document propertyMEDIA
.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.CMAbstractCode
getCode, getContentType, getDataUrl, getDescription, getHtmlAttributes
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
-
Field Details
-
NAME
Name of the ContentType
'CMCSS'.- See Also:
-
MEDIA
Name of the document property 'media'.- See Also:
-
-
Method Details
-
getMaster
CMCSS getMaster()Returns the value of the document propertyCMLocalized.MASTER
.- Specified by:
getMaster
in interfaceCMAbstractCode
- Specified by:
getMaster
in interfaceCMLocalized
- Returns:
- a list of
CMCSS
object
-
getVariantsByLocale
Description copied from interface:CMLocalized
Returns the variants of thisCMLocalized
indexed by theirLocale
- Specified by:
getVariantsByLocale
in interfaceCMAbstractCode
- Specified by:
getVariantsByLocale
in interfaceCMLocalized
- Returns:
- the variants of this
CMLocalized
indexed by theirLocale
-
getLocalizations
Collection<? extends CMCSS> 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 interfaceCMAbstractCode
- Specified by:
getLocalizations
in interfaceCMLocalized
- Returns:
- the
Locale
specific variants of thisCMLocalized
-
getAspectByName
@Deprecated Map<String,? extends com.coremedia.cae.aspect.Aspect<? extends CMCSS>> 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 interfaceCMAbstractCode
- 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 interfaceCMAbstractCode
- Specified by:
getAspects
in interfaceCMLocalized
- Specified by:
getAspects
in interfaceCMObject
- Returns:
- a list of Aspects
-
getMedia
String getMedia()Returns the value of the document propertyMEDIA
.- Returns:
- the value of the document property
MEDIA
-
getInclude
Returns the value of the document propertyCMAbstractCode.INCLUDE
.- Specified by:
getInclude
in interfaceCMAbstractCode
- Returns:
- a list of
CMCSS
objects
-