|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opencms.workplace.CmsWorkplace
org.opencms.workplace.tools.CmsToolDialog
org.opencms.workplace.CmsDialog
org.opencms.workplace.help.CmsHelpTemplateBean
public class CmsHelpTemplateBean
The bean that provides methods to build the HTML for the single online help frames.
CmsJspActionElement.getContent(String)
appended after their own output. This allows to use jsp's in the online help template.
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_HELPFILE
File name of the default help file to load. |
static java.lang.String |
HELPMAPPINGS_FILENAME
File name of the help mappings properties file(s). |
static java.lang.String |
MODULE_NAME
The name of the help module. |
static java.lang.String |
PARAM_BUILDFRAME
Request parameter name for the buildframe flag parameter. |
static java.lang.String |
PARAM_HELPRESOURCE
Request parameter name for the helpresource uri. |
static java.lang.String |
PARAM_HOMELINK
Request parameter name for the homelink in head frame. |
static java.lang.String |
PARAM_WORKPLACERESOURCE
Request parameter name for the workplaceresource uri. |
static java.lang.String |
PATH_HELP
VFS path to the help folder, contains a macro for the Locale which has to be resolved. |
static java.lang.String |
PROPERTY_VALUE_HELPSTART
Value of the NavInfo property indicating the start folder of the help. |
static java.lang.String |
RFS_HELPMAPPINGS
Relative RFS path of the help mappings property file(s). |
static java.lang.String |
TEMPLATEPATH
Absolute path to used JSP templates. |
Fields inherited from class org.opencms.workplace.tools.CmsToolDialog |
---|
PARAM_BASE, PARAM_FORCE, PARAM_PATH, PARAM_ROOT, PARAM_STYLE, STYLE_NEW |
Constructor Summary | |
---|---|
CmsHelpTemplateBean(CmsJspActionElement jsp)
Public constructor with JSP action element. |
|
CmsHelpTemplateBean(javax.servlet.jsp.PageContext context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Public constructor with JSP variables. |
Method Summary | |
---|---|
java.lang.String |
buildHtmlHelpEnd()
Returns the HTML for the end of the page. |
protected java.lang.String |
buildHtmlHelpNavigation()
Returns the HTML to build the navigation of the online help folder. |
java.lang.String |
buildHtmlHelpStart(java.lang.String cssFile,
boolean transitional)
Returns the HTML for the start of the page. |
static java.lang.String |
buildOnlineHelpJavaScript(java.util.Locale locale)
Returns the java script method to open the online help popup window. |
protected void |
checkRole()
Checks that the current user is a workplace user. |
java.lang.String |
displayBody()
Returns the HTML for the body frame of the online help. |
protected java.lang.String |
displayFrameset()
Returns the HTML to build the frameset for the online help popup window. |
java.lang.String |
displayHead()
Returns the HTML for the head frame of the online help. |
java.lang.String |
displayHelp()
Generates the HTML for the online help frameset or redirects to the help body, depending on the build frameset flag. |
protected void |
getMappedHelpUri()
Determines the mapped help page for a given workplace resource URI. |
java.lang.String |
getParamBuildframe()
Returns the buildframe parameter indicating if the frameset should be generated. |
java.lang.String |
getParamHelpresource()
Returns the helpresource parameter value. |
java.lang.String |
getParamHomelink()
Returns the homelink parameter value. |
java.lang.String |
getParamWorkplaceresource()
Returns the workplaceresource parameter value. |
protected void |
initWorkplaceRequestValues(CmsWorkplaceSettings settings,
javax.servlet.http.HttpServletRequest request)
Analyzes the request for workplace parameters and adjusts the workplace settings accordingly. |
protected boolean |
isBuildFrameset()
Returns true if the online help frameset has to be generated. |
void |
setParamBuildframe(java.lang.String buildframe)
Sets the buildframe parameter indicating if the frameset should be generated. |
void |
setParamHelpresource(java.lang.String helpresource)
Sets the helpresource parameter value. |
void |
setParamHomelink(java.lang.String homelink)
Sets the homelink parameter value. |
void |
setParamWorkplaceresource(java.lang.String workplaceresource)
Sets the workplaceresource parameter value. |
Methods inherited from class org.opencms.workplace.tools.CmsToolDialog |
---|
dialogTitle, getAdminTool, getCurrentToolPath, getParamBase, getParamForce, getParamPath, getParamRoot, getParamStyle, getParentPath, getToolManager, iconsBlockArea, iconsBlockAreaEnd, iconsBlockAreaStart, initAdminTool, pageBody, pageHtmlStyle, setParamBase, setParamForce, setParamPath, setParamRoot, setParamStyle, useNewStyle |
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 DEFAULT_HELPFILE
public static final java.lang.String HELPMAPPINGS_FILENAME
public static final java.lang.String MODULE_NAME
public static final java.lang.String PARAM_BUILDFRAME
public static final java.lang.String PARAM_HELPRESOURCE
public static final java.lang.String PARAM_HOMELINK
public static final java.lang.String PARAM_WORKPLACERESOURCE
public static final java.lang.String PATH_HELP
public static final java.lang.String PROPERTY_VALUE_HELPSTART
public static final java.lang.String RFS_HELPMAPPINGS
public static final java.lang.String TEMPLATEPATH
Constructor Detail |
---|
public CmsHelpTemplateBean(CmsJspActionElement jsp)
jsp
- an initialized JSP action elementpublic CmsHelpTemplateBean(javax.servlet.jsp.PageContext context, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
context
- the JSP page contextreq
- the JSP requestres
- the JSP responseMethod Detail |
---|
public static java.lang.String buildOnlineHelpJavaScript(java.util.Locale locale)
locale
- the current users workplace Locale
public java.lang.String buildHtmlHelpEnd()
public java.lang.String buildHtmlHelpStart(java.lang.String cssFile, boolean transitional)
cssFile
- the CSS file name to usetransitional
- if true, transitional doctype is used
public java.lang.String displayBody()
public java.lang.String displayHead()
public java.lang.String displayHelp() throws java.io.IOException
java.io.IOException
- if redirection failspublic java.lang.String getParamBuildframe()
public java.lang.String getParamHelpresource()
public java.lang.String getParamHomelink()
public java.lang.String getParamWorkplaceresource()
public void setParamBuildframe(java.lang.String buildframe)
buildframe
- the buildframe parameter indicating if the frameset should be generatedpublic void setParamHelpresource(java.lang.String helpresource)
helpresource
- the helpresource parameter valuepublic void setParamHomelink(java.lang.String homelink)
homelink
- the homelink parameter valuepublic void setParamWorkplaceresource(java.lang.String workplaceresource)
workplaceresource
- the workplaceresource parameter valueprotected java.lang.String buildHtmlHelpNavigation()
protected void checkRole() throws CmsRoleViolationException
CmsWorkplace
checkRole
in class CmsWorkplace
CmsRoleViolationException
- if the user does not have the required roleCmsWorkplace.checkRole()
protected java.lang.String displayFrameset()
protected void getMappedHelpUri()
If a mapping information is found, the requested URI is set to the found value.
If no workplace resource URI is given, nothing is changed.
protected void initWorkplaceRequestValues(CmsWorkplaceSettings settings, javax.servlet.http.HttpServletRequest request)
CmsWorkplace
initWorkplaceRequestValues
in class CmsDialog
settings
- the workplace settingsrequest
- the current requestCmsWorkplace.initWorkplaceRequestValues(org.opencms.workplace.CmsWorkplaceSettings, javax.servlet.http.HttpServletRequest)
protected boolean isBuildFrameset()
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |