|
|||||||
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.explorer.CmsNewResource
org.opencms.workplace.explorer.CmsNewResourceXmlPage
The new resource page dialog handles the creation of an xml page.
The following files use this class:
Field Summary | |
static java.lang.String |
PARAM_BODYFILE
Request parameter name for the selected body. |
static java.lang.String |
PARAM_SUFFIXCHECK
Request parameter name for the suffix check. |
static java.lang.String |
PARAM_TEMPLATE
Request parameter name for the selected template. |
Fields inherited from class org.opencms.workplace.explorer.CmsNewResource |
ACTION_NEWFORM, ACTION_SUBMITFORM, BUTTON_NEXT, DELIM_PROPERTYVALUES, DIALOG_ADVANCED, DIALOG_NEWFORM, DIALOG_SUBMITFORM, DIALOG_TYPE, PARAM_APPENDSUFFIXHTML, PARAM_CURRENTFOLDER, PARAM_NEWRESOURCEEDITPROPS, PARAM_NEWRESOURCETYPE, PARAM_NEWRESOURCEURI, VALUE_DEFAULT |
Fields inherited from class org.opencms.workplace.tools.CmsToolDialog |
PARAM_BASE, PARAM_PATH, PARAM_ROOT, PARAM_STYLE, STYLE_NEW |
Constructor Summary | |
CmsNewResourceXmlPage(CmsJspActionElement jsp)
Public constructor with JSP action element. |
|
CmsNewResourceXmlPage(javax.servlet.jsp.PageContext context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Public constructor with JSP variables. |
Method Summary | |
void |
actionCloseDialog()
Used to close the current JSP dialog. |
void |
actionCreateResource()
Creates the xml page using the specified resource name. |
void |
actionEditProperties()
Forwards to the property dialog if the resourceeditprops parameter is true. |
java.lang.String |
buildSelectBodyFile(java.lang.String attributes)
Builds the html for the page body file select box. |
java.lang.String |
buildSelectTemplates(java.lang.String attributes)
Builds the html for the page template select box. |
static java.util.TreeMap |
getBodies(CmsObject cms,
java.lang.String currWpPath)
Returns a sorted Map of all available body files of the OpenCms modules. |
static java.util.TreeMap |
getBodies(CmsObject cms,
java.lang.String currWpPath,
boolean emptyMap)
Returns a sorted Map of all available body files of the OpenCms modules. |
protected static java.util.TreeMap |
getElements(CmsObject cms,
java.lang.String elementFolder,
java.lang.String currWpPath,
boolean emptyMap)
Returns a sorted Map of all available elements in the specified subfolder of the OpenCms modules. |
java.lang.String |
getParamBodyFile()
Returns the body file parameter value. |
java.lang.String |
getParamDialogmode()
Returns the value of the dialogmode parameter, or null if this parameter was not provided. |
java.lang.String |
getParamSuffixCheck()
Returns the request parameter flag inidicating if the suffix field is present or not. |
java.lang.String |
getParamTemplate()
Returns the template parameter value. |
static java.util.TreeMap |
getTemplates(CmsObject cms,
java.lang.String currWpPath)
Returns a sorted Map of all available templates of the OpenCms modules. |
static java.util.TreeMap |
getTemplates(CmsObject cms,
java.lang.String currWpPath,
boolean emptyMap)
Returns a sorted Map of all available templates of the OpenCms modules. |
protected void |
initWorkplaceRequestValues(CmsWorkplaceSettings settings,
javax.servlet.http.HttpServletRequest request)
Analyzes the request for workplace parameters and adjusts the workplace settings accordingly. |
boolean |
isCreateIndexMode()
Returns true if the current mode is: create an index page in a newly created folder. |
java.lang.String |
paramsAsHidden()
Overrides the super implementation to avoid problems with double reqource input fields. |
void |
setParamBodyFile(java.lang.String bodyFile)
Sets the body file parameter value. |
void |
setParamDialogmode(java.lang.String value)
Sets the value of the dialogmode parameter. |
void |
setParamSuffixCheck(java.lang.String paramSuffixCheck)
Sets the request parameter flag inidicating if the suffix field is present or not. |
void |
setParamTemplate(java.lang.String template)
Sets the template parameter value. |
Methods inherited from class org.opencms.workplace.tools.CmsToolDialog |
dialogTitle, getAdminTool, getCurrentToolPath, getParamBase, getParamPath, getParamRoot, getParamStyle, getParentPath, getToolManager, iconsBlockArea, iconsBlockAreaEnd, iconsBlockAreaStart, initAdminTool, pageBody, pageHtmlStyle, setParamBase, 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_BODYFILE
public static final java.lang.String PARAM_SUFFIXCHECK
public static final java.lang.String PARAM_TEMPLATE
Constructor Detail |
public CmsNewResourceXmlPage(CmsJspActionElement jsp)
jsp
- an initialized JSP action elementpublic CmsNewResourceXmlPage(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.util.TreeMap getBodies(CmsObject cms, java.lang.String currWpPath) throws CmsException
cms
- the current cms objectcurrWpPath
- the current path in the OpenCms workplace
CmsException
- if reading a folder or file failspublic static java.util.TreeMap getBodies(CmsObject cms, java.lang.String currWpPath, boolean emptyMap) throws CmsException
cms
- the current cms objectcurrWpPath
- the current path in the OpenCms workplaceemptyMap
- flag indicating if it is OK to return a filtered empty Map
CmsException
- if reading a folder or file failspublic static java.util.TreeMap getTemplates(CmsObject cms, java.lang.String currWpPath) throws CmsException
cms
- the current cms objectcurrWpPath
- the current path in the OpenCms workplace
CmsException
- if reading a folder or file failspublic static java.util.TreeMap getTemplates(CmsObject cms, java.lang.String currWpPath, boolean emptyMap) throws CmsException
cms
- the current cms objectcurrWpPath
- the current path in the OpenCms workplaceemptyMap
- flag indicating if it is OK to return a filtered empty Map
CmsException
- if reading a folder or file failsprotected static java.util.TreeMap getElements(CmsObject cms, java.lang.String elementFolder, java.lang.String currWpPath, boolean emptyMap) throws CmsException
cms
- the current cms objectelementFolder
- the module subfolder to serach for elementscurrWpPath
- the current path in the OpenCms workplaceemptyMap
- flag indicating if it is OK to return a filtered empty Map
CmsException
- if reading a folder or file failspublic void actionCloseDialog() throws javax.servlet.jsp.JspException
This method overwrites the close dialog method in the super class, because in case a new folder was created before, after this dialog the tree view has to be refreshed.
It tries to include the URI stored in the workplace settings. This URI is determined by the frame name, which has to be set in the framename parameter.
actionCloseDialog
in class CmsDialog
javax.servlet.jsp.JspException
- if including an element failspublic void actionCreateResource() throws javax.servlet.jsp.JspException
actionCreateResource
in class CmsNewResource
javax.servlet.jsp.JspException
- if inclusion of error dialog failspublic void actionEditProperties() throws java.io.IOException, javax.servlet.jsp.JspException, javax.servlet.ServletException
If the parameter is not true, the dialog will be closed.
actionEditProperties
in class CmsNewResource
java.io.IOException
- if forwarding to the property dialog fails
javax.servlet.ServletException
- if forwarding to the property dialog fails
javax.servlet.jsp.JspException
- if an inclusion failspublic java.lang.String buildSelectBodyFile(java.lang.String attributes)
attributes
- optional attributes for the <select> tag
public java.lang.String buildSelectTemplates(java.lang.String attributes)
attributes
- optional attributes for the <select> tag
public java.lang.String getParamBodyFile()
public java.lang.String getParamDialogmode()
The dialogmode parameter stores the different modes of the property dialog, e.g. for displaying other buttons in the new resource wizard.
public java.lang.String getParamSuffixCheck()
public java.lang.String getParamTemplate()
public boolean isCreateIndexMode()
public java.lang.String paramsAsHidden()
paramsAsHidden
in class CmsWorkplace
CmsWorkplace.paramsAsHidden()
public void setParamBodyFile(java.lang.String bodyFile)
bodyFile
- the body file parameter valuepublic void setParamDialogmode(java.lang.String value)
value
- the value to setpublic void setParamSuffixCheck(java.lang.String paramSuffixCheck)
paramSuffixCheck
- he request parameter flag inidicating if the suffix field is present or notpublic void setParamTemplate(java.lang.String template)
template
- the template parameter valueprotected void initWorkplaceRequestValues(CmsWorkplaceSettings settings, javax.servlet.http.HttpServletRequest request)
CmsWorkplace
initWorkplaceRequestValues
in class CmsNewResource
CmsWorkplace.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 |