Class CmsUserSettings
- Direct Known Subclasses:
CmsDefaultUserSettings
- Since:
- 6.0.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classEnumeration class for workplace search result styles.static enumA enum for the different upload variants. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringKey for additional info address.static final StringKey for additional info city.static final StringKey for additional info of resources that were confirmed by the user.static final StringKey for additional info address.static final StringKey for additional info default group.static final StringKey for additional info address.static final StringKey for additional info explorer settings.static final StringKey for additional info institution.static final StringKey for last password change additional info.static final StringKey for last user data check additional info.static final StringAdditional info which indicates, that a password was reset by an admin.static final StringKey for additional info flags.static final StringKey for additional info start settings.static final StringKey for additional info time warp.static final StringKey for additional info upload applet client folder path.static final StringKey for additional info address.static final intFlag for displaying the date created column.static final intFlag for displaying the date expired column.static final intFlag for displaying the changed column.static final intFlag for displaying the date released column.static final intFlag for displaying the locked column.static final intFlag for displaying the name column.static final intFlag for displaying the navigation text column.static final intFlag for displaying the access column.static final intFlag for displaying the size column.static final intFlag for displaying the state column.static final intFlag for displaying the title column.static final intFlag for displaying the file type column.static final intFlag for displaying the owner column.static final intFlag for displaying the user who last modified column.static final StringIdentifier for the login user agreement accepted information.static final StringPreference for setting which workplace to open on startup.static final StringIdentifier prefix for all keys in the user additional info table.static final StringPrefix for additional info key for user defined preferences.static final StringIdentifier for the synchronize setting key.static final StringIdentifier for the synchronize setting key.static final StringIdentifier for the synchronize setting key.static final StringIdentifier for the synchronize setting key.static final StringPreference value for new workplace.static final StringPreference value for new workplace. -
Constructor Summary
ConstructorsConstructorDescriptionCreates 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 StringgetAdditionalPreference(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.booleanReturns the default setting for expanding inherited permissions in the dialog.booleanReturns the default setting for expanding the users permissions in the dialog.booleanReturns the default setting for inheriting permissions on folders.booleanReturns the default setting for direct publishing.booleanDetermines if the export part of the secure/export dialog should be shown.booleanDetermines if the lock dialog should be shown.intReturns the style of the direct edit buttons of the user.intReturns the style of the editor buttons of the user.Returns the editor settings of the user.intReturns the style of the explorer buttons of the user.intReturns the number of displayed files per page of the user.Returns the explorerFileEntryOptions.intReturns the explorer start settings.booleanReturns if all projects should be listed or only the ones in the current ou.Returns the locale of the user.Returnsif the "create index page" check box in the new folder dialog should be initially be checked.Boolean.TRUEReturnsif the "edit properties" check box in the new folder dialog should be initially be checked.Boolean.TRUEgetPreferredEditor(String resourceType) Returns the preferred editor for the given resource type of the user.Returns the appearance of the "publish project" button.booleanSets if the explorer view is restricted to the defined site and folder.booleanReturnstrueif the file upload button should be shown orfalseotherwise.booleanReturns if the publish notifications should be shown or not.Returnsif the resource type selection dialog should be shown in the file upload process (non - applet version).Boolean.TRUEReturns 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.longReturns the current users time warp time, orCmsContextInfo.CURRENT_TIMEif 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.intReturns 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.voidInitializes the user settings with the given users setting parameters.voidSaves the changed settings of the user to the usersCmsUser.getAdditionalInfo()map.voidsetAdditionalPreference(String name, String value) Sets an additional preference value.static voidsetAdditionalPreference(CmsObject cms, String key, String value) Sets a configured preference.voidsetAdditionalPreferencesFrom(CmsUserSettings userSettings) Sets this settings object's additional preferences to that of another one.voidSets the default copy mode when copying a file of the user.voidSets the default copy mode when copying a folder of the user.voidSets the default setting for file deletion.voidsetDialogExpandInheritedPermissions(boolean dialogShowInheritedPermissions) Sets the default setting for expanding inherited permissions in the dialog.voidsetDialogExpandUserPermissions(boolean dialogShowUserPermissions) Sets the default setting for expanding the users permissions in the dialog.voidsetDialogPermissionsInheritOnFolder(boolean dialogPermissionsInheritOnFolder) Sets the default setting for inheriting permissions on folders.voidsetDialogPublishSiblings(boolean publishSiblings) Sets the default setting for direct publishing.voidsetDialogShowExportSettings(boolean show) Sets if the export setting part of the secure/export dialog should be shown.voidsetDialogShowLock(boolean show) Sets if the lock dialog should be shown.voidsetDirectEditButtonStyle(int style) Sets the style of the direct edit buttons of the user.voidsetEditorButtonStyle(int style) Sets the style of the editor buttons of the user.voidsetEditorSettings(Map<String, String> settings) Sets the editor settings of the user.voidsetExplorerButtonStyle(int style) Sets the style of the explorer buttons of the user.voidsetExplorerFileEntries(int entries) Sets the number of displayed files per page of the user.voidsetExplorerFileEntryOptions(String explorerFileEntryOptions) Sets the explorerFileEntryOptions.voidsetExplorerSettings(int settings) Sets the explorer start settings.voidsetListAllProjects(boolean listAllProjects) Sets if all the projects should be shown or not.voidSets the locale of the user.voidsetNewFolderCreateIndexPage(Boolean setting) Sets if the "create index page" check box in the new folder dialog should be initially be checked or not.voidsetNewFolderEditPropertes(Boolean setting) Sets if the "edit properties" check box in the new folder dialog should be initially be checked or not.voidsetPreferredEditor(String resourceType, String editorUri) Sets the preferred editor for the given resource type of the user.voidsetPublishButtonAppearance(String publishButtonAppearance) Sets the appearance of the "publish project" button.voidsetRestrictExplorerView(boolean restrict) Sets if the explorer view is restricted to the defined site and folder.voidsetShowExplorerFileDateCreated(boolean show) Sets if the file creation date should be shown in explorer view.voidsetShowExplorerFileDateExpired(boolean show) Sets if the file expire date should be shown in explorer view.voidsetShowExplorerFileDateLastModified(boolean show) Sets if the file last modified date state should be shown in explorer view.voidsetShowExplorerFileDateReleased(boolean show) Sets if the file release date should be shown in explorer view.voidsetShowExplorerFileLockedBy(boolean show) Sets if the file locked by should be shown in explorer view.voidsetShowExplorerFileNavText(boolean show) Sets if the file navtext should be shown in explorer view.voidsetShowExplorerFilePermissions(boolean show) Sets if the file permissions should be shown in explorer view.voidsetShowExplorerFileSize(boolean show) Sets if the file size should be shown in explorer view.voidsetShowExplorerFileState(boolean show) Sets if the file state should be shown in explorer view.voidsetShowExplorerFileTitle(boolean show) Sets if the file title should be shown in explorer view.voidsetShowExplorerFileType(boolean show) Sets if the file type should be shown in explorer view.voidsetShowExplorerFileUserCreated(boolean show) Sets if the file creator should be shown in explorer view.voidsetShowExplorerFileUserLastModified(boolean show) Sets if the file last modified by should be shown in explorer view.voidsetShowFileUploadButton(boolean flag) Controls whether to display a file upload icon or not.voidsetShowPublishNotification(boolean showPublishNotification) Sets if the publish notifications should be shown or not.voidsetShowUploadTypeDialog(Boolean showUploadTypeDialog) Sets if the resource type selection dialog should be shown in the file upload process (non - applet version) or not.voidsetStartFolder(String folder) Sets the start folder of the user.voidsetStartGalleriesSetting(Map<String, String> settings) Sets the start galleries settings of the user.voidsetStartGallery(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.voidsetStartProject(String project) Sets the start project of the user.voidsetStartSite(String site) Sets the start site of the user.voidsetStartView(String view) Sets the current start view of the user.voidsetSynchronizeSettings(CmsSynchronizeSettings synchronizeSettings) Sets the (optional) workplace synchronize settings.voidsetTimeWarp(long timewarp) Sets the user specific custom "time warp" time.voidsetUploadAppletClientFolder(String uploadAppletClientFolder) Sets the folder path of the upload applet on the client machine.voidsetUploadVariant(String uploadVariant) Sets the upload variant.voidsetUploadVariant(CmsUserSettings.UploadVariant uploadVariant) Sets the upload variant.voidSets the current user for the settings.voidsetWorkplaceButtonStyle(int style) Sets the style of the workplace buttons of the user.voidsetWorkplaceReportType(String type) Sets the type of the report (simple or extended) of the user.voidsetWorkplaceSearchIndexName(String workplaceSearchIndexName) Sets the name of the search index to use in the workplace.voidsetWorkplaceSearchViewStyle(CmsUserSettings.CmsSearchResultStyle workplaceSearchViewStyle) Sets the workplace search result list view style.booleanDetermines if the file creation date should be shown in explorer view.booleanDetermines if the file date expired should be shown in explorer view.booleanDetermines if the file last modified date should be shown in explorer view.booleanDetermines if the file date released should be shown in explorer view.booleanDetermines if the file locked by should be shown in explorer view.booleanDetermines if the file navigation text should be shown in explorer view.booleanDetermines if the file permissions should be shown in explorer view.booleanDetermines if the file size should be shown in explorer view.booleanDetermines if the file state should be shown in explorer view.booleanDetermines if the file title should be shown in explorer view.booleanDetermines if the file type should be shown in explorer view.booleanDetermines if the file creator should be shown in explorer view.booleanDetermines 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
Returnsif 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
Returnsif 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_AUTOorCmsDefaultUserSettings.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
Returnstrueif the file upload button should be shown orfalseotherwise.- 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
Returnsif 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_TIMEif this feature is disabled and the current time is used for each user request.- Returns:
- the current users time warp time, or
CmsContextInfo.CURRENT_TIMEif 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_AUTOorCmsDefaultUserSettings.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-trueorfalseto 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_TIMEto 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
-