|
||||||
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.list.A_CmsListDialog
org.opencms.workplace.list.A_CmsListResourceTypeDialog
org.opencms.workplace.explorer.CmsNewResource
org.opencms.workplace.explorer.CmsNewResourceXmlPage
public class 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, DEFAULT_SUFFIX, DELIM_PROPERTYVALUES, DIALOG_ADVANCED, DIALOG_NEWFORM, DIALOG_SUBMITFORM, DIALOG_TYPE, LIST_COLUMN_URI, PARAM_APPENDSUFFIXHTML, PARAM_CURRENTFOLDER, PARAM_NEWFORMURI, PARAM_NEWRESOURCEEDITPROPS, PARAM_NEWRESOURCETYPE, PARAM_NEWRESOURCEURI, SESSION_ATTR_ADVANCED, SESSION_ATTR_PAGE, VALUE_DEFAULT |
Fields inherited from class org.opencms.workplace.list.A_CmsListResourceTypeDialog |
---|
LIST_ACTION_SEL, LIST_COLUMN_ICON, LIST_COLUMN_NAME, LIST_COLUMN_SELECT, LIST_DETAIL_DESCRIPTION, LIST_ID, PARAM_SELECTED_TYPE |
Fields inherited from class org.opencms.workplace.tools.CmsToolDialog |
---|
PARAM_BASE, PARAM_FORCE, 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 |
actionCreateResource()
Creates the xml page using the specified resource name. |
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 |
getParamSuffixCheck()
Returns the request parameter flag indicating 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. |
void |
setParamBodyFile(java.lang.String bodyFile)
Sets the body file parameter value. |
void |
setParamSuffixCheck(java.lang.String paramSuffixCheck)
Sets the request parameter flag indicating 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.list.A_CmsListResourceTypeDialog |
---|
customHtmlBeforeList, customHtmlEnd, defaultActionHtmlContent, executeListMultiActions, executeListSingleActions, fillDetails, getParamSelectedType, paramsAsHidden, setIndependentActions, setMultiActions, setParamSelectedType |
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_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 search 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 actionCreateResource() throws javax.servlet.jsp.JspException
actionCreateResource
in class CmsNewResource
javax.servlet.jsp.JspException
- if inclusion of error dialog 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 getParamSuffixCheck()
public java.lang.String getParamTemplate()
public void setParamBodyFile(java.lang.String bodyFile)
bodyFile
- the body file parameter valuepublic void setParamSuffixCheck(java.lang.String paramSuffixCheck)
paramSuffixCheck
- he request parameter flag indicating 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
settings
- the workplace settingsrequest
- the current requestCmsWorkplace.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 |