Package org.opencms.workplace.commons
Class CmsPreferences
java.lang.Object
org.opencms.workplace.CmsWorkplace
org.opencms.workplace.tools.CmsToolDialog
org.opencms.workplace.CmsDialog
org.opencms.workplace.CmsTabDialog
org.opencms.workplace.commons.CmsPreferences
Provides methods for the user preferences dialog.
The following files use this class:
- /commons/preferences.jsp
- Since:
- 6.0.0
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Value for the action: change the password.static final int
Value for the action: show error screen.static final int
Value for the action: reload the workplace.static final String
Request parameter value for the action: change the password.static final String
Request parameter value for the action: reload the workplace.static final String
The dialog type.static final String
Request parameter name for global gallery settings.static final String
Request parameter name for the dialog copy file siblings default setting.static final String
Request parameter name for the dialog copy folder siblings default setting.static final String
Request parameter name for the dialog delete file siblings default setting.static final String
Request parameter name for the dialog permissions show inherited permissions.static final String
Request parameter name for the dialog permissions show current users permissions.static final String
Request parameter name for the dialog permissions default inheritance behavior on folders.static final String
Request parameter name for the dialog publish file siblings default setting.static final String
Request parameter name for the dialog show lock.static final String
Request parameter name for the direct edit button style.static final String
Request parameter name for the editor button style.static final String
Request parameter name for the explorer button style.static final String
Request parameter name for the explorer file date created.static final String
Request parameter name for the explorer file date expired.static final String
Request parameter name for the explorer file date last modified.static final String
Request parameter name for the explorer file date released.static final String
Request parameter name for the explorer file entry number.static final String
Request parameter name for the explorer file locked by.static final String
Request parameter name for the explorer file navtext.static final String
Request parameter name for the explorer file permissions.static final String
Request parameter name for the explorer file size.static final String
Request parameter name for the explorer file state.static final String
Request parameter name for the explorer file title.static final String
Request parameter name for the explorer file type.static final String
Request parameter name for the explorer file user created.static final String
Request parameter name for the explorer file user last modified.static final String
Request parameter name for the workplace search result list style.static final String
Request parameter name for the new password.static final String
Request parameter name for the old password.static final String
Request parameter name prefix for the preferred editors.static final String
Request parameter name prefix for the preferred editors.static final String
Request parameter name for the workplace button style.static final String
Request parameter name for the workplace start folder.static final String
Request parameter name for the workplace language.static final String
Request parameter name for the user language.static final String
Request parameter name for the workplace project.static final String
Request parameter name for the workplace report type.static final String
Request parameter name for the workplace explorer view restriction.static final String
Request parameter name for the workplace show publish notification.static final String
Request parameter name for the workplace start site.static final String
Request parameter name for the user language.static final String
Request parameter name for the workplace to choose the upload variant.static final String
Request parameter name for the workplace view.Fields inherited from class org.opencms.workplace.CmsTabDialog
ACTION_SWITCHTAB, DIALOG_SWITCHTAB, PARAM_SETPRESSED, PARAM_TAB
Fields inherited from class org.opencms.workplace.CmsDialog
ACTION_CANCEL, ACTION_CLOSEPOPUP, ACTION_CLOSEPOPUP_SAVE, ACTION_CONFIRMED, ACTION_CONTINUE, ACTION_DEFAULT, ACTION_LOCKS_CONFIRMED, ACTION_OK, ACTION_REPORT_BEGIN, ACTION_REPORT_END, ACTION_REPORT_UPDATE, ACTION_SET, ACTION_WAIT, ATTRIBUTE_THROWABLE, BUTTON_ADVANCED, BUTTON_BACK, BUTTON_CANCEL, BUTTON_CLOSE, BUTTON_CONTINUE, BUTTON_DETAILS, BUTTON_DISCARD, BUTTON_EDIT, BUTTON_OK, BUTTON_OK_NO_SUBMIT, BUTTON_SET, DIALOG_BACK, DIALOG_CANCEL, DIALOG_CONFIRMED, DIALOG_CONTINUE, DIALOG_INITIAL, DIALOG_LOCKS_CONFIRMED, DIALOG_OK, DIALOG_SET, DIALOG_WAIT, PARAM_ACTION, PARAM_ACTION_VALUE_FOR_CHANGED_INDEX, PARAM_CLOSELINK, PARAM_DIALOGTYPE, PARAM_ERRORSTACK, PARAM_FILE, PARAM_FRAMENAME, PARAM_ISPOPUP, PARAM_LOCK, PARAM_MESSAGE, PARAM_ORIGINALPARAMS, PARAM_PREACTIONDONE, PARAM_REDIRECT, PARAM_RESOURCE, PARAM_TARGET, PARAM_THREAD, PARAM_THREAD_HASNEXT, PARAM_TITLE, REPORT_BEGIN, REPORT_END, REPORT_UPDATE
Fields inherited from class org.opencms.workplace.tools.CmsToolDialog
PARAM_ADMIN_PROJECT, PARAM_BASE, PARAM_FORCE, PARAM_PATH, PARAM_ROOT, PARAM_STYLE, STYLE_NEW
Fields inherited from class org.opencms.workplace.CmsWorkplace
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 Summary
ConstructorDescriptionCmsPreferences
(javax.servlet.jsp.PageContext context, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) Public constructor with JSP variables.CmsPreferences
(org.opencms.jsp.CmsJspActionElement jsp) Public constructor with JSP action element. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Performs the change password action.void
Performs the save operation of the modified user settings.buildSelectCopyFileMode
(String htmlAttributes) Builds the html for the default copy file mode select box.buildSelectCopyFolderMode
(String htmlAttributes) Builds the html for the default copy folder mode select box.buildSelectDeleteFileMode
(String htmlAttributes) Builds the html for the default delete file mode select box.buildSelectDirectEditButtonStyle
(String htmlAttributes) Builds the html for the direct edit button style select box.buildSelectEditorButtonStyle
(String htmlAttributes) Builds the html for the editor button style select box.buildSelectExplorerButtonStyle
(String htmlAttributes) Builds the html for the explorer button style select box.buildSelectExplorerFileEntries
(String htmlAttributes) Builds the html for the explorer number of entries per page select box.buildSelectLanguage
(String htmlAttributes) Builds the html for the language select box of the start settings.buildSelectPreferredEditors
(String htmlAttributes) Builds the html for the preferred editors select boxes of the editor settings.buildSelectProject
(String htmlAttributes) Builds the html for the project select box of the start settings.buildSelectPublishSiblings
(String htmlAttributes) Builds the html for the default publish siblings mode select box.buildSelectReportType
(String htmlAttributes) Builds the html for the workplace report type select box.buildSelectSite
(String htmlAttributes) Builds the html for the workplace start site select box.buildSelectStartGalleries
(String htmlAttributes) Builds the HTML for the start galleries settings as select boxes.buildSelectUpload
(String htmlAttributes) Builds the html for the workplace start site select box.buildSelectView
(String htmlAttributes) Returns a html select box filled with the views accessible by the current user.buildSelectWorkplaceButtonStyle
(String htmlAttributes) Builds the html for the workplace button style select box.buildSelectWorkplaceSearchResult
(String htmlAttributes) Builds the html for the workplace search result list type select box.Builds the html code for the static user information table (tab 4).Deprecated.calendarInit
(String inputFieldId, String triggerButtonId, String align, boolean singleClick, boolean weekNumbers, boolean mondayFirst, String dateStatusFunc, boolean showTime) Deprecated.useCmsCalendarWidget.calendarInit(org.opencms.i18n.CmsMessages, String, String, String, boolean, boolean, boolean, String, boolean)
, this is just here so that old JSP still workprotected void
org.opencms.configuration.preferences.CmsBuiltinPreference.SelectOptions
Gets the select options for the language selector.static org.opencms.configuration.preferences.CmsBuiltinPreference.SelectOptions
getOptionsForLanguageStatic
(Locale setLocale, Locale prevLocale) Gets the options for the language selector.Returns the new password value.Returns the old password value.Returns the "copy file default" setting.Returns the "copy folder default" setting.Returns the "delete file default" setting.Returns the "expand inherited permissions" default setting.Returns the "expand current users permissions" default setting.Returns the "inherit permissions on folders" default setting.Returns the "publish file siblings default" setting.Returns the "display lock dialog" setting.Returns the "editor button style" setting.Returns the "direct edit button style" setting.Returns the "explorer button style" setting.Returns the "display file creation date" setting.Returns the "display file date expired" setting.Returns the "display file last modification date" setting.Returns the "display file date released" setting.Returns the "explorer number of entries per page" setting.Returns the "display file locked by" setting.Returns the "display navtext" setting.Returns the "display file permissions" setting.Returns the "display file size" setting.Returns the "display file state" setting.Returns the "display file title" setting.Returns the "display file type" setting.Returns the "display file created by" setting.Returns the "display file last modified by" setting.Returns the "workplace search result style" setting.Returns the "workplace button style" setting.Returns the "start folder" setting.Returns the start language setting.Returns the "list all projects" setting.Returns the start project setting.Returns the "workplace report type" setting.Returns the "workplace restrict explorer view" setting.Returns the "show publish notification" setting.Returns the "start site" setting.Get the "user timewparp" setting in form of a formatted date string.org.opencms.db.CmsUserSettings.UploadVariant
Returns the upload variant setting.Returns the start view setting.org.opencms.configuration.preferences.CmsBuiltinPreference.SelectOptions
Gets the project select options.static org.opencms.configuration.preferences.CmsBuiltinPreference.SelectOptions
getProjectSelectOptionsStatic
(org.opencms.file.CmsObject cms, String startProject, Locale locale) Gets the options for the project selector.org.opencms.configuration.preferences.CmsBuiltinPreference.SelectOptions
Gets the site select options.static org.opencms.configuration.preferences.CmsBuiltinPreference.SelectOptions
getSiteSelectOptionsStatic
(org.opencms.file.CmsObject cms, String wpSite, Locale locale) Gets the options for the site selector.Returns the order of the parameter prefixes for each tab.getTabs()
Returns a list with localized Strings representing the names of the tabs.Gets the timewarp parameter as a simple numeric string.org.opencms.db.CmsUserSettings
Gets the internal user settings object.protected void
initWorkplaceRequestValues
(org.opencms.workplace.CmsWorkplaceSettings settings, javax.servlet.http.HttpServletRequest request) Helper method to add the "checked" attribute to an input field.Returns the values of all parameter methods of this workplace class instance.void
setParamNewPassword
(String newPwd) Sets the new password value.void
setParamOldPassword
(String oldPwd) Sets the old password value.void
setParamTabDiCopyFileMode
(String value) Sets the "copy file default" setting.void
Sets the "copy folder default" setting.void
Sets the "delete file siblings default" setting.void
Sets the "expand inherited permissions" default setting.void
Sets the "expand current users permissions" default setting.void
Sets the "inherit permissions on folders" default setting.void
Sets the "publish file siblings default" setting.void
setParamTabDiShowLock
(String value) Sets the "display lock dialog" setting.void
setParamTabEdButtonStyle
(String value) Sets the "editor button style" setting.void
Sets the "direct edit button style" setting.void
setParamTabExButtonStyle
(String value) Sets the "explorer button style" setting.void
Sets the "display file creation date" setting.void
Sets the "display file expired date" setting.void
Sets the "display file last modification date" setting.void
Sets the "display file released date" setting.void
setParamTabExFileEntries
(String value) Sets the "explorer number of entries per page" setting.void
setParamTabExFileLockedBy
(String value) Sets the "display file locked by" setting.void
setParamTabExFileNavText
(String value) Sets the "display file navtext" setting.void
Sets the "display file permissions" setting.void
setParamTabExFileSize
(String value) Sets the "display file size" setting.void
setParamTabExFileState
(String value) Sets the "display file state" setting.void
setParamTabExFileTitle
(String value) Sets the "display file title" setting.void
setParamTabExFileType
(String value) Sets the "display file type" setting.void
Sets the "display file created by" setting.void
Sets the "display file last modified by" setting.void
Sets the "workplace search result style".void
setParamTabWpButtonStyle
(String value) Sets the "workplace button style" setting.void
setParamTabWpFolder
(String value) Sets the "start folder" setting.void
setParamTabWpLanguage
(String value) Sets the start language setting.void
Sets the "list all projects" flag.void
setParamTabWpProject
(String value) Sets the start project setting.void
setParamTabWpReportType
(String value) Sets the "workplace report type" setting.void
Sets the "workplace restrict explorer view" setting.void
Sets the "show publish notification" setting.void
setParamTabWpSite
(String value) Sets the "start site" setting.void
setParamTabWpTimeWarp
(String value) Sets the "user timewparp" setting.void
setParamTabWpUploadVariant
(String value) Sets the upload variant setting.void
setParamTabWpView
(String value) Sets the start view setting.void
setTimewarpInt
(String timewarp) Sets the timewarp setting from a numeric stringvoid
setUserSettings
(org.opencms.configuration.CmsDefaultUserSettings userSettings) Sets the user settings.void
updatePreferences
(org.opencms.file.CmsObject cms, javax.servlet.http.HttpServletRequest req) Updates the user preferences after changes have been made.Methods inherited from class org.opencms.workplace.CmsTabDialog
dialogTabContent, dialogTabContentEnd, dialogTabContentStart, dialogTabContentStart, dialogTabRow, getActiveTab, getActiveTabName, getParamSetPressed, getParamTab, htmlStart, htmlStart, paramsAsHidden, setParamSetPressed, setParamTab
Methods inherited from class org.opencms.workplace.CmsDialog
actionCloseDialog, appendDelimiter, buildAjaxResultContainer, buildAjaxWaitMessage, buildLockAdditionalOptions, buildLockConfirmationMessageJS, buildLockHeaderBox, checkResourcePermissions, checkResourcePermissions, computeCurrentFolder, dialog, dialogBlock, dialogBlockEnd, dialogBlockStart, dialogButtonRow, dialogButtonRowEnd, dialogButtonRowStart, dialogButtons, dialogButtonsClose, dialogButtonsClose, dialogButtonsCloseDetails, dialogButtonsHtml, dialogButtonsOk, dialogButtonsOk, dialogButtonsOkCancel, dialogButtonsOkCancel, dialogButtonsOkCancelAdvanced, dialogButtonsSetOkCancel, dialogContent, dialogContentEnd, dialogContentStart, dialogEnd, dialogHead, dialogHorizontalSpacer, dialogLockButtons, dialogRow, dialogRowEnd, dialogRowStart, dialogScriptSubmit, dialogSeparator, dialogSpacer, dialogStart, dialogStart, dialogSubheadline, dialogToggleStart, dialogWhiteBox, dialogWhiteBoxEnd, dialogWhiteBoxStart, getAction, getAdministrationBackLink, getCancelAction, getDialogRealUri, getDialogUri, getOnlineHelpUriCustom, getParamAction, getParamCloseLink, getParamDialogtype, getParamFramename, getParamIsPopup, getParamMessage, getParamOriginalParams, getParamPreActionDone, getParamRedirect, getParamResource, getParamTitle, getState, hasCorrectLockstate, hasSiblings, htmlStart, htmlStartStyle, includeErrorpage, initCmsDialog, isPopup, isPreEditor, openLaunchpad, openWorkplaceLink, pageHtml, pageHtml, setAction, setOnlineHelpUriCustom, setParamAction, setParamCloseLink, setParamDialogtype, setParamFramename, setParamIsPopup, setParamMessage, setParamOriginalParams, setParamPreActionDone, setParamRedirect, setParamResource, setParamTitle
Methods inherited from class org.opencms.workplace.tools.CmsToolDialog
computeUpLevelLink, 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 org.opencms.workplace.CmsWorkplace
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, 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, initMessages, initSettings, initTimeWarp, initUserSettings, initWorkplaceMembers, initWorkplaceMembers, initWorkplaceSettings, isForwarded, isHelpEnabled, isSubElement, isTemporaryFile, key, key, keyDefault, nullToEmpty, paramsAsHidden, paramsAsParameterMap, paramsAsRequest, resolveMacros, sendCmsRedirect, sendForward, setForwarded, shortKey, substituteSiteTitle, substituteSiteTitleStatic, switchToCurrentProject, switchToTempProject, updateUserPreferences
-
Field Details
-
ACTION_CHPWD
Value for the action: change the password.- See Also:
-
ACTION_ERROR
Value for the action: show error screen.- See Also:
-
ACTION_RELOAD
Value for the action: reload the workplace.- See Also:
-
DIALOG_CHPWD
Request parameter value for the action: change the password.- See Also:
-
DIALOG_RELOAD
Request parameter value for the action: reload the workplace.- See Also:
-
DIALOG_TYPE
The dialog type.- See Also:
-
INPUT_PRESELECT
Request parameter name for global gallery settings.- See Also:
-
PARAM_DIALOGS_COPYFILEMODE
Request parameter name for the dialog copy file siblings default setting.- See Also:
-
PARAM_DIALOGS_COPYFOLDERMODE
Request parameter name for the dialog copy folder siblings default setting.- See Also:
-
PARAM_DIALOGS_DELETEFILEMODE
Request parameter name for the dialog delete file siblings default setting.- See Also:
-
PARAM_DIALOGS_PERMISSIONS_EXPANDINHERITED
Request parameter name for the dialog permissions show inherited permissions.- See Also:
-
PARAM_DIALOGS_PERMISSIONS_EXPANDUSER
Request parameter name for the dialog permissions show current users permissions.- See Also:
-
PARAM_DIALOGS_PERMISSIONS_INHERITONFOLDER
Request parameter name for the dialog permissions default inheritance behavior on folders.- See Also:
-
PARAM_DIALOGS_PUBLISHFILEMODE
Request parameter name for the dialog publish file siblings default setting.- See Also:
-
PARAM_DIALOGS_SHOWLOCK
Request parameter name for the dialog show lock.- See Also:
-
PARAM_DIRECTEDIT_BUTTONSTYLE
Request parameter name for the direct edit button style.- See Also:
-
PARAM_EDITOR_BUTTONSTYLE
Request parameter name for the editor button style.- See Also:
-
PARAM_EXPLORER_BUTTONSTYLE
Request parameter name for the explorer button style.- See Also:
-
PARAM_EXPLORER_FILEDATECREATED
Request parameter name for the explorer file date created.- See Also:
-
PARAM_EXPLORER_FILEDATEEXPIRED
Request parameter name for the explorer file date expired.- See Also:
-
PARAM_EXPLORER_FILEDATELASTMODIFIED
Request parameter name for the explorer file date last modified.- See Also:
-
PARAM_EXPLORER_FILEDATERELEASED
Request parameter name for the explorer file date released.- See Also:
-
PARAM_EXPLORER_FILEENTRIES
Request parameter name for the explorer file entry number.- See Also:
-
PARAM_EXPLORER_FILELOCKEDBY
Request parameter name for the explorer file locked by.- See Also:
-
PARAM_EXPLORER_FILENAVTEXT
Request parameter name for the explorer file navtext.- See Also:
-
PARAM_EXPLORER_FILEPERMISSIONS
Request parameter name for the explorer file permissions.- See Also:
-
PARAM_EXPLORER_FILESIZE
Request parameter name for the explorer file size.- See Also:
-
PARAM_EXPLORER_FILESTATE
Request parameter name for the explorer file state.- See Also:
-
PARAM_EXPLORER_FILETITLE
Request parameter name for the explorer file title.- See Also:
-
PARAM_EXPLORER_FILETYPE
Request parameter name for the explorer file type.- See Also:
-
PARAM_EXPLORER_FILEUSERCREATED
Request parameter name for the explorer file user created.- See Also:
-
PARAM_EXPLORER_FILEUSERLASTMODIFIED
Request parameter name for the explorer file user last modified.- See Also:
-
PARAM_EXPLORER_SEARCH_RESULT
Request parameter name for the workplace search result list style.- See Also:
-
PARAM_NEWPASSWORD
Request parameter name for the new password.- See Also:
-
PARAM_OLDPASSWORD
Request parameter name for the old password.- See Also:
-
PARAM_PREFERREDEDITOR_PREFIX
Request parameter name prefix for the preferred editors.- See Also:
-
PARAM_STARTGALLERY_PREFIX
Request parameter name prefix for the preferred editors.- See Also:
-
PARAM_WORKPLACE_BUTTONSTYLE
Request parameter name for the workplace button style.- See Also:
-
PARAM_WORKPLACE_FOLDER
Request parameter name for the workplace start folder.- See Also:
-
PARAM_WORKPLACE_LANGUAGE
Request parameter name for the workplace language.- See Also:
-
PARAM_WORKPLACE_LISTALLPROJECTS
Request parameter name for the user language.- See Also:
-
PARAM_WORKPLACE_PROJECT
Request parameter name for the workplace project.- See Also:
-
PARAM_WORKPLACE_REPORTTYPE
Request parameter name for the workplace report type.- See Also:
-
PARAM_WORKPLACE_RESTRICTEXPLORERVIEW
Request parameter name for the workplace explorer view restriction.- See Also:
-
PARAM_WORKPLACE_SHOWPUBLISHNOTIFICATION
Request parameter name for the workplace show publish notification.- See Also:
-
PARAM_WORKPLACE_SITE
Request parameter name for the workplace start site.- See Also:
-
PARAM_WORKPLACE_TIMEWARP
Request parameter name for the user language.- See Also:
-
PARAM_WORKPLACE_UPLOADVARIANT
Request parameter name for the workplace to choose the upload variant.- See Also:
-
PARAM_WORKPLACE_VIEW
Request parameter name for the workplace view.- See Also:
-
-
Constructor Details
-
CmsPreferences
Public constructor with JSP action element.- Parameters:
jsp
- an initialized JSP action element
-
CmsPreferences
public CmsPreferences(javax.servlet.jsp.PageContext context, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) Public constructor with JSP variables.- Parameters:
context
- the JSP page contextreq
- the JSP requestres
- the JSP response
-
-
Method Details
-
getOptionsForLanguageStatic
public static org.opencms.configuration.preferences.CmsBuiltinPreference.SelectOptions getOptionsForLanguageStatic(Locale setLocale, Locale prevLocale) Gets the options for the language selector.- Parameters:
setLocale
- the locale for the select optionsprevLocale
- the locale currently set- Returns:
- the options for the language selector
-
getProjectSelectOptionsStatic
public static org.opencms.configuration.preferences.CmsBuiltinPreference.SelectOptions getProjectSelectOptionsStatic(org.opencms.file.CmsObject cms, String startProject, Locale locale) Gets the options for the project selector.- Parameters:
cms
- the CMS contextstartProject
- the start projectlocale
- the locale- Returns:
- the options for the project selector
-
getSiteSelectOptionsStatic
public static org.opencms.configuration.preferences.CmsBuiltinPreference.SelectOptions getSiteSelectOptionsStatic(org.opencms.file.CmsObject cms, String wpSite, Locale locale) Gets the options for the site selector.- Parameters:
cms
- the CMS contextwpSite
- the selected sitelocale
- the locale for the select options- Returns:
- the options for the site selector
-
actionChangePassword
Performs the change password action.- Throws:
javax.servlet.jsp.JspException
- if inclusion of error element fails
-
actionSave
Performs the save operation of the modified user settings. -
buildSelectCopyFileMode
Builds the html for the default copy file mode select box.- Parameters:
htmlAttributes
- optional html attributes for the &lgt;select> tag- Returns:
- the html for the default copy file mode select box
-
buildSelectCopyFolderMode
Builds the html for the default copy folder mode select box.- Parameters:
htmlAttributes
- optional html attributes for the &lgt;select> tag- Returns:
- the html for the default copy folder mode select box
-
buildSelectDeleteFileMode
Builds the html for the default delete file mode select box.- Parameters:
htmlAttributes
- optional html attributes for the &lgt;select> tag- Returns:
- the html for the default delete file mode select box
-
buildSelectDirectEditButtonStyle
Builds the html for the direct edit button style select box.- Parameters:
htmlAttributes
- optional html attributes for the &lgt;select> tag- Returns:
- the html for the direct edit button style select box
-
buildSelectEditorButtonStyle
Builds the html for the editor button style select box.- Parameters:
htmlAttributes
- optional html attributes for the &lgt;select> tag- Returns:
- the html for the editor button style select box
-
buildSelectExplorerButtonStyle
Builds the html for the explorer button style select box.- Parameters:
htmlAttributes
- optional html attributes for the &lgt;select> tag- Returns:
- the html for the explorer button style select box
-
buildSelectExplorerFileEntries
Builds the html for the explorer number of entries per page select box.- Parameters:
htmlAttributes
- optional html attributes for the &lgt;select> tag- Returns:
- the html for the explorer number of entries per page select box
-
buildSelectLanguage
Builds the html for the language select box of the start settings.- Parameters:
htmlAttributes
- optional html attributes for the &lgt;select> tag- Returns:
- the html for the language select box
-
buildSelectPreferredEditors
Builds the html for the preferred editors select boxes of the editor settings.- Parameters:
htmlAttributes
- optional html attributes for the &lgt;select> tag- Returns:
- the html for the preferred editors select boxes
-
buildSelectProject
Builds the html for the project select box of the start settings.- Parameters:
htmlAttributes
- optional html attributes for the &lgt;select> tag- Returns:
- the html for the project select box
-
buildSelectPublishSiblings
Builds the html for the default publish siblings mode select box.- Parameters:
htmlAttributes
- optional html attributes for the &lgt;select> tag- Returns:
- the html for the default publish siblings mode select box
-
buildSelectReportType
Builds the html for the workplace report type select box.- Parameters:
htmlAttributes
- optional html attributes for the &lgt;select> tag- Returns:
- the html for the workplace report type select box
-
buildSelectSite
Builds the html for the workplace start site select box.- Parameters:
htmlAttributes
- optional html attributes for the &lgt;select> tag- Returns:
- the html for the workplace start site select box
-
buildSelectStartGalleries
Builds the HTML for the start galleries settings as select boxes.- Parameters:
htmlAttributes
- optional HTML attributes for the &lgt;select> tag- Returns:
- the HTML for start galleries select boxes
-
buildSelectUpload
Builds the html for the workplace start site select box.- Parameters:
htmlAttributes
- optional html attributes for the &lgt;select> tag- Returns:
- the html for the workplace start site select box
-
buildSelectView
Returns a html select box filled with the views accessible by the current user.- Parameters:
htmlAttributes
- attributes that will be inserted into the generated html- Returns:
- a html select box filled with the views accessible by the current user
-
buildSelectWorkplaceButtonStyle
Builds the html for the workplace button style select box.- Parameters:
htmlAttributes
- optional html attributes for the &lgt;select> tag- Returns:
- the html for the workplace button style select box
-
buildSelectWorkplaceSearchResult
Builds the html for the workplace search result list type select box.- Parameters:
htmlAttributes
- optional html attributes for the &lgt;select> tag- Returns:
- the html for the workplace search result list type select box
-
buildUserInformation
Builds the html code for the static user information table (tab 4).- Returns:
- the html code for the static user information table
-
calendarIncludes
Deprecated.useCmsCalendarWidget.calendarIncludes(java.util.Locale)
, this is just here so that old JSP still workCreates the HTML JavaScript and stylesheet includes required by the calendar for the head of the page.- Returns:
- the necessary HTML code for the js and stylesheet includes
-
calendarInit
@Deprecated public String calendarInit(String inputFieldId, String triggerButtonId, String align, boolean singleClick, boolean weekNumbers, boolean mondayFirst, String dateStatusFunc, boolean showTime) Deprecated.useCmsCalendarWidget.calendarInit(org.opencms.i18n.CmsMessages, String, String, String, boolean, boolean, boolean, String, boolean)
, this is just here so that old JSP still workGenerates the HTML to initialize the JavaScript calendar element on the end of a page.- Parameters:
inputFieldId
- the ID of the input field where the date is pasted totriggerButtonId
- the ID of the button which triggers the calendaralign
- initial position of the calendar popup elementsingleClick
- if true, a single click selects a date and closes the calendar, otherwise calendar is closed by doubleclickweekNumbers
- show the week numbers in the calendar or notmondayFirst
- show monday as first day of weekdateStatusFunc
- name of the function which determines if/how a date should be disabledshowTime
- true if the time selector should be shown, otherwise false- Returns:
- the HTML code to initialize a calendar poup element
-
getOptionsForLanguage
public org.opencms.configuration.preferences.CmsBuiltinPreference.SelectOptions getOptionsForLanguage()Gets the select options for the language selector.- Returns:
- the select options
-
getParamNewPassword
Returns the new password value.- Returns:
- the new password value
-
getParamOldPassword
Returns the old password value.- Returns:
- the old password value
-
getParamTabDiCopyFileMode
Returns the "copy file default" setting.- Returns:
- the "copy file default" setting
-
getParamTabDiCopyFolderMode
Returns the "copy folder default" setting.- Returns:
- the "copy folder default" setting
-
getParamTabDiDeleteFileMode
Returns the "delete file default" setting.- Returns:
- the "delete file default" setting
-
getParamTabDiPermissionsExpandInherited
Returns the "expand inherited permissions" default setting.- Returns:
- the "expand inherited permissions" default setting
-
getParamTabDiPermissionsExpandUser
Returns the "expand current users permissions" default setting.- Returns:
- the "expand current users permissions" default setting
-
getParamTabDiPermissionsInheritOnFolder
Returns the "inherit permissions on folders" default setting.- Returns:
- the "inherit permissions on folders" default setting
-
getParamTabDiPublishFileMode
Returns the "publish file siblings default" setting.- Returns:
- the "publish file siblings default" setting
-
getParamTabDiShowLock
Returns the "display lock dialog" setting.- Returns:
"true"
if the "display lock dialog" input field is checked, otherwise ""
-
getParamTabEdButtonStyle
Returns the "editor button style" setting.- Returns:
- the "editor button style" setting
-
getParamTabEdDirectEditButtonStyle
Returns the "direct edit button style" setting.- Returns:
- the "direct edit button style" setting
-
getParamTabExButtonStyle
Returns the "explorer button style" setting.- Returns:
- the "explorer button style" setting
-
getParamTabExFileDateCreated
Returns the "display file creation date" setting.- Returns:
"true"
if the file creation date input field is checked, otherwise ""
-
getParamTabExFileDateExpired
Returns the "display file date expired" setting.- Returns:
"true"
if the file date expired input field is checked, otherwise ""
-
getParamTabExFileDateLastModified
Returns the "display file last modification date" setting.- Returns:
"true"
if the file last modification date input field is checked, otherwise ""
-
getParamTabExFileDateReleased
Returns the "display file date released" setting.- Returns:
"true"
if the file date released input field is checked, otherwise ""
-
getParamTabExFileEntries
Returns the "explorer number of entries per page" setting.- Returns:
- the "explorer number of entries per page" setting
-
getParamTabExFileLockedBy
Returns the "display file locked by" setting.- Returns:
"true"
if the file locked by input field is checked, otherwise ""
-
getParamTabExFilePermissions
Returns the "display file permissions" setting.- Returns:
"true"
if the file permissions input field is checked, otherwise ""
-
getParamTabExFileSize
Returns the "display file size" setting.- Returns:
"true"
if the file size input field is checked, otherwise ""
-
getParamTabExFileState
Returns the "display file state" setting.- Returns:
"true"
if the file state input field is checked, otherwise ""
-
getParamTabExFileTitle
Returns the "display file title" setting.- Returns:
"true"
if the file title input field is checked, otherwise ""
-
getParamTabExFileType
Returns the "display file type" setting.- Returns:
"true"
if the file type input field is checked, otherwise ""
-
getParamTabExFileUserCreated
Returns the "display file created by" setting.- Returns:
"true"
if the file created by input field is checked, otherwise ""
-
getParamTabExFileUserLastModified
Returns the "display file last modified by" setting.- Returns:
"true"
if the file last modified by input field is checked, otherwise ""
-
getParamTabExWorkplaceSearchResult
Returns the "workplace search result style" setting.- Returns:
- the "workplace search result style" setting
-
getParamTabWpButtonStyle
Returns the "workplace button style" setting.- Returns:
- the "workplace button style" setting
-
getParamTabWpFolder
Returns the "start folder" setting.- Returns:
- the "start folder" setting
-
getParamTabWpLanguage
Returns the start language setting.- Returns:
- the start language setting
-
getParamTabWpListAllProjects
Returns the "list all projects" setting.- Returns:
"true"
if the "list all projects" input is checked, otherwise ""
-
getParamTabWpProject
Returns the start project setting.- Returns:
- the start project setting
-
getParamTabWpReportType
Returns the "workplace report type" setting.- Returns:
- the "workplace report type" setting
-
getParamTabWpRestrictExplorerView
Returns the "workplace restrict explorer view" setting.- Returns:
- the "workplace restrict explorer view" setting
-
getParamTabWpShowPublishNotification
Returns the "show publish notification" setting.- Returns:
"true"
if the "show publish notification" input is checked, otherwise ""
-
getParamTabWpSite
Returns the "start site" setting.- Returns:
- the "start site" setting
-
getParamTabWpTimeWarp
Get the "user timewparp" setting in form of a formatted date string.If no timewarp has been chosen, a value "-" will be returned.
- Returns:
- the "user timewarp" setting in form of a formatted date string
-
getParamTabWpUploadVariant
Returns the upload variant setting.- Returns:
"applet"
,"gwt"
or"basic"
-
getParamTabWpView
Returns the start view setting.- Returns:
- the start view setting
-
getProjectSelectOptions
public org.opencms.configuration.preferences.CmsBuiltinPreference.SelectOptions getProjectSelectOptions()Gets the project select options.- Returns:
- the project select options
-
getSiteSelectOptions
public org.opencms.configuration.preferences.CmsBuiltinPreference.SelectOptions getSiteSelectOptions()Gets the site select options.- Returns:
- the site select options
-
getTabParameterOrder
Description copied from class:CmsTabDialog
Returns the order of the parameter prefixes for each tab.For example, all parameters stored in tab 1 have the prefix "Tab1", i.e. the getter and setter methods must be getParamTab1MyParameterName().
To change the tab order, simply change the order in the String array and in the generated tab list.
- Specified by:
getTabParameterOrder
in classCmsTabDialog
- Returns:
- the ordered parameter prefix List
- See Also:
-
getTabs
Description copied from class:CmsTabDialog
Returns a list with localized Strings representing the names of the tabs.- Specified by:
getTabs
in classCmsTabDialog
- Returns:
- list with localized String for the tabs
- See Also:
-
getTimeWarpInt
Gets the timewarp parameter as a simple numeric string.- Returns:
- the timewarp parameter as a simple numeric string
-
getUserSettings
Gets the internal user settings object.- Returns:
- the user settings object
-
isChecked
Helper method to add the "checked" attribute to an input field.- Parameters:
paramValue
- the parameter value, if"true"
, the "checked" attribute will be returned- Returns:
- the "checked" attribute or an empty String
-
setParamNewPassword
Sets the new password value.- Parameters:
newPwd
- the new password value
-
setParamOldPassword
Sets the old password value.- Parameters:
oldPwd
- the old password value
-
setParamTabDiCopyFileMode
Sets the "copy file default" setting.- Parameters:
value
- the "copy file default" setting
-
setParamTabDiCopyFolderMode
Sets the "copy folder default" setting.- Parameters:
value
- the "copy folder default" setting
-
setParamTabDiDeleteFileMode
Sets the "delete file siblings default" setting.- Parameters:
value
- the "delete file siblings default" setting
-
setParamTabDiPermissionsExpandInherited
Sets the "expand inherited permissions" default setting.- Parameters:
value
- the "expand inherited permissions" default setting
-
setParamTabDiPermissionsExpandUser
Sets the "expand current users permissions" default setting.- Parameters:
value
- the "expand current users permissions" default setting
-
setParamTabDiPermissionsInheritOnFolder
Sets the "inherit permissions on folders" default setting.- Parameters:
value
- the "inherit permissions on folders" default setting
-
setParamTabDiPublishFileMode
Sets the "publish file siblings default" setting.- Parameters:
value
- the "publish file siblings default" setting
-
setParamTabDiShowLock
Sets the "display lock dialog" setting.- Parameters:
value
-"true"
to enable the "display lock dialog" setting, all others to disable
-
setParamTabEdButtonStyle
Sets the "editor button style" setting.- Parameters:
value
- a String representation of an int value to set the "editor button style" setting
-
setParamTabEdDirectEditButtonStyle
Sets the "direct edit button style" setting.- Parameters:
value
- a String representation of an int value to set the "direct edit button style" setting
-
setParamTabExButtonStyle
Sets the "explorer button style" setting.- Parameters:
value
- a String representation of an int value to set the "explorer button style" setting
-
setParamTabExFileDateCreated
Sets the "display file creation date" setting.- Parameters:
value
-"true"
to enable the "display file creation date" setting, all others to disable
-
setParamTabExFileDateExpired
Sets the "display file expired date" setting.- Parameters:
value
-"true"
to enable the "display file expired date" setting, all others to disable
-
setParamTabExFileDateLastModified
Sets the "display file last modification date" setting.- Parameters:
value
-"true"
to enable the "display file last modification date" setting, all others to disable
-
setParamTabExFileDateReleased
Sets the "display file released date" setting.- Parameters:
value
-"true"
to enable the "display file released date" setting, all others to disable
-
setParamTabExFileEntries
Sets the "explorer number of entries per page" setting.- Parameters:
value
- a String representation of an int value to set the "number of entries per page" setting
-
setParamTabExFileLockedBy
Sets the "display file locked by" setting.- Parameters:
value
-"true"
to enable the "display file locked by" setting, all others to disable
-
setParamTabExFilePermissions
Sets the "display file permissions" setting.- Parameters:
value
-"true"
to enable the "display file permissions" setting, all others to disable
-
setParamTabExFileSize
Sets the "display file size" setting.- Parameters:
value
-"true"
to enable the "display file size" setting, all others to disable
-
setParamTabExFileState
Sets the "display file state" setting.- Parameters:
value
-"true"
to enable the "display file state" setting, all others to disable
-
setParamTabExFileTitle
Sets the "display file title" setting.- Parameters:
value
-"true"
to enable the "display file title" setting, all others to disable
-
setParamTabExFileType
Sets the "display file type" setting.- Parameters:
value
-"true"
to enable the "display file type" setting, all others to disable
-
setParamTabExFileUserCreated
Sets the "display file created by" setting.- Parameters:
value
-"true"
to enable the "display file created by" setting, all others to disable
-
setParamTabExFileUserLastModified
Sets the "display file last modified by" setting.- Parameters:
value
-"true"
to enable the "display file last modified by" setting, all others to disable
-
setParamTabExWorkplaceSearchResult
Sets the "workplace search result style".- Parameters:
style
- the "workplace search result style" to set
-
setParamTabWpButtonStyle
Sets the "workplace button style" setting.- Parameters:
value
- a String representation of an int value to set the "workplace button style" setting
-
setParamTabWpFolder
Sets the "start folder" setting.- Parameters:
value
- the start folder to show in the explorer view
-
setParamTabWpLanguage
Sets the start language setting.- Parameters:
value
- the start language setting
-
setParamTabWpListAllProjects
Sets the "list all projects" flag.- Parameters:
value
-"true"
to enable the "list all project" feature, all others to disable
-
setParamTabWpProject
Sets the start project setting.- Parameters:
value
- the start project setting
-
setParamTabWpReportType
Sets the "workplace report type" setting.- Parameters:
value
- the "workplace report type" setting
-
setParamTabWpRestrictExplorerView
Sets the "workplace restrict explorer view" setting.- Parameters:
value
- the "workplace restrict explorer view" setting
-
setParamTabWpShowPublishNotification
Sets the "show publish notification" setting.- Parameters:
value
-"true"
to enable the "show publish notification" setting, all others to disable
-
setParamTabWpSite
Sets the "start site" setting.- Parameters:
value
- the start site to show in the explorer view
-
setParamTabWpTimeWarp
Sets the "user timewparp" setting.To delete a timewarp setting for the current user, provide
"-"
as value.- Parameters:
value
- a String representation of an date in the formate as required byCmsCalendarWidget.getCalendarDate(org.opencms.i18n.CmsMessages, String, boolean)
-
setParamTabWpUploadVariant
Sets the upload variant setting.- Parameters:
value
-"applet"
,"basic"
,"gwt"
,"true"
or"false"
-
setParamTabWpView
Sets the start view setting.- Parameters:
value
- the start view setting
-
setTimewarpInt
Sets the timewarp setting from a numeric string- Parameters:
timewarp
- a numeric string containing the number of milliseconds since the epoch
-
setUserSettings
Sets the user settings.- Parameters:
userSettings
- the user settings
-
updatePreferences
public void updatePreferences(org.opencms.file.CmsObject cms, javax.servlet.http.HttpServletRequest req) Updates the user preferences after changes have been made.- Parameters:
cms
- the current cms contextreq
- the current http request
-
checkRole
- Overrides:
checkRole
in classorg.opencms.workplace.CmsWorkplace
- See Also:
-
CmsWorkplace.checkRole()
-
initWorkplaceRequestValues
protected void initWorkplaceRequestValues(org.opencms.workplace.CmsWorkplaceSettings settings, javax.servlet.http.HttpServletRequest request) - Overrides:
initWorkplaceRequestValues
in classorg.opencms.workplace.CmsDialog
- See Also:
-
CmsWorkplace.initWorkplaceRequestValues(org.opencms.workplace.CmsWorkplaceSettings, javax.servlet.http.HttpServletRequest)
-
paramValues
Returns the values of all parameter methods of this workplace class instance.This overwrites the super method because of the possible dynamic editor selection entries.
- Overrides:
paramValues
in classorg.opencms.workplace.CmsWorkplace
- Returns:
- the values of all parameter methods of this workplace class instance
- See Also:
-
CmsWorkplace.paramValues()
-
CmsCalendarWidget.calendarIncludes(java.util.Locale)
, this is just here so that old JSP still work