|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opencms.jsp.CmsJspBean
org.opencms.jsp.CmsJspActionElement
org.opencms.frontend.templateone.CmsTemplateBase
org.opencms.frontend.templateone.CmsTemplateBean
org.opencms.frontend.templateone.CmsTemplateImprint
public class CmsTemplateImprint
Provides methods to build the imprint popup information of the pages of template one.
| Field Summary | |
|---|---|
static java.lang.String |
FILENAME_CONFIGFILE
Default file name of the imprint configuration file. |
static java.lang.String |
PROPERTY_CONFIGFILE
Name of the property key to set the path to the configuration file. |
static java.lang.String |
PROPERTY_LINK_LEGAL
Name of the property key to set the link to the legal notes page. |
static java.lang.String |
PROPERTY_LINK_PRIVACY
Name of the property key to set the link to the privacy policy page. |
| Fields inherited from class org.opencms.frontend.templateone.CmsTemplateBase |
|---|
ATTRIBUTE_ORIGINAL_URI |
| Fields inherited from class org.opencms.jsp.CmsJspActionElement |
|---|
NOT_INITIALIZED |
| Constructor Summary | |
|---|---|
CmsTemplateImprint()
Empty constructor, required for every JavaBean. |
|
CmsTemplateImprint(javax.servlet.jsp.PageContext context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Constructor, with parameters. |
|
| Method Summary | |
|---|---|
java.lang.String |
buildEmailEntry(java.lang.String className,
java.lang.String localeKey)
Returns the html of the email address for the imprint. |
java.lang.String |
buildImprintEntry(java.lang.String className,
java.lang.String localeKey,
java.lang.String nodeName)
Builds the html for a single imprint information row. |
protected java.lang.String |
getEmail(java.lang.String defaultValue)
Returns the email address provided in the imprint configuration. |
java.lang.String |
getImprintValue(java.lang.String nodeName)
Returns the value of the specified node name from the imprint configuration. |
java.lang.String |
getLinkLegalNotes()
Returns the substituted link to the legal notes page. |
java.lang.String |
getLinkPrivacy()
Returns the substituted link to the privacy policy page. |
java.lang.String |
getUrl()
Returns the URL of the page to be displayed on the imprint. |
void |
init(javax.servlet.jsp.PageContext context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Initialize this bean with the current page context, request and response. |
| Methods inherited from class org.opencms.frontend.templateone.CmsTemplateBase |
|---|
getOriginalUri, initUri, isUriChanged |
| 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, 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 |
|---|
public static final java.lang.String FILENAME_CONFIGFILE
public static final java.lang.String PROPERTY_CONFIGFILE
public static final java.lang.String PROPERTY_LINK_LEGAL
public static final java.lang.String PROPERTY_LINK_PRIVACY
| Constructor Detail |
|---|
public CmsTemplateImprint()
public CmsTemplateImprint(javax.servlet.jsp.PageContext context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Use this constructor for the template.
context - the JSP page context objectreq - the JSP requestres - the JSP response| Method Detail |
|---|
public java.lang.String buildEmailEntry(java.lang.String className,
java.lang.String localeKey)
className - the CSS class name for the table cellslocaleKey - the key name for the localized entry description
public java.lang.String buildImprintEntry(java.lang.String className,
java.lang.String localeKey,
java.lang.String nodeName)
If the required information is not configured, the row will not be displayed.
className - the CSS class name for the table cellslocaleKey - the key name for the localized entry descriptionnodeName - the name of the imprint configuration node
public java.lang.String getImprintValue(java.lang.String nodeName)
nodeName - the name of the imprint configuration node
public java.lang.String getLinkLegalNotes()
public java.lang.String getLinkPrivacy()
public java.lang.String getUrl()
public void init(javax.servlet.jsp.PageContext context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
It is required to call one of the init() methods before you can use the instance of this bean.
init in class CmsTemplateBeancontext - the JSP page context objectreq - the JSP requestres - the JSP responseprotected java.lang.String getEmail(java.lang.String defaultValue)
defaultValue - email address used if no email is provided in the configuration.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||