|
||||||||||
| 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.CmsHistory
public class CmsHistory
Provides methods for displaying the history file dialog.
The following files use this class:
| Field Summary | |
|---|---|
static int |
ACTION_RESTORE_VERSION
Value for the action: restore the version. |
static String |
DIALOG_RESTORE
Request parameter value for the action: restore the version. |
static String |
DIALOG_TYPE
The dialog type. |
| Fields inherited from class org.opencms.workplace.tools.CmsToolDialog |
|---|
PARAM_PATH, PARAM_ROOT, PARAM_STYLE, STYLE_NEW |
| Constructor Summary | |
|---|---|
CmsHistory(CmsJspActionElement jsp)
Public constructor with JSP action element. |
|
CmsHistory(PageContext context,
HttpServletRequest req,
HttpServletResponse res)
Public constructor with JSP variables. |
|
| Method Summary | |
|---|---|
void |
actionRestore()
Performs the restore action, will be called by the JSP page. |
String |
buildVersionList()
Builds a list of Versions of the specified resource. |
String |
getParamVersionid()
Returns the paramVersionid. |
protected void |
initWorkplaceRequestValues(CmsWorkplaceSettings settings,
HttpServletRequest request)
Analyzes the request for workplace parameters and adjusts the workplace settings accordingly. |
protected void |
performRestoreOperation()
Restores a backed up resource version. |
void |
setParamVersionid(String paramVersionid)
Sets the paramVersionid. |
| Methods inherited from class org.opencms.workplace.tools.CmsToolDialog |
|---|
dialogTitle, getAdminTool, getCurrentToolPath, getParamPath, getParamRoot, getParamStyle, getParentPath, getToolManager, iconsBlockArea, iconsBlockAreaEnd, iconsBlockAreaStart, initAdminTool, pageBody, pageHtmlStyle, 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 int ACTION_RESTORE_VERSION
public static final String DIALOG_TYPE
public static final String DIALOG_RESTORE
| Constructor Detail |
|---|
public CmsHistory(CmsJspActionElement jsp)
jsp - an initialized JSP action element
public CmsHistory(PageContext context,
HttpServletRequest req,
HttpServletResponse res)
context - the JSP page contextreq - the JSP requestres - the JSP response| Method Detail |
|---|
public void actionRestore()
throws JspException
JspException - if including a JSP subelement is not successful
public String buildVersionList()
throws CmsException
CmsException - if operation was not successfulpublic String getParamVersionid()
public void setParamVersionid(String paramVersionid)
paramVersionid - the paramVersionid to set
protected void initWorkplaceRequestValues(CmsWorkplaceSettings settings,
HttpServletRequest request)
CmsWorkplace
initWorkplaceRequestValues in class CmsDialogsettings - the workplace settingsrequest - the current requestCmsWorkplace.initWorkplaceRequestValues(org.opencms.workplace.CmsWorkplaceSettings, javax.servlet.http.HttpServletRequest)
protected void performRestoreOperation()
throws CmsException
CmsException - if something goes wrong
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||