Interface CMTheme

All Superinterfaces:
com.coremedia.objectserver.dataviews.AssumesIdentity, CMLocalized, CMObject, com.coremedia.objectserver.beans.ContentBean

public interface CMTheme extends CMLocalized

CMTheme beans provide access to combined CMCSS, CMJavaScript documents usable to be attached to a channel.

Represents document type CMTheme.

  • Field Details

  • Method Details

    • getAspectByName

      @Deprecated Map<String,? extends com.coremedia.cae.aspect.Aspect<? extends CMTheme>> 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 interface CMLocalized
      Specified by:
      getAspectByName in interface CMObject
      Returns:
      a Map from aspectIDs to Aspects
    • getAspects

      @Deprecated List<? extends com.coremedia.cae.aspect.Aspect<? extends CMTheme>> 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 interface CMLocalized
      Specified by:
      getAspects in interface CMObject
      Returns:
      a list of Aspects
    • getDescription

      String getDescription()
      Returns the value of the document property DESCRIPTION.
      Returns:
      the value of the document property DESCRIPTION
    • getIcon

      com.coremedia.cap.common.Blob getIcon()
      Returns the value of the CMSymbol document property CMSymbol.ICON.
      Returns:
      the value of the CMSymbol document property CMSymbol.ICON or null
    • getDetailText

      com.coremedia.xml.Markup getDetailText()
      Returns the value of the document property DETAIL_TEXT.
      Returns:
      the value of the document property DETAIL_TEXT
    • getJavaScriptLibraries

      @NonNull List<CMJavaScript> getJavaScriptLibraries()
      Returns the value of the document property JAVA_SCRIPT_LIBS.
      Returns:
      a list of CMJavaScript objects
    • getJavaScripts

      @NonNull List<CMJavaScript> getJavaScripts()
      Returns the value of the document property JAVA_SCRIPTS.
      Returns:
      a list of CMJavaScript objects
    • getCss

      @NonNull List<CMCSS> getCss()
      Returns the value of the document property CSS.
      Returns:
      a list of CMCSS objects
    • getResourceBundles

      @NonNull List<CMResourceBundle> getResourceBundles()
      Returns the value of the document property RESOURCE_BUNDLES.
      Returns:
      a list of CMResourceBundle objects
    • getViewRepositoryName

      String getViewRepositoryName()