org.opencms.frontend.templateone
Class CmsTemplateCssHandler

java.lang.Object
  extended by org.opencms.frontend.templateone.CmsTemplateCssHandler
All Implemented Interfaces:
org.opencms.workplace.editors.I_CmsEditorCssHandler

public class CmsTemplateCssHandler
extends java.lang.Object
implements org.opencms.workplace.editors.I_CmsEditorCssHandler

An editor CSS handler to obtain the CSS style sheet path for pages using template one as template.

Since:
6.9.2

Field Summary
static java.lang.String VFS_PATH_TEMPLATE
          The absolute VFS path to the template one template.
 
Constructor Summary
CmsTemplateCssHandler()
           
 
Method Summary
protected  java.lang.String getStyleSheetConfigUri(org.opencms.file.CmsObject cms, java.lang.String editedResourcePath)
          Returns the URI of the CSS style sheet configuration file.
 java.lang.String getUriStyleSheet(org.opencms.file.CmsObject cms, java.lang.String editedResourcePath)
           
 boolean matches(org.opencms.file.CmsObject cms, java.lang.String editedResourcePath)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VFS_PATH_TEMPLATE

public static final java.lang.String VFS_PATH_TEMPLATE
The absolute VFS path to the template one template.

See Also:
Constant Field Values
Constructor Detail

CmsTemplateCssHandler

public CmsTemplateCssHandler()
Method Detail

getUriStyleSheet

public java.lang.String getUriStyleSheet(org.opencms.file.CmsObject cms,
                                         java.lang.String editedResourcePath)
Specified by:
getUriStyleSheet in interface org.opencms.workplace.editors.I_CmsEditorCssHandler
See Also:
I_CmsEditorCssHandler.getUriStyleSheet(org.opencms.file.CmsObject, java.lang.String)

matches

public boolean matches(org.opencms.file.CmsObject cms,
                       java.lang.String editedResourcePath)
Specified by:
matches in interface org.opencms.workplace.editors.I_CmsEditorCssHandler
See Also:
I_CmsEditorCssHandler.matches(org.opencms.file.CmsObject, java.lang.String)

getStyleSheetConfigUri

protected java.lang.String getStyleSheetConfigUri(org.opencms.file.CmsObject cms,
                                                  java.lang.String editedResourcePath)
Returns the URI of the CSS style sheet configuration file.

Parameters:
cms - the current OpenCms user context
editedResourcePath - the absolute VFS path of the currently edited resource
Returns:
the URI of the CSS style sheet configuration file