public class CmsToolDialog extends CmsWorkplace
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PARAM_ADMIN_PROJECT
The adminProject parameter name.
|
static java.lang.String |
PARAM_BASE
Request parameter name for the base tool path in the navigation, should be a parent tool of path.
|
static java.lang.String |
PARAM_FORCE
Request parameter name for the force flag.
|
static java.lang.String |
PARAM_PATH
Request parameter name for the tool path, should be an accessible tool under the given root.
|
static java.lang.String |
PARAM_ROOT
Request parameter name for the root tool path.
|
static java.lang.String |
PARAM_STYLE
Request parameter name for the style type.
|
static java.lang.String |
STYLE_NEW
Request parameter value for the 'new' dialog style.
|
DEBUG, DEFAULT_DATE_STRING, DEFAULT_LANGUAGE, DEFAULT_LOCALE, DIALOG_PATH_COMMON, FILE_DIALOG_CLOSE, FILE_DIALOG_SCREEN_CONFIRM, FILE_DIALOG_SCREEN_ERROR, FILE_DIALOG_SCREEN_ERRORPAGE, FILE_DIALOG_SCREEN_WAIT, FILE_EXPLORER_FILELIST, FILE_REPORT_OUTPUT, HTML_END, HTML_START, INPUT_DEFAULT, INPUT_NONE, JSP_WORKPLACE_URI, PARAM_DIRECTPUBLISH, PARAM_MODELFILE, PARAM_NEWRESOURCETYPE, PARAM_PUBLISHSIBLINGS, PARAM_RELATEDRESOURCES, PARAM_RESOURCELIST, PARAM_SUBRESOURCES, PARAM_WP_EXPLORER_RESOURCE, PARAM_WP_PROJECT, PARAM_WP_SITE, PARAM_WP_START, PARAM_WP_VIEW, PATH_DIALOGS, PATH_WORKPLACE, REQUEST_ATTRIBUTE_MULTIPART, REQUEST_ATTRIBUTE_RELOADTREE, RES_PATH_FILETYPES, RFS_PATH_RESOURCES, SESSION_WORKPLACE_CLASS, VFS_DIR_DEFAULTBODIES, VFS_DIR_TEMPLATES, VFS_PATH_COMMONS, VFS_PATH_EDITORS, VFS_PATH_GALLERIES, VFS_PATH_LOCALES, VFS_PATH_MODELDIALOG, VFS_PATH_MODULES, VFS_PATH_NEWRESOURCEDIALOG, VFS_PATH_RESOURCES, VFS_PATH_SITES, VFS_PATH_SYSTEM, VFS_PATH_VIEWS, VFS_PATH_WORKPLACE, VIEW_ADMIN, VIEW_DIRECT_EDIT, VIEW_EXPLORER, VIEW_GALLERY, VIEW_LIST, VIEW_WORKPLACE| Constructor and Description |
|---|
CmsToolDialog(CmsJspActionElement jsp)
Default Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
computeUpLevelLink()
Creates the link for the 'up' button.
|
java.lang.String |
dialogScriptSubmit()
Builds the standard javascript for submitting the dialog.
|
java.lang.String |
dialogTitle()
Generates the standard new style dialog title row, and tool grouping.
|
CmsTool |
getAdminTool()
Returns the admin tool.
|
java.lang.String |
getCurrentToolPath()
Returns the current tool path.
|
java.lang.String |
getParamBase()
Returns the value for the base parameter.
|
java.lang.String |
getParamForce()
Returns the value for the force parameter.
|
java.lang.String |
getParamPath()
Returns the path parameter value.
|
java.lang.String |
getParamRoot()
Returns the root parameter value.
|
java.lang.String |
getParamStyle()
Returns the style parameter value.
|
java.lang.String |
getParentPath()
Returns the path to the parent tool.
|
CmsToolManager |
getToolManager()
Returns the tool manager.
|
java.lang.String |
iconsBlockArea(int segment,
java.lang.String headline)
Builds an block area for icons.
|
java.lang.String |
iconsBlockAreaEnd()
Builds the end HTML for a block area with border in the dialog content area.
|
java.lang.String |
iconsBlockAreaStart(java.lang.String headline)
Builds the start HTML for a block area with border and optional subheadline in the dialog content area.
|
java.util.Map<java.lang.String,java.lang.String[]> |
initAdminTool()
Initializes the admin tool main view.
|
protected void |
initWorkplaceRequestValues(CmsWorkplaceSettings settings,
javax.servlet.http.HttpServletRequest request)
Analyzes the request for workplace parameters and adjusts the workplace
settings accordingly.
|
java.lang.String |
pageBody(int segment,
java.lang.String className,
java.lang.String parameters)
Builds the html of the body.
|
java.lang.String |
pageHtmlStyle(int segment,
java.lang.String title,
java.lang.String stylesheet)
Returns the default html for a workplace page, including setting of DOCTYPE and
inserting a header with the content-type, allowing the selection of an individual style sheet.
|
void |
setParamBase(java.lang.String paramBase)
Sets the value of the base parameter.
|
void |
setParamForce(java.lang.String paramForce)
Sets the value of the force parameter.
|
void |
setParamPath(java.lang.String paramPath)
Sets the path parameter value.
|
void |
setParamRoot(java.lang.String paramRoot)
Sets the root parameter value.
|
void |
setParamStyle(java.lang.String paramStyle)
Sets the style parameter value.
|
boolean |
useNewStyle()
Tests if we are working with the new administration dialog style.
|
addMessages, addMessages, allParamsAsHidden, allParamsAsRequest, allParamValues, bodyEnd, bodyStart, bodyStart, buildSelect, buildSelect, button, button, buttonBar, buttonBar, buttonBarHorizontalLine, buttonBarLabel, buttonBarLabel, buttonBarLine, buttonBarLineSpacer, buttonBarSeparator, buttonBarSpacer, buttonBarStartTab, canEditPermissionsForRoles, checkLock, checkLock, checkRole, decodeParamValue, fillParamValues, fillParamValues, generateCssStyle, generatePageEndExtended, generatePageEndSimple, generatePageStartExtended, generatePageStartSimple, getBroadcastMessageString, getCms, getEncoding, getExplorerFileListFullUri, getFrameSource, getJsp, getLocale, getMacroResolver, getMessages, getMultiPartFileItems, getParameterMap, getResourceUri, getResourceUri, getSession, getSettings, getSkinUri, getStartSiteRoot, getStartSiteRoot, getStaticResourceUri, getStaticResourceUri, getStyleUri, getStyleUri, getStyleUri, getTemporaryFileName, getWorkplaceExplorerLink, getWorkplaceExplorerLink, getWorkplaceSettings, htmlEnd, htmlStart, initMessages, initSettings, initTimeWarp, initUserSettings, initWorkplaceMembers, initWorkplaceMembers, initWorkplaceSettings, isForwarded, isHelpEnabled, isSubElement, isTemporaryFile, key, key, keyDefault, nullToEmpty, pageHtml, paramsAsHidden, paramsAsHidden, paramsAsParameterMap, paramsAsRequest, paramValues, resolveMacros, sendCmsRedirect, sendForward, setForwarded, shortKey, substituteSiteTitle, substituteSiteTitleStatic, switchToCurrentProject, switchToTempProject, updateUserPreferencespublic static final java.lang.String PARAM_BASE
public static final java.lang.String PARAM_FORCE
public static final java.lang.String PARAM_PATH
public static final java.lang.String PARAM_ROOT
public static final java.lang.String PARAM_STYLE
public static final java.lang.String STYLE_NEW
public static final java.lang.String PARAM_ADMIN_PROJECT
public CmsToolDialog(CmsJspActionElement jsp)
jsp - the jsp action elementpublic java.lang.String dialogScriptSubmit()
Should only be used by the method.CmsDialog.dialogScriptSubmit()
public java.lang.String dialogTitle()
It is called by the method.CmsDialog.dialog(int, String)
public CmsTool getAdminTool()
public java.lang.String getCurrentToolPath()
public java.lang.String getParamBase()
public java.lang.String getParamForce()
public java.lang.String getParamPath()
public java.lang.String getParamRoot()
public java.lang.String getParamStyle()
public java.lang.String getParentPath()
public CmsToolManager getToolManager()
public java.lang.String iconsBlockArea(int segment, java.lang.String headline)
segment - the HTML segment (START / END)headline - the headline String for the blockCmsDialog.dialogBlock(int, String, boolean)public java.lang.String iconsBlockAreaEnd()
CmsDialog.dialogBlockEnd()public java.lang.String iconsBlockAreaStart(java.lang.String headline)
headline - the headline String for the blockCmsDialog.dialogBlockStart(String)public java.util.Map<java.lang.String,java.lang.String[]> initAdminTool() throws CmsRoleViolationException
CmsRoleViolationException - in case the dialog is opened by a user without the necessary privilegespublic java.lang.String pageBody(int segment, java.lang.String className, java.lang.String parameters)
CmsWorkplacepageBody in class CmsWorkplacesegment - the HTML segment (START / END)className - optional class attribute to add to the body tagparameters - optional parameters to add to the body tagCmsWorkplace.pageBody(int, java.lang.String, java.lang.String)public java.lang.String pageHtmlStyle(int segment, java.lang.String title, java.lang.String stylesheet)
CmsWorkplacepageHtmlStyle in class CmsWorkplacesegment - the HTML segment (START / END)title - the title of the page, if null no title tag is insertedstylesheet - the used style sheet, if null the default stylesheet 'workplace.css' is insertedCmsWorkplace.pageHtmlStyle(int, java.lang.String, java.lang.String)public void setParamBase(java.lang.String paramBase)
paramBase - the value of the base parameter to setpublic void setParamForce(java.lang.String paramForce)
paramForce - the value of the force parameter to setpublic void setParamPath(java.lang.String paramPath)
paramPath - the path parameter value to setpublic void setParamRoot(java.lang.String paramRoot)
paramRoot - the root parameter value to setpublic void setParamStyle(java.lang.String paramStyle)
paramStyle - the style parameter value to setpublic boolean useNewStyle()
The default is the new style, this parameter is not intended for external use.
true if using the new styleprotected java.lang.String computeUpLevelLink()
protected void initWorkplaceRequestValues(CmsWorkplaceSettings settings, javax.servlet.http.HttpServletRequest request)
CmsWorkplaceinitWorkplaceRequestValues in class CmsWorkplacesettings - the workplace settingsrequest - the current requestCmsWorkplace.initWorkplaceRequestValues(org.opencms.workplace.CmsWorkplaceSettings, javax.servlet.http.HttpServletRequest)