Class CmsDefaultTemplateContextProvider

    • Field Summary

      Modifier and Type Field Description
      static java.lang.String A_HEIGHT
      JSON attribute name.
      static java.lang.String A_NICE_NAME
      JSON attribute name.
      static java.lang.String A_PATH
      JSON attribute name.
      static java.lang.String A_VARIANTS
      JSON attribute name.
      static java.lang.String A_WIDTH
      JSON attribute name.
      static java.lang.String PARAM_CONFIGURATION
      The name for the configuration parameter which points to the template contexts configuration file.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Map<java.lang.String,​CmsTemplateContext> getAllContexts()
      Gets a map of all template contexts, with the template context names as keys.
      java.lang.String getConfigurationPropertyPath()
      Returns the absolute VFS path where the configuration property file is stored.
      java.lang.String getEditorStyleSheet​(CmsObject cms, java.lang.String editedResourcePath)
      Returns the style sheet to be used for the editor.
      java.lang.String getOverrideCookieName()
      Gets the name of the cookie which should be used for overriding the template context.
      CmsTemplateContext getTemplateContext​(CmsObject cms, javax.servlet.http.HttpServletRequest request, CmsResource resource)
      Determines the template context from the current CMS context, request, and resource.
      void initialize​(CmsObject cms, java.lang.String config)
      Initializes the context provider using a CMS object.
      java.lang.String readCommonProperty​(CmsObject cms, java.lang.String propertyName, java.lang.String fallbackValue)
      Gets the value which should be used instead of a property which was read from the template resource.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait