Class CmsUserSettings
- Direct Known Subclasses:
CmsDefaultUserSettings
- Since:
- 6.0.0
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Enumeration class for workplace search result styles.static enum
A enum for the different upload variants. -
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Key for additional info address.static final String
Key for additional info city.static final String
Key for additional info of resources that were confirmed by the user.static final String
Key for additional info address.static final String
Key for additional info default group.static final String
Key for additional info address.static final String
Key for additional info explorer settings.static final String
Key for additional info institution.static final String
Key for last password change additional info.static final String
Key for last user data check additional info.static final String
Additional info which indicates, that a password was reset by an admin.static final String
Key for additional info flags.static final String
Key for additional info start settings.static final String
Key for additional info time warp.static final String
Key for additional info upload applet client folder path.static final String
Key for additional info address.static final int
Flag for displaying the date created column.static final int
Flag for displaying the date expired column.static final int
Flag for displaying the changed column.static final int
Flag for displaying the date released column.static final int
Flag for displaying the locked column.static final int
Flag for displaying the name column.static final int
Flag for displaying the navigation text column.static final int
Flag for displaying the access column.static final int
Flag for displaying the size column.static final int
Flag for displaying the state column.static final int
Flag for displaying the title column.static final int
Flag for displaying the file type column.static final int
Flag for displaying the owner column.static final int
Flag for displaying the user who last modified column.static final String
Identifier for the login user agreement accepted information.static final String
Preference for setting which workplace to open on startup.static final String
Identifier prefix for all keys in the user additional info table.static final String
Prefix for additional info key for user defined preferences.static final String
Identifier for the synchronize setting key.static final String
Identifier for the synchronize setting key.static final String
Identifier for the synchronize setting key.static final String
Identifier for the synchronize setting key.static final String
Preference value for new workplace.static final String
Preference value for new workplace. -
Constructor Summary
ConstructorDescriptionCreates an empty new user settings object.CmsUserSettings
(CmsObject cms) Creates a user settings object with initialized settings of the current user.CmsUserSettings
(CmsUser user) Creates a user settings object with initialized settings of the user. -
Method Summary
Modifier and TypeMethodDescriptiongetAdditionalPreference
(String name, boolean useDefault) Gets the value for a user defined preference.static String
getAdditionalPreference
(CmsObject cms, String key, boolean useDefault) Gets a configured preference.Gets the default copy mode when copying a file of the user.Gets the default copy mode when copying a folder of the user.Returns the default setting for file deletion.boolean
Returns the default setting for expanding inherited permissions in the dialog.boolean
Returns the default setting for expanding the users permissions in the dialog.boolean
Returns the default setting for inheriting permissions on folders.boolean
Returns the default setting for direct publishing.boolean
Determines if the export part of the secure/export dialog should be shown.boolean
Determines if the lock dialog should be shown.int
Returns the style of the direct edit buttons of the user.int
Returns the style of the editor buttons of the user.Returns the editor settings of the user.int
Returns the style of the explorer buttons of the user.int
Returns the number of displayed files per page of the user.Returns the explorerFileEntryOptions.int
Returns the explorer start settings.boolean
Returns if all projects should be listed or only the ones in the current ou.Returns the locale of the user.Returns
if the "create index page" check box in the new folder dialog should be initially be checked.Boolean.TRUE
Returns
if the "edit properties" check box in the new folder dialog should be initially be checked.Boolean.TRUE
getPreferredEditor
(String resourceType) Returns the preferred editor for the given resource type of the user.Returns the appearance of the "publish project" button.boolean
Sets if the explorer view is restricted to the defined site and folder.boolean
Returnstrue
if the file upload button should be shown orfalse
otherwise.boolean
Returns if the publish notifications should be shown or not.Returns
if the resource type selection dialog should be shown in the file upload process (non - applet version).Boolean.TRUE
Returns the start folder of the user.The start galleries settings of the user.getStartGallery
(String galleryType) Returns the path to the start gallery of the user.getStartGallery
(String galleryType, CmsObject cms) Returns the root site path to the start gallery of the user or the constant CmsPreferences.INPUT_DEFAULT.Returns the start project of the user.Returns the start site of the user.Returns the current start view of the user.Returns the (optional) workplace synchronize settings.long
Returns the current users time warp time, orCmsContextInfo.CURRENT_TIME
if this feature is disabled and the current time is used for each user request.Returns the folder path of the upload applet on the client machine.Returns the uploadVariant.getUser()
Returns the current user for the settings.int
Returns the style of the workplace buttons of the user.Returns the type of the report (simple or extended) of the user.Returns the name of the search index to use in the workplace.Returns the workplace search result list view style.void
Initializes the user settings with the given users setting parameters.void
Saves the changed settings of the user to the usersCmsUser.getAdditionalInfo()
map.void
setAdditionalPreference
(String name, String value) Sets an additional preference value.static void
setAdditionalPreference
(CmsObject cms, String key, String value) Sets a configured preference.void
setAdditionalPreferencesFrom
(CmsUserSettings userSettings) Sets this settings object's additional preferences to that of another one.void
Sets the default copy mode when copying a file of the user.void
Sets the default copy mode when copying a folder of the user.void
Sets the default setting for file deletion.void
setDialogExpandInheritedPermissions
(boolean dialogShowInheritedPermissions) Sets the default setting for expanding inherited permissions in the dialog.void
setDialogExpandUserPermissions
(boolean dialogShowUserPermissions) Sets the default setting for expanding the users permissions in the dialog.void
setDialogPermissionsInheritOnFolder
(boolean dialogPermissionsInheritOnFolder) Sets the default setting for inheriting permissions on folders.void
setDialogPublishSiblings
(boolean publishSiblings) Sets the default setting for direct publishing.void
setDialogShowExportSettings
(boolean show) Sets if the export setting part of the secure/export dialog should be shown.void
setDialogShowLock
(boolean show) Sets if the lock dialog should be shown.void
setDirectEditButtonStyle
(int style) Sets the style of the direct edit buttons of the user.void
setEditorButtonStyle
(int style) Sets the style of the editor buttons of the user.void
setEditorSettings
(Map<String, String> settings) Sets the editor settings of the user.void
setExplorerButtonStyle
(int style) Sets the style of the explorer buttons of the user.void
setExplorerFileEntries
(int entries) Sets the number of displayed files per page of the user.void
setExplorerFileEntryOptions
(String explorerFileEntryOptions) Sets the explorerFileEntryOptions.void
setExplorerSettings
(int settings) Sets the explorer start settings.void
setListAllProjects
(boolean listAllProjects) Sets if all the projects should be shown or not.void
Sets the locale of the user.void
setNewFolderCreateIndexPage
(Boolean setting) Sets if the "create index page" check box in the new folder dialog should be initially be checked or not.void
setNewFolderEditPropertes
(Boolean setting) Sets if the "edit properties" check box in the new folder dialog should be initially be checked or not.void
setPreferredEditor
(String resourceType, String editorUri) Sets the preferred editor for the given resource type of the user.void
setPublishButtonAppearance
(String publishButtonAppearance) Sets the appearance of the "publish project" button.void
setRestrictExplorerView
(boolean restrict) Sets if the explorer view is restricted to the defined site and folder.void
setShowExplorerFileDateCreated
(boolean show) Sets if the file creation date should be shown in explorer view.void
setShowExplorerFileDateExpired
(boolean show) Sets if the file expire date should be shown in explorer view.void
setShowExplorerFileDateLastModified
(boolean show) Sets if the file last modified date state should be shown in explorer view.void
setShowExplorerFileDateReleased
(boolean show) Sets if the file release date should be shown in explorer view.void
setShowExplorerFileLockedBy
(boolean show) Sets if the file locked by should be shown in explorer view.void
setShowExplorerFileNavText
(boolean show) Sets if the file navtext should be shown in explorer view.void
setShowExplorerFilePermissions
(boolean show) Sets if the file permissions should be shown in explorer view.void
setShowExplorerFileSize
(boolean show) Sets if the file size should be shown in explorer view.void
setShowExplorerFileState
(boolean show) Sets if the file state should be shown in explorer view.void
setShowExplorerFileTitle
(boolean show) Sets if the file title should be shown in explorer view.void
setShowExplorerFileType
(boolean show) Sets if the file type should be shown in explorer view.void
setShowExplorerFileUserCreated
(boolean show) Sets if the file creator should be shown in explorer view.void
setShowExplorerFileUserLastModified
(boolean show) Sets if the file last modified by should be shown in explorer view.void
setShowFileUploadButton
(boolean flag) Controls whether to display a file upload icon or not.void
setShowPublishNotification
(boolean showPublishNotification) Sets if the publish notifications should be shown or not.void
setShowUploadTypeDialog
(Boolean showUploadTypeDialog) Sets if the resource type selection dialog should be shown in the file upload process (non - applet version) or not.void
setStartFolder
(String folder) Sets the start folder of the user.void
setStartGalleriesSetting
(Map<String, String> settings) Sets the start galleries settings of the user.void
setStartGallery
(String galleryType, String galleryUri) Sets the path to the start gallery of the user or removes the entry from user settings if no path is null.void
setStartProject
(String project) Sets the start project of the user.void
setStartSite
(String site) Sets the start site of the user.void
setStartView
(String view) Sets the current start view of the user.void
setSynchronizeSettings
(CmsSynchronizeSettings synchronizeSettings) Sets the (optional) workplace synchronize settings.void
setTimeWarp
(long timewarp) Sets the user specific custom "time warp" time.void
setUploadAppletClientFolder
(String uploadAppletClientFolder) Sets the folder path of the upload applet on the client machine.void
setUploadVariant
(String uploadVariant) Sets the upload variant.void
setUploadVariant
(CmsUserSettings.UploadVariant uploadVariant) Sets the upload variant.void
Sets the current user for the settings.void
setWorkplaceButtonStyle
(int style) Sets the style of the workplace buttons of the user.void
setWorkplaceReportType
(String type) Sets the type of the report (simple or extended) of the user.void
setWorkplaceSearchIndexName
(String workplaceSearchIndexName) Sets the name of the search index to use in the workplace.void
setWorkplaceSearchViewStyle
(CmsUserSettings.CmsSearchResultStyle workplaceSearchViewStyle) Sets the workplace search result list view style.boolean
Determines if the file creation date should be shown in explorer view.boolean
Determines if the file date expired should be shown in explorer view.boolean
Determines if the file last modified date should be shown in explorer view.boolean
Determines if the file date released should be shown in explorer view.boolean
Determines if the file locked by should be shown in explorer view.boolean
Determines if the file navigation text should be shown in explorer view.boolean
Determines if the file permissions should be shown in explorer view.boolean
Determines if the file size should be shown in explorer view.boolean
Determines if the file state should be shown in explorer view.boolean
Determines if the file title should be shown in explorer view.boolean
Determines if the file type should be shown in explorer view.boolean
Determines if the file creator should be shown in explorer view.boolean
Determines if the file last modified by should be shown in explorer view.
-
Field Details
-
ADDITIONAL_INFO_ADDRESS
Key for additional info address.- See Also:
-
ADDITIONAL_INFO_CITY
Key for additional info city.- See Also:
-
ADDITIONAL_INFO_CONFIRMED_RESOURCES
Key for additional info of resources that were confirmed by the user.- See Also:
-
ADDITIONAL_INFO_COUNTRY
Key for additional info address.- See Also:
-
ADDITIONAL_INFO_DEFAULTGROUP
Key for additional info default group.- See Also:
-
ADDITIONAL_INFO_DESCRIPTION
Key for additional info address.- See Also:
-
ADDITIONAL_INFO_EXPLORERSETTINGS
Key for additional info explorer settings.- See Also:
-
ADDITIONAL_INFO_INSTITUTION
Key for additional info institution.- See Also:
-
ADDITIONAL_INFO_LAST_PASSWORD_CHANGE
Key for last password change additional info.- See Also:
-
ADDITIONAL_INFO_LAST_USER_DATA_CHECK
Key for last user data check additional info.- See Also:
-
ADDITIONAL_INFO_PASSWORD_RESET
Additional info which indicates, that a password was reset by an admin.- See Also:
-
ADDITIONAL_INFO_PREFERENCES
Key for additional info flags.- See Also:
-
ADDITIONAL_INFO_STARTSETTINGS
Key for additional info start settings.- See Also:
-
ADDITIONAL_INFO_TIMEWARP
Key for additional info time warp.- See Also:
-
ADDITIONAL_INFO_UPLOADAPPLET_CLIENTFOLDER
Key for additional info upload applet client folder path.- See Also:
-
ADDITIONAL_INFO_ZIPCODE
Key for additional info address.- See Also:
-
FILELIST_DATE_CREATED
Flag for displaying the date created column.- See Also:
-
FILELIST_DATE_EXPIRED
Flag for displaying the date expired column.- See Also:
-
FILELIST_DATE_LASTMODIFIED
Flag for displaying the changed column.- See Also:
-
FILELIST_DATE_RELEASED
Flag for displaying the date released column.- See Also:
-
FILELIST_LOCKEDBY
Flag for displaying the locked column.- See Also:
-
FILELIST_NAME
Flag for displaying the name column.- See Also:
-
FILELIST_NAVTEXT
Flag for displaying the navigation text column.- See Also:
-
FILELIST_PERMISSIONS
Flag for displaying the access column.- See Also:
-
FILELIST_SIZE
Flag for displaying the size column.- See Also:
-
FILELIST_STATE
Flag for displaying the state column.- See Also:
-
FILELIST_TITLE
Flag for displaying the title column.- See Also:
-
FILELIST_TYPE
Flag for displaying the file type column.- See Also:
-
FILELIST_USER_CREATED
Flag for displaying the owner column.- See Also:
-
FILELIST_USER_LASTMODIFIED
Flag for displaying the user who last modified column.- See Also:
-
LOGIN_USERAGREEMENT_ACCEPTED
Identifier for the login user agreement accepted information.- See Also:
-
PREF_WORKPLACE_MODE
Preference for setting which workplace to open on startup.- See Also:
-
PREFERENCES
Identifier prefix for all keys in the user additional info table.- See Also:
-
PREFERENCES_ADDITIONAL_PREFIX
Prefix for additional info key for user defined preferences.- See Also:
-
SYNC_DESTINATION
Identifier for the synchronize setting key.- See Also:
-
SYNC_ENABLED
Identifier for the synchronize setting key.- See Also:
-
SYNC_SETTINGS
Identifier for the synchronize setting key.- See Also:
-
SYNC_VFS_LIST
Identifier for the synchronize setting key.- See Also:
-
WORKPLACE_MODE_NEW
Preference value for new workplace.- See Also:
-
WORKPLACE_MODE_OLD
Preference value for new workplace.- See Also:
-
-
Constructor Details
-
CmsUserSettings
public CmsUserSettings()Creates an empty new user settings object. -
CmsUserSettings
Creates a user settings object with initialized settings of the current user.- Parameters:
cms
- the OpenCms context
-
CmsUserSettings
Creates a user settings object with initialized settings of the user.Some default settings will not be set, if no cms object is given.
- Parameters:
user
- the current CmsUser- See Also:
-
-
Method Details
-
getAdditionalPreference
Gets a configured preference.- Parameters:
cms
- the cms contextkey
- the settings keyuseDefault
- true if we want the default value if no value is configured- Returns:
- the preference value
-
setAdditionalPreference
Sets a configured preference.- Parameters:
cms
- the Cms contextkey
- the setting namevalue
- the value
-
getAdditionalPreference
Gets the value for a user defined preference.- Parameters:
name
- the name of the preferenceuseDefault
- true if the default value should be returned in case the preference is not set- Returns:
- the preference value
-
getDialogCopyFileMode
Gets the default copy mode when copying a file of the user.- Returns:
- the default copy mode when copying a file of the user
-
getDialogCopyFolderMode
Gets the default copy mode when copying a folder of the user.- Returns:
- the default copy mode when copying a folder of the user
-
getDialogDeleteFileMode
Returns the default setting for file deletion.- Returns:
- the default setting for file deletion
-
getDialogExpandInheritedPermissions
Returns the default setting for expanding inherited permissions in the dialog.- Returns:
- true if inherited permissions should be expanded, otherwise false
-
getDialogExpandUserPermissions
Returns the default setting for expanding the users permissions in the dialog.- Returns:
- true if the users permissions should be expanded, otherwise false
-
getDialogPermissionsInheritOnFolder
Returns the default setting for inheriting permissions on folders.- Returns:
- true if permissions should be inherited on folders, otherwise false
-
getDialogPublishSiblings
Returns the default setting for direct publishing.- Returns:
- the default setting for direct publishing: true if siblings should be published, otherwise false
-
getDialogShowExportSettings
Determines if the export part of the secure/export dialog should be shown.- Returns:
- true if the export dialog is shown, otherwise false
-
getDialogShowLock
Determines if the lock dialog should be shown.- Returns:
- true if the lock dialog is shown, otherwise false
-
getDirectEditButtonStyle
Returns the style of the direct edit buttons of the user.- Returns:
- the style of the direct edit buttons of the user
-
getEditorButtonStyle
Returns the style of the editor buttons of the user.- Returns:
- the style of the editor buttons of the user
-
getEditorSettings
Returns the editor settings of the user.- Returns:
- the editor settings of the user
-
getExplorerButtonStyle
Returns the style of the explorer buttons of the user.- Returns:
- the style of the explorer buttons of the user
-
getExplorerFileEntries
Returns the number of displayed files per page of the user.- Returns:
- the number of displayed files per page of the user
-
getExplorerFileEntryOptions
Returns the explorerFileEntryOptions.- Returns:
- the explorerFileEntryOptions
-
getExplorerSettings
Returns the explorer start settings.- Returns:
- the explorer start settings
-
getListAllProjects
Returns if all projects should be listed or only the ones in the current ou.- Returns:
- true if all projects should be listed, otherwise false
-
getLocale
Returns the locale of the user.- Returns:
- the locale of the user
-
getNewFolderCreateIndexPage
Returns
if the "create index page" check box in the new folder dialog should be initially be checked.Boolean.TRUE
- Returns:
if the "create index page" check box in the new folder dialog should be initially be checked.Boolean.TRUE
-
getNewFolderEditProperties
Returns
if the "edit properties" check box in the new folder dialog should be initially be checked.Boolean.TRUE
- Returns:
if the "edit properties" check box in the new folder dialog should be initially be checked.Boolean.TRUE
-
getPreferredEditor
Returns the preferred editor for the given resource type of the user.- Parameters:
resourceType
- the resource type- Returns:
- the preferred editor for the resource type or null, if not specified
-
getPublishButtonAppearance
Returns the appearance of the "publish project" button.This can be either
CmsDefaultUserSettings.PUBLISHBUTTON_SHOW_ALWAYS
,CmsDefaultUserSettings.PUBLISHBUTTON_SHOW_AUTO
orCmsDefaultUserSettings.PUBLISHBUTTON_SHOW_NEVER
.- Returns:
- the appearance of the "publish project" button
-
getRestrictExplorerView
Sets if the explorer view is restricted to the defined site and folder.- Returns:
- true if the explorer view is restricted, otherwise false
-
getShowFileUploadButton
Returnstrue
if the file upload button should be shown orfalse
otherwise.- Returns:
- the showFileUpload
-
getShowPublishNotification
Returns if the publish notifications should be shown or not.- Returns:
- true if the publish notifications should be shown, otherwise false
-
getShowUploadTypeDialog
Returns
if the resource type selection dialog should be shown in the file upload process (non - applet version).Boolean.TRUE
- Returns:
if the resource type selection dialog should be shown in the file upload process (non - applet version).Boolean.TRUE
-
getStartFolder
Returns the start folder of the user.- Returns:
- the start folder of the user
-
getStartGalleriesSettings
The start galleries settings of the user.- Returns:
- the start galleries settings of the user
-
getStartGallery
Returns the path to the start gallery of the user.- Parameters:
galleryType
- the type of the gallery- Returns:
- the path to the start gallery or null, if no key
-
getStartGallery
Returns the root site path to the start gallery of the user or the constant CmsPreferences.INPUT_DEFAULT.- Parameters:
galleryType
- the type of the gallerycms
- Cms object- Returns:
- the root site path to the start gallery or the default key, null if "not set"
-
getStartProject
Returns the start project of the user.- Returns:
- the start project of the user
-
getStartSite
Returns the start site of the user.- Returns:
- the start site of the user
-
getStartView
Returns the current start view of the user.- Returns:
- the current start view of the user
-
getSynchronizeSettings
Returns the (optional) workplace synchronize settings.- Returns:
- the (optional) workplace synchronize settings
-
getTimeWarp
Returns the current users time warp time, orCmsContextInfo.CURRENT_TIME
if this feature is disabled and the current time is used for each user request.- Returns:
- the current users time warp time, or
CmsContextInfo.CURRENT_TIME
if this feature is disabled
-
getUploadAppletClientFolder
Returns the folder path of the upload applet on the client machine.- Returns:
- the folder path of the upload applet on the client machine
-
getUploadVariant
Returns the uploadVariant.- Returns:
- the uploadVariant
-
getUser
Returns the current user for the settings.- Returns:
- the CmsUser
-
getWorkplaceButtonStyle
Returns the style of the workplace buttons of the user.- Returns:
- the style of the workplace buttons of the user
-
getWorkplaceReportType
Returns the type of the report (simple or extended) of the user.- Returns:
- the type of the report (simple or extended) of the user
-
getWorkplaceSearchIndexName
Returns the name of the search index to use in the workplace.- Returns:
- the name of the search index to use in the workplace
-
getWorkplaceSearchViewStyle
Returns the workplace search result list view style.- Returns:
- the workplace search result list view style
-
init
Initializes the user settings with the given users setting parameters.- Parameters:
user
- the current CmsUser
-
save
Saves the changed settings of the user to the usersCmsUser.getAdditionalInfo()
map.If the given CmsObject is
null
, the additional user infos are only updated in memory and not saved into the database.- Parameters:
cms
- the CmsObject needed to write the user to the db- Throws:
CmsException
- if user cannot be written to the db
-
setAdditionalPreference
Sets an additional preference value.- Parameters:
name
- the additional preference namevalue
- the preference value
-
setAdditionalPreferencesFrom
Sets this settings object's additional preferences to that of another one.- Parameters:
userSettings
- the user settings
-
setDialogCopyFileMode
Sets the default copy mode when copying a file of the user.- Parameters:
mode
- the default copy mode when copying a file of the user
-
setDialogCopyFolderMode
Sets the default copy mode when copying a folder of the user.- Parameters:
mode
- the default copy mode when copying a folder of the user
-
setDialogDeleteFileMode
Sets the default setting for file deletion.- Parameters:
mode
- the default setting for file deletion
-
setDialogExpandInheritedPermissions
Sets the default setting for expanding inherited permissions in the dialog.- Parameters:
dialogShowInheritedPermissions
- the default setting for expanding inherited permissions in the dialog
-
setDialogExpandUserPermissions
Sets the default setting for expanding the users permissions in the dialog.- Parameters:
dialogShowUserPermissions
- the default setting for expanding the users permissions in the dialog
-
setDialogPermissionsInheritOnFolder
Sets the default setting for inheriting permissions on folders.- Parameters:
dialogPermissionsInheritOnFolder
- the default setting for inheriting permissions on folders
-
setDialogPublishSiblings
Sets the default setting for direct publishing.- Parameters:
publishSiblings
- the default setting for direct publishing: true if siblings should be published, otherwise false
-
setDialogShowExportSettings
Sets if the export setting part of the secure/export dialog should be shown.- Parameters:
show
- true if the export dialog should be shown, otherwise false
-
setDialogShowLock
Sets if the lock dialog should be shown.- Parameters:
show
- true if the lock dialog should be shown, otherwise false
-
setDirectEditButtonStyle
Sets the style of the direct edit buttons of the user.- Parameters:
style
- the style of the direct edit buttons of the user
-
setEditorButtonStyle
Sets the style of the editor buttons of the user.- Parameters:
style
- the style of the editor buttons of the user
-
setEditorSettings
Sets the editor settings of the user.- Parameters:
settings
- the editor settings of the user
-
setExplorerButtonStyle
Sets the style of the explorer buttons of the user.- Parameters:
style
- the style of the explorer buttons of the user
-
setExplorerFileEntries
Sets the number of displayed files per page of the user.- Parameters:
entries
- the number of displayed files per page of the user
-
setExplorerFileEntryOptions
Sets the explorerFileEntryOptions.- Parameters:
explorerFileEntryOptions
- the explorerFileEntryOptions to set
-
setExplorerSettings
Sets the explorer start settings.- Parameters:
settings
- explorer start settings to use
-
setListAllProjects
Sets if all the projects should be shown or not.- Parameters:
listAllProjects
- true if all the projects should be shown, otherwise false
-
setLocale
Sets the locale of the user.- Parameters:
locale
- the locale of the user
-
setNewFolderCreateIndexPage
Sets if the "create index page" check box in the new folder dialog should be initially be checked or not.- Parameters:
setting
- if the "create index page" check box in the new folder dialog should be initially be checked or not.
-
setNewFolderEditPropertes
Sets if the "edit properties" check box in the new folder dialog should be initially be checked or not.- Parameters:
setting
- if the "edit properties" check box in the new folder dialog should be initially be checked or not.
-
setPreferredEditor
Sets the preferred editor for the given resource type of the user.- Parameters:
resourceType
- the resource typeeditorUri
- the editor URI
-
setPublishButtonAppearance
Sets the appearance of the "publish project" button.Allowed values are either
CmsDefaultUserSettings.PUBLISHBUTTON_SHOW_ALWAYS
,CmsDefaultUserSettings.PUBLISHBUTTON_SHOW_AUTO
orCmsDefaultUserSettings.PUBLISHBUTTON_SHOW_NEVER
.- Parameters:
publishButtonAppearance
- the appearance of the "publish project" button
-
setRestrictExplorerView
Sets if the explorer view is restricted to the defined site and folder.- Parameters:
restrict
- true if the explorer view is restricted, otherwise false
-
setShowExplorerFileDateCreated
Sets if the file creation date should be shown in explorer view.- Parameters:
show
- true if the file creation date should be shown, otherwise false
-
setShowExplorerFileDateExpired
Sets if the file expire date should be shown in explorer view.- Parameters:
show
- true if the file expire date should be shown, otherwise false
-
setShowExplorerFileDateLastModified
Sets if the file last modified date state should be shown in explorer view.- Parameters:
show
- true if the file last modified date should be shown, otherwise false
-
setShowExplorerFileDateReleased
Sets if the file release date should be shown in explorer view.- Parameters:
show
- true if the file release date should be shown, otherwise false
-
setShowExplorerFileLockedBy
Sets if the file locked by should be shown in explorer view.- Parameters:
show
- true if the file locked by should be shown, otherwise false
-
setShowExplorerFilePermissions
Sets if the file permissions should be shown in explorer view.- Parameters:
show
- true if the file permissions should be shown, otherwise false
-
setShowExplorerFileSize
Sets if the file size should be shown in explorer view.- Parameters:
show
- true if the file size should be shown, otherwise false
-
setShowExplorerFileState
Sets if the file state should be shown in explorer view.- Parameters:
show
- true if the state size should be shown, otherwise false
-
setShowExplorerFileTitle
Sets if the file title should be shown in explorer view.- Parameters:
show
- true if the file title should be shown, otherwise false
-
setShowExplorerFileType
Sets if the file type should be shown in explorer view.- Parameters:
show
- true if the file type should be shown, otherwise false
-
setShowExplorerFileUserCreated
Sets if the file creator should be shown in explorer view.- Parameters:
show
- true if the file creator should be shown, otherwise false
-
setShowExplorerFileUserLastModified
Sets if the file last modified by should be shown in explorer view.- Parameters:
show
- true if the file last modified by should be shown, otherwise false
-
setShowFileUploadButton
Controls whether to display a file upload icon or not.- Parameters:
flag
-true
orfalse
to flag the use of the file upload button
-
setShowPublishNotification
Sets if the publish notifications should be shown or not.- Parameters:
showPublishNotification
- true if the publish notifications should be shown, otherwise false
-
setShowUploadTypeDialog
Sets if the resource type selection dialog should be shown in the file upload process (non - applet version) or not.- Parameters:
showUploadTypeDialog
- if the resource type selection dialog should be shown in the file upload process (non - applet version)
-
setStartFolder
Sets the start folder of the user.- Parameters:
folder
- the start folder of the user
-
setStartGalleriesSetting
Sets the start galleries settings of the user.- Parameters:
settings
- the start galleries setting of the user
-
setStartGallery
Sets the path to the start gallery of the user or removes the entry from user settings if no path is null.- Parameters:
galleryType
- the type of the gallerygalleryUri
- the gallery URI
-
setStartProject
Sets the start project of the user.- Parameters:
project
- the start project name of the user
-
setStartSite
Sets the start site of the user.- Parameters:
site
- the start site of the user
-
setStartView
Sets the current start view of the user.- Parameters:
view
- the current start view of the user
-
setSynchronizeSettings
Sets the (optional) workplace synchronize settings.- Parameters:
synchronizeSettings
- the (optional) workplace synchronize settings to set
-
setTimeWarp
Sets the user specific custom "time warp" time.Use
CmsContextInfo.CURRENT_TIME
to disable this feature, ie. enable the current time for each new request.If this value is set, auto time warping will be disabled: Clicking on a resource that has not been released at the given time or is already expired at the given time will not be shown - an error message will pop up ("out of time window").
- Parameters:
timewarp
- the time warp time to set
-
setUploadAppletClientFolder
Sets the folder path of the upload applet on the client machine.- Parameters:
uploadAppletClientFolder
- the folder path of the upload applet on the client machine
-
setUploadVariant
Sets the upload variant.- Parameters:
uploadVariant
- the upload variant as String
-
setUploadVariant
Sets the upload variant.- Parameters:
uploadVariant
- the upload variant
-
setUser
Sets the current user for the settings.- Parameters:
user
- the CmsUser
-
setWorkplaceButtonStyle
Sets the style of the workplace buttons of the user.- Parameters:
style
- the style of the workplace buttons of the user
-
setWorkplaceReportType
Sets the type of the report (simple or extended) of the user.- Parameters:
type
- the type of the report (simple or extended) of the user
-
setWorkplaceSearchIndexName
Sets the name of the search index to use in the workplace.- Parameters:
workplaceSearchIndexName
- the name of the search index to use in the workplace to set
-
setWorkplaceSearchViewStyle
public void setWorkplaceSearchViewStyle(CmsUserSettings.CmsSearchResultStyle workplaceSearchViewStyle) Sets the workplace search result list view style.- Parameters:
workplaceSearchViewStyle
- the workplace search result list view style to set
-
showExplorerFileDateCreated
Determines if the file creation date should be shown in explorer view.- Returns:
- true if the file creation date should be shown, otherwise false
-
showExplorerFileDateExpired
Determines if the file date expired should be shown in explorer view.- Returns:
- true if the file date expired should be shown, otherwise false
-
showExplorerFileDateLastModified
Determines if the file last modified date should be shown in explorer view.- Returns:
- true if the file last modified date should be shown, otherwise false
-
showExplorerFileDateReleased
Determines if the file date released should be shown in explorer view.- Returns:
- true if the file date released should be shown, otherwise false
-
showExplorerFileLockedBy
Determines if the file locked by should be shown in explorer view.- Returns:
- true if the file locked by should be shown, otherwise false
-
showExplorerFilePermissions
Determines if the file permissions should be shown in explorer view.- Returns:
- true if the file permissions should be shown, otherwise false
-
showExplorerFileSize
Determines if the file size should be shown in explorer view.- Returns:
- true if the file size should be shown, otherwise false
-
showExplorerFileState
Determines if the file state should be shown in explorer view.- Returns:
- true if the file state should be shown, otherwise false
-
showExplorerFileTitle
Determines if the file title should be shown in explorer view.- Returns:
- true if the file title should be shown, otherwise false
-
showExplorerFileType
Determines if the file type should be shown in explorer view.- Returns:
- true if the file type should be shown, otherwise false
-
showExplorerFileUserCreated
Determines if the file creator should be shown in explorer view.- Returns:
- true if the file creator should be shown, otherwise false
-
showExplorerFileUserLastModified
Determines if the file last modified by should be shown in explorer view.- Returns:
- true if the file last modified by should be shown, otherwise false
-