|
||||||
| 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.commons.CmsDisplayResource
public class CmsDisplayResource
Shows a preview of the selected resource in the Explorer view.
This is required to get correct previews of statically exported pages in the Online project.
The following file uses this class:
| Field Summary | |
|---|---|
static java.lang.String |
PARAM_VERSION
Request parameter name for versionid. |
| Fields inherited from class org.opencms.workplace.tools.CmsToolDialog |
|---|
PARAM_BASE, PARAM_FORCE, PARAM_PATH, PARAM_ROOT, PARAM_STYLE, STYLE_NEW |
| Constructor Summary | |
|---|---|
CmsDisplayResource(CmsJspActionElement jsp)
Public constructor with JSP action element. |
|
CmsDisplayResource(javax.servlet.jsp.PageContext context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Public constructor with JSP variables. |
|
| Method Summary | |
|---|---|
void |
actionShow()
Redirects to the specified file or shows an historical resource. |
protected void |
autoTimeWarp(CmsResource resource)
Performs a timewarp for resources that are expired or not released yet to always allow a preview of a page out of the workplace. |
protected static byte[] |
getHistoricalResourceContent(CmsObject cms,
java.lang.String resource,
java.lang.String version)
Returns the content of an historical resource. |
java.lang.String |
getParamVersion()
Returns the version number parameter value. |
protected void |
initWorkplaceRequestValues(CmsWorkplaceSettings settings,
javax.servlet.http.HttpServletRequest request)
Analyzes the request for workplace parameters and adjusts the workplace settings accordingly. |
void |
setParamVersionid(java.lang.String paramVersion)
Sets the version number 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 PARAM_VERSION
| Constructor Detail |
|---|
public CmsDisplayResource(CmsJspActionElement jsp)
jsp - an initialized JSP action element
public CmsDisplayResource(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 response| Method Detail |
|---|
protected static byte[] getHistoricalResourceContent(CmsObject cms,
java.lang.String resource,
java.lang.String version)
cms - a CmsObjectresource - the name of the historical resourceversion - the version number of the historical resource
public void actionShow()
throws java.lang.Exception
java.lang.Exception - if redirection failspublic java.lang.String getParamVersion()
public void setParamVersionid(java.lang.String paramVersion)
paramVersion - the version number parameter value to set
protected void autoTimeWarp(CmsResource resource)
throws CmsVfsResourceNotFoundException
If the user has a configured timewarp (preferences dialog) a mandatory timewarp will lead to an exception. One cannot auto timewarp with configured timewarp time.
resource - the resource to show
CmsVfsResourceNotFoundException - if a warp would be needed to show the resource but the user has a configured
timewarp which disallows auto warping
protected void initWorkplaceRequestValues(CmsWorkplaceSettings settings,
javax.servlet.http.HttpServletRequest request)
CmsWorkplace
initWorkplaceRequestValues in class CmsDialogsettings - the workplace settingsrequest - the current requestCmsDialog.initWorkplaceRequestValues(org.opencms.workplace.CmsWorkplaceSettings, javax.servlet.http.HttpServletRequest)
|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||