org.opencms.frontend.templateone
Class CmsTemplateBase

java.lang.Object
  extended by org.opencms.jsp.CmsJspBean
      extended by org.opencms.jsp.CmsJspActionElement
          extended by org.opencms.frontend.templateone.CmsTemplateBase
Direct Known Subclasses:
CmsTemplateBean, CmsTemplateModules, CmsTemplateNavigation, CmsTemplateStyleSheet

public class CmsTemplateBase
extends org.opencms.jsp.CmsJspActionElement

Base action element for all template one beans.

Since:
6.1.0

Field Summary
static java.lang.String ATTRIBUTE_ORIGINAL_URI
          The old uri is stored in this parameter (if required).
 
Fields inherited from class org.opencms.jsp.CmsJspActionElement
NOT_INITIALIZED
 
Constructor Summary
CmsTemplateBase()
          Empty constructor, required for every JavaBean.
CmsTemplateBase(javax.servlet.jsp.PageContext context, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
           
 
Method Summary
 java.lang.String getOriginalUri()
          Returns the original OpenCms request context URI thas has been changed, or null if the URI was not changed.
 void initUri()
          Initializes the URI of the current template page.
 boolean isUriChanged()
          Returns true if the OpenCms request context URI has been changed.
 
Methods inherited from class org.opencms.jsp.CmsJspActionElement
editable, editable, editable, editableManualClose, editableManualOpen, getContent, getContent, getMessages, getMessages, getMessages, getMessages, getNavigation, getNavigationUri, img, img, include, include, include, include, include, include, includeSilent, includeSilent, includeSilent, includeSilent, info, label, link, link, properties, properties, property, property, property, property, template, template, template, toAbsolute, user
 
Methods inherited from class org.opencms.jsp.CmsJspBean
getCmsObject, getController, getJspContext, getMessage, getRequest, getRequestContext, getResponse, handleException, init, isNotInitialized, isSupressingExceptions, setContentType, setStatus, setSupressingExceptions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ATTRIBUTE_ORIGINAL_URI

public static final java.lang.String ATTRIBUTE_ORIGINAL_URI
The old uri is stored in this parameter (if required).

See Also:
Constant Field Values
Constructor Detail

CmsTemplateBase

public CmsTemplateBase()
Empty constructor, required for every JavaBean.


CmsTemplateBase

public CmsTemplateBase(javax.servlet.jsp.PageContext context,
                       javax.servlet.http.HttpServletRequest req,
                       javax.servlet.http.HttpServletResponse res)
See Also:
CmsJspActionElement.CmsJspActionElement(PageContext, HttpServletRequest, HttpServletResponse)
Method Detail

getOriginalUri

public java.lang.String getOriginalUri()
Returns the original OpenCms request context URI thas has been changed, or null if the URI was not changed.

Returns:
the original OpenCms request context URI thas has been changed, or null if the URI was not changed

initUri

public void initUri()
Initializes the URI of the current template page.

This checks for the presence of a special uri parameter. If this parameter is found, the OpenCms request context URI is switched to this value.


isUriChanged

public boolean isUriChanged()
Returns true if the OpenCms request context URI has been changed.

Returns:
true if the OpenCms request context URI has been changed