public class CmsFrameset extends CmsWorkplace
The following files use this class:
限定符和类型 | 字段和说明 |
---|---|
static java.util.List<java.lang.String> |
FRAMES_LIST
The names of the supported frames in a list.
|
static java.lang.String |
JSP_WORKPLACE_URI
Path to the JSP workplace frame loader file.
|
static java.lang.String |
PARAM_WP_FRAME
The request parameter for the selection of the frame.
|
static java.lang.String |
PARAM_WP_START
The request parameter for the workplace start selection.
|
static java.lang.String |
PARAM_WP_VIEW
The request parameter for the workplace view selection.
|
DEBUG, 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, PARAM_WP_EXPLORER_RESOURCE, PARAM_WP_PROJECT, PARAM_WP_SITE, 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_MODULES, VFS_PATH_RESOURCES, VFS_PATH_SYSTEM, VFS_PATH_VIEWS, VFS_PATH_WORKPLACE, VIEW_DIRECT_EDIT, VIEW_WORKPLACE
构造器和说明 |
---|
CmsFrameset(CmsJspActionElement jsp)
Public constructor.
|
限定符和类型 | 方法和说明 |
---|---|
java.util.List<CmsProject> |
filterProjectsForSelector(java.util.List<CmsProject> projects)
Performs additional filtering on the list of projects for the project selector.
|
java.lang.String |
getBroadcastMessage()
Returns the javascript code for the broadcast message alert in the foot of the workplace.
|
java.lang.String |
getLoginAddress()
Returns the remote ip address of the current user.
|
java.lang.String |
getLoginTime()
Returns the last login time of the current user in localized format.
|
java.lang.String |
getPreferencesButton()
Returns the html for the "preferences" button depending on the current users permissions and
the default workplace settings.
|
java.lang.String |
getProjectSelect(java.lang.String htmlAttributes,
java.lang.String htmlWidth)
Returns a html select box filled with the current users accessible projects.
|
java.lang.String |
getPublishButton()
Returns the html for the "publish project" button depending on the current users permissions and the default
workplace settings.
|
java.lang.String |
getPublishQueueButton()
Returns the html for the "publish queue" button.
|
java.lang.String |
getSiteSelect(java.lang.String htmlAttributes)
Returns a html select box filled with the current users accessible sites.
|
java.lang.String |
getStartupUri()
Returns the startup URI for display in the main body frame, this can
either be the user default view, or (if set) a specific startup resource.
|
java.lang.String |
getViewSelect(java.lang.String htmlAttributes)
Returns a html select box filled with the views accessible by the current user.
|
java.lang.String |
getWorkplaceReloadUri()
Returns the reload URI for the OpenCms workplace.
|
protected void |
initTimeWarp(CmsUserSettings settings,
javax.servlet.http.HttpSession session)
Sets the users time warp if configured and if the current timewarp setting is different or
clears the current time warp setting if the user has no configured timewarp.
|
protected void |
initWorkplaceRequestValues(CmsWorkplaceSettings settings,
javax.servlet.http.HttpServletRequest request)
Analyzes the request for workplace parameters and adjusts the workplace
settings accordingly.
|
boolean |
isReloadRequired()
Returns
true if a reload of the main body frame is required. |
boolean |
isSyncEnabled()
Returns true if the user has enabled synchronization.
|
boolean |
showSiteSelector()
Indicates if the site selector should be shown in the top frame depending on the count of accessible sites.
|
protected void |
topFrameReload(CmsWorkplaceSettings settings)
Performs certain clear cache actions if the top frame is reloaded.
|
addMessages, addMessages, allParamsAsHidden, allParamsAsRequest, allParamValues, bodyEnd, bodyStart, bodyStart, buildSelect, buildSelect, button, button, buttonBar, buttonBar, buttonBarHorizontalLine, buttonBarLabel, buttonBarLabel, buttonBarLine, buttonBarLineSpacer, buttonBarSeparator, buttonBarSpacer, buttonBarStartTab, checkLock, checkLock, checkRole, decodeParamValue, fillParamValues, fillParamValues, getBroadcastMessageString, getCms, getEncoding, getExplorerFileListFullUri, getFrameSource, getJsp, getLocale, getMacroResolver, getMessages, getMultiPartFileItems, getParameterMap, getResourceUri, getResourceUri, getSession, getSettings, getSkinUri, getStartSiteRoot, getStyleUri, getStyleUri, getStyleUri, getTemporaryFileName, htmlEnd, htmlStart, initMessages, initSettings, initUserSettings, initWorkplaceMembers, initWorkplaceSettings, isForwarded, isHelpEnabled, isSubElement, isTemporaryFile, key, key, keyDefault, nullToEmpty, pageBody, pageHtml, pageHtmlStyle, paramsAsHidden, paramsAsHidden, paramsAsParameterMap, paramsAsRequest, paramValues, resolveMacros, sendCmsRedirect, sendForward, setForwarded, shortKey, substituteSiteTitle, switchToCurrentProject, switchToTempProject
public static final java.util.List<java.lang.String> FRAMES_LIST
public static final java.lang.String JSP_WORKPLACE_URI
public static final java.lang.String PARAM_WP_FRAME
public static final java.lang.String PARAM_WP_START
public static final java.lang.String PARAM_WP_VIEW
public CmsFrameset(CmsJspActionElement jsp)
jsp
- an initialized JSP action elementpublic java.util.List<CmsProject> filterProjectsForSelector(java.util.List<CmsProject> projects)
projects
- the original project listpublic java.lang.String getBroadcastMessage()
public java.lang.String getLoginAddress()
public java.lang.String getLoginTime()
public java.lang.String getPreferencesButton()
public java.lang.String getProjectSelect(java.lang.String htmlAttributes, java.lang.String htmlWidth)
htmlAttributes
- attributes that will be inserted into the generated htmlhtmlWidth
- additional style attributes containing width informationpublic java.lang.String getPublishButton()
public java.lang.String getPublishQueueButton()
public java.lang.String getSiteSelect(java.lang.String htmlAttributes)
htmlAttributes
- attributes that will be inserted into the generated htmlpublic java.lang.String getStartupUri()
public java.lang.String getViewSelect(java.lang.String htmlAttributes)
htmlAttributes
- attributes that will be inserted into the generated htmlpublic java.lang.String getWorkplaceReloadUri()
public boolean isReloadRequired()
true
if a reload of the main body frame is required.This value is modified with the select options (project, site or view) in the head frame of the Workplace. If a user changes one of these select values, the head frame is posted "against itself". The posted values will be processed by this class, causing the internal Workplace settings to change. After these settings have been changed, a reload of the main body frame is required in order to update it with the new values. A JavaScript in the Workplace head frame will be executed in this case.
true
if a reload of the main body frame is requiredpublic boolean isSyncEnabled()
public boolean showSiteSelector()
protected void initTimeWarp(CmsUserSettings settings, javax.servlet.http.HttpSession session)
CmsWorkplace
Timwarping is controlled by the session attribute
CmsContextInfo.ATTRIBUTE_REQUEST_TIME
with a value of type Long
.
initTimeWarp
在类中 CmsWorkplace
settings
- the user settings which are configured via the preferences dialogsession
- the session of the userCmsWorkplace.initTimeWarp(org.opencms.db.CmsUserSettings, javax.servlet.http.HttpSession)
protected void initWorkplaceRequestValues(CmsWorkplaceSettings settings, javax.servlet.http.HttpServletRequest request)
CmsWorkplace
initWorkplaceRequestValues
在类中 CmsWorkplace
settings
- the workplace settingsrequest
- the current requestCmsWorkplace.initWorkplaceRequestValues(org.opencms.workplace.CmsWorkplaceSettings, javax.servlet.http.HttpServletRequest)
protected void topFrameReload(CmsWorkplaceSettings settings)
settings
- the current users workplace settings