public final class CmsWorkplaceManager extends java.lang.Object implements I_CmsLocaleHandler, I_CmsEventListener
This class reads the settings from the "opencms.properties" and stores them in member variables. For each setting one or more get methods are provided.
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
DEFAULT_WORKPLACE_ENCODING
The default encoding for the workplace (UTF-8).
|
static java.lang.String |
PARAM_LOGIN_REQUESTED_RESOURCE
The id of the "requestedResource" parameter for the OpenCms login form.
|
static java.lang.String |
SESSION_WORKPLACE_SETTINGS
Key name for the session workplace settings.
|
EVENT_BEFORE_PUBLISH_PROJECT, EVENT_CLEAR_CACHES, EVENT_CLEAR_OFFLINE_CACHES, EVENT_CLEAR_ONLINE_CACHES, EVENT_CLEAR_PRINCIPAL_CACHES, EVENT_FLEX_CACHE_CLEAR, EVENT_FLEX_PURGE_JSP_REPOSITORY, EVENT_FULLSTATIC_EXPORT, EVENT_GROUP_MODIFIED, EVENT_LOGIN_USER, EVENT_OU_MODIFIED, EVENT_PROJECT_MODIFIED, EVENT_PROPERTY_DEFINITION_CREATED, EVENT_PROPERTY_DEFINITION_MODIFIED, EVENT_PROPERTY_MODIFIED, EVENT_PUBLISH_PROJECT, EVENT_REBUILD_SEARCHINDEXES, EVENT_RESOURCE_AND_PROPERTIES_MODIFIED, EVENT_RESOURCE_COPIED, EVENT_RESOURCE_CREATED, EVENT_RESOURCE_DELETED, EVENT_RESOURCE_MODIFIED, EVENT_RESOURCE_MOVED, EVENT_RESOURCES_AND_PROPERTIES_MODIFIED, EVENT_RESOURCES_MODIFIED, EVENT_SITEMAP_CHANGED, EVENT_UPDATE_EXPORTS, EVENT_USER_MODIFIED, KEY_CHANGE, KEY_DBCONTEXT, KEY_GROUP_ID, KEY_GROUP_NAME, KEY_INDEX_NAMES, KEY_OU_ID, KEY_OU_NAME, KEY_PROJECTID, KEY_PUBLISHID, KEY_PUBLISHLIST, KEY_REPORT, KEY_RESOURCE, KEY_RESOURCES, KEY_USER_ACTION, KEY_USER_ID, KEY_USER_NAME, LISTENERS_FOR_ALL_EVENTS, VALUE_GROUP_MODIFIED_ACTION_CREATE, VALUE_GROUP_MODIFIED_ACTION_DELETE, VALUE_GROUP_MODIFIED_ACTION_WRITE, VALUE_OU_MODIFIED_ACTION_CREATE, VALUE_OU_MODIFIED_ACTION_DELETE, VALUE_USER_MODIFIED_ACTION_ADD_USER_TO_GROUP, VALUE_USER_MODIFIED_ACTION_CREATE_USER, VALUE_USER_MODIFIED_ACTION_DELETE_USER, VALUE_USER_MODIFIED_ACTION_REMOVE_USER_FROM_GROUP, VALUE_USER_MODIFIED_ACTION_RESET_PASSWORD, VALUE_USER_MODIFIED_ACTION_SET_OU, VALUE_USER_MODIFIED_ACTION_WRITE_USER
构造器和说明 |
---|
CmsWorkplaceManager()
Creates a new instance for the workplace manager, will be called by the workplace configuration manager.
|
限定符和类型 | 方法和说明 |
---|---|
void |
addDialogHandler(I_CmsDialogHandler clazz)
Adds a dialog handler instance to the list of configured dialog handlers.
|
void |
addEditorCssHandler(java.lang.String editorCssHandlerClassName)
Adds an editor CSS handler class to the list of handlers.
|
void |
addEditorCssHandlerToHead(java.lang.String editorCssHandlerClassName)
Adds an editor CSS handler class at the first position of the list of handlers.
|
void |
addExplorerTypeSetting(CmsExplorerTypeSettings settings)
Adds an explorer type setting object to the list of type settings.
|
void |
addExplorerTypeSettings(CmsModule module)
Adds the list of explorer type settings from the given module.
|
void |
addExportPoint(java.lang.String uri,
java.lang.String destination)
Adds newly created export point to the workplace configuration.
|
void |
addLabeledFolder(java.lang.String uri)
Adds a folder to the list of labeled folders.
|
void |
addLocalizedFolder(java.lang.String uri)
Adds a new folder to the list of localized workplace folders.
|
void |
addMenuRule(CmsMenuRule menuRule)
Adds a menu rule set from the workplace configuration to the configured menu rules.
|
void |
addPreEditorConditionDefinition(I_CmsPreEditorActionDefinition preEditorCondition)
Adds an initialized condition definition class that is triggered before opening the editor.
|
void |
addPreEditorConditionDefinition(java.lang.String resourceTypeName,
java.lang.String preEditorConditionDefinitionClassName)
Adds a condition definition class for a given resource type name that is triggered before opening the editor.
|
void |
addSynchronizeExcludePattern(java.lang.String pattern)
Adds a pattern to be excluded in VFS synchronization.
|
boolean |
autoLockResources()
Returns if the autolock resources feature is enabled.
|
void |
cmsEvent(CmsEvent event)
Implements the event listener of this class.
|
java.lang.String |
createTempFile(CmsObject cms,
java.lang.String resourceName,
CmsUUID currentProjectId)
Creates a temporary file which is needed while working in an editor with preview option.
|
void |
flushMessageCache()
Flushes the cached workplace messages.
|
java.lang.String |
getAcaciaUnlock()
Gets the value of the acacia-unlock configuration option (null if not set explicitly).
|
java.lang.String |
getCategoryFolder()
Returns the name of the local category folder(s).
|
CmsWorkplaceCustomFoot |
getCustomFoot()
Returns the customized workplace foot.
|
CmsExplorerTypeAccess |
getDefaultAccess()
Gets the access object of the type settings.
|
java.util.Locale |
getDefaultLocale()
Returns the Workplace default locale.
|
CmsDefaultUserSettings |
getDefaultUserSettings()
Returns the Workplace default user settings.
|
java.util.Map<java.lang.String,I_CmsDialogHandler> |
getDialogHandler()
Returns all instantiated dialog handlers for the workplace.
|
I_CmsDialogHandler |
getDialogHandler(java.lang.String key)
Returns the instantiated dialog handler class for the key or null, if there is no mapping for the key.
|
I_CmsDirectEditProvider |
getDirectEditProvider()
Returns a new instance of the configured direct edit provider.
|
I_CmsEditorActionHandler |
getEditorActionHandler()
Returns the instantiated editor action handler class.
|
java.util.List<I_CmsEditorCssHandler> |
getEditorCssHandlers()
Returns the instantiated editor CSS handler classes.
|
CmsEditorDisplayOptions |
getEditorDisplayOptions()
Returns the instantiated editor display option class.
|
I_CmsEditorHandler |
getEditorHandler()
Returns the instantiated editor handler class.
|
java.lang.String |
getEncoding()
Returns the configured workplace encoding.
|
CmsExplorerTypeSettings |
getExplorerTypeSetting(java.lang.String type)
Returns the explorer type settings for the specified resource type.
|
java.util.List<CmsExplorerTypeSettings> |
getExplorerTypeSettings()
Returns the list of explorer type settings.
|
java.util.Set<CmsExportPoint> |
getExportPoints()
Returns the set of configured export points for the workplace.
|
long |
getFileBytesMaxUploadSize(CmsObject cms)
Returns the value (in bytes) for the maximum file upload size of the current user.
|
int |
getFileMaxUploadSize()
Returns the value (in kb) for the maximum file upload size.
|
CmsRfsFileViewer |
getFileViewSettings()
Returns the system-wide file view settings for the workplace.
|
java.util.Map<java.lang.String,A_CmsAjaxGallery> |
getGalleries()
Returns a collection of all available galleries.
|
CmsGallerySearchScope |
getGalleryDefaultScope()
Returns the gallery default scope.
|
java.lang.String |
getGalleryDefaultScopeString()
Gets the configured gallery default scope as a string.
|
I_CmsGroupNameTranslation |
getGroupNameTranslation()
Returns the object used for translating group names.
|
java.lang.String |
getGroupTranslationClass()
Returns the configured class name for translating group names.
|
CmsI18nInfo |
getI18nInfo(javax.servlet.http.HttpServletRequest req,
CmsUser user,
CmsProject project,
java.lang.String resource)
Returns the i18n information to use in the request context.
|
java.util.List<java.lang.String> |
getLabelSiteFolders()
Returns a list of site folders which generate labeled links.
|
java.util.List<java.util.Locale> |
getLocales()
Returns the list of available workplace locales, sorted ascending.
|
java.util.List<java.lang.String> |
getLocalizedFolders()
Returns the configured list of localized workplace folders.
|
CmsMenuRule |
getMenuRule(java.lang.String ruleName)
Returns the menu rule set with the given name.
|
java.util.List<CmsMenuRule> |
getMenuRules()
Returns the configured menu rule sets.
|
java.util.Map<java.lang.String,CmsMenuRule> |
getMenuRulesMap()
Returns the configured menu rule sets as Map.
|
CmsWorkplaceMessages |
getMessages(java.util.Locale locale)
Returns the
CmsWorkplaceMessages for the given locale. |
CmsExplorerContextMenu |
getMultiContextMenu()
Returns the configured multi context menu to use in the Explorer view.
|
I_CmsPreEditorActionDefinition |
getPreEditorConditionDefinition(I_CmsResourceType resourceType)
Returns the condition definition for the given resource type that is triggered before opening the editor.
|
java.util.List<I_CmsPreEditorActionDefinition> |
getPreEditorConditionDefinitions()
Returns the condition definitions for the different resource
types which are triggered before opening the editor.
|
I_CmsRepositoryFolderHandler |
getRepositoryFolderHandler()
Returns the repository folder handler.
|
java.util.ArrayList<java.util.regex.Pattern> |
getSynchronizeExcludePatterns()
Returns Regex patterns that should be excluded from synchronization.
|
CmsUUID |
getTempFileProjectId()
Returns the id of the temporary file project required by the editors.
|
CmsToolManager |
getToolManager()
Returns the tool manager.
|
java.lang.String |
getUploadHook(CmsObject cms,
java.lang.String uploadFolder)
Gets the upload hook URI which should be opened for an upload to a given folder.
|
CmsWorkplaceUserInfoManager |
getUserInfoManager()
Returns the user additional information configuration Manager.
|
java.lang.String |
getUserListModeString()
Returns the user list mode as a string.
|
java.util.List<CmsWorkplaceView> |
getViews()
Returns the map of configured workplace views.
|
CmsWorkplaceEditorManager |
getWorkplaceEditorManager()
Returns the instantiated workplace editor manager class.
|
java.util.Locale |
getWorkplaceLocale(CmsObject cms)
Returns the workplace locale from the current user's settings.
|
void |
initHandler(CmsObject cms)
Will be called during system startup.
|
void |
initialize(CmsObject cms)
Initializes the workplace manager with the OpenCms system configuration.
|
boolean |
isDefaultPropertiesOnStructure()
Returns the default property editing mode on resources.
|
boolean |
isEnableAdvancedPropertyTabs()
Returns if tabs in the advanced property dialog are enabled.
|
boolean |
isKeepAlive()
Returns true if "keep alive" mode is active.
|
java.lang.Boolean |
isKeepAlive(boolean useDefault)
Returns true if the session should be kept alive.
|
static boolean |
isWorkplaceUser(javax.servlet.http.HttpServletRequest req)
Returns true if the provided request was done by a Workplace user.
|
boolean |
isXmlContentAutoCorrect()
Returns if XML content is automatically corrected when opened with the editor.
|
boolean |
lazyUserListsEnabled()
Returns if lazy user lists are enabled.
|
void |
removeExplorerTypeSettings(CmsModule module)
Removes the list of explorer type settings from the given module.
|
void |
setAcaciaUnlock(java.lang.String value)
Sets the value of the acacia-unlock configuration option.
|
void |
setAutoLock(java.lang.String value)
Sets if the autolock resources feature is enabled.
|
void |
setCategoryFolder(java.lang.String categoryFolder)
Sets the name of the local category folder(s).
|
void |
setCustomFoot(CmsWorkplaceCustomFoot footCustom)
Sets the customized workplace foot.
|
void |
setDefaultAccess(CmsExplorerTypeAccess access)
Sets the access object of the type settings.
|
void |
setDefaultLocale(java.lang.String locale)
Sets the Workplace default locale.
|
void |
setDefaultPropertiesOnStructure(java.lang.String defaultPropertiesOnStructure)
Sets the default property editing mode on resources.
|
void |
setDefaultUserSettings(CmsDefaultUserSettings defaultUserSettings)
Sets the Workplace default user settings.
|
void |
setDirectEditProvider(I_CmsDirectEditProvider clazz)
Sets the direct edit provider.
|
void |
setEditorAction(I_CmsEditorActionHandler clazz)
Sets the editor action class.
|
void |
setEditorDisplayOptions(CmsEditorDisplayOptions clazz)
Sets the editor display option class.
|
void |
setEditorHandler(I_CmsEditorHandler clazz)
Sets the editor handler class.
|
void |
setEnableAdvancedPropertyTabs(java.lang.String enableAdvancedPropertyTabs)
Sets if tabs in the advanced property dialog are enabled.
|
void |
setFileMaxUploadSize(java.lang.String value)
Sets the value (in kb) for the maximum file upload size.
|
void |
setFileViewSettings(CmsObject cms,
CmsRfsFileViewer fileViewSettings)
Sets the system-wide file view settings for the workplace.
|
void |
setGalleryDefaultScope(java.lang.String galleryDefaultScope)
Sets the gallery default scope.
|
void |
setGroupTranslationClass(java.lang.String translationClassName)
Sets the group translation class name.
|
void |
setKeepAlive(java.lang.String keepAlive)
Sets the "keep alive" mode.
|
void |
setMultiContextMenu(CmsExplorerContextMenu multiContextMenu)
Sets the configured multi context menu to use in the Explorer view.
|
void |
setRepositoryFolderHandler(I_CmsRepositoryFolderHandler clazz)
Sets the repository folder handler.
|
void |
setToolManager(CmsToolManager toolManager)
Sets the tool Manager object.
|
void |
setUserInfoManager(CmsWorkplaceUserInfoManager userInfoManager)
Sets the user additional information configuration manager.
|
void |
setUserListMode(java.lang.String mode)
Sets the user list mode.
|
void |
setUserManagementEnabled(java.lang.String value)
Controls if the user/group icon in the administration view should be shown.
|
void |
setXmlContentAutoCorrect(java.lang.String xmlContentAutoCorrect)
Sets the auto correction of XML contents when they are opened with the editor.
|
boolean |
shouldAcaciaUnlock()
Returns true if the Acacia editor in standalone mode should automatically unlock resources.
|
boolean |
showUserGroupIcon()
Returns if the user/group icon in the administration view should be shown.
|
boolean |
supportsLazyUserLists()
Returns true if lazy user lists should be used.
|
java.lang.String |
translateGroupName(java.lang.String groupName,
boolean keepOu)
Translates a group name using the configured
I_CmsGroupNameTranslation . |
public static final java.lang.String DEFAULT_WORKPLACE_ENCODING
public static final java.lang.String PARAM_LOGIN_REQUESTED_RESOURCE
public static final java.lang.String SESSION_WORKPLACE_SETTINGS
public CmsWorkplaceManager()
public static boolean isWorkplaceUser(javax.servlet.http.HttpServletRequest req)
req
- the request to checkpublic void addDialogHandler(I_CmsDialogHandler clazz)
clazz
- the instantiated dialog handler to addpublic void addEditorCssHandler(java.lang.String editorCssHandlerClassName)
editorCssHandlerClassName
- full class name of the css handler classpublic void addEditorCssHandlerToHead(java.lang.String editorCssHandlerClassName)
editorCssHandlerClassName
- full class name of the css handler classpublic void addExplorerTypeSetting(CmsExplorerTypeSettings settings)
settings
- the explorer type settingspublic void addExplorerTypeSettings(CmsModule module)
module
- the module witch contains the explorer type settings to addpublic void addExportPoint(java.lang.String uri, java.lang.String destination)
uri
- the export point uridestination
- the export point destinationpublic void addLabeledFolder(java.lang.String uri)
uri
- the folder uri to addpublic void addLocalizedFolder(java.lang.String uri)
uri
- a new folder to add to the list of localized workplace folderspublic void addMenuRule(CmsMenuRule menuRule)
menuRule
- the menu rule to addpublic void addPreEditorConditionDefinition(I_CmsPreEditorActionDefinition preEditorCondition)
preEditorCondition
- the initialized condition definition classpublic void addPreEditorConditionDefinition(java.lang.String resourceTypeName, java.lang.String preEditorConditionDefinitionClassName)
resourceTypeName
- the name of the resource typepreEditorConditionDefinitionClassName
- full class name of the condition definition classpublic void addSynchronizeExcludePattern(java.lang.String pattern)
pattern
- a java regex to applied on the file namepublic boolean autoLockResources()
public void cmsEvent(CmsEvent event)
cmsEvent
在接口中 I_CmsEventListener
event
- CmsEvent that has occurredI_CmsEventListener.cmsEvent(org.opencms.main.CmsEvent)
public java.lang.String createTempFile(CmsObject cms, java.lang.String resourceName, CmsUUID currentProjectId) throws CmsException
Note: This method is synchronized to avoid rare issues that might be caused by double requests fired by some browser/OS combinations.
cms
- the cms contextresourceName
- the name of the resource to copycurrentProjectId
- the id of the project to work withCmsException
- if something goes wrongpublic void flushMessageCache()
public java.lang.String getAcaciaUnlock()
public java.lang.String getCategoryFolder()
public CmsWorkplaceCustomFoot getCustomFoot()
public CmsExplorerTypeAccess getDefaultAccess()
public java.util.Locale getDefaultLocale()
public CmsDefaultUserSettings getDefaultUserSettings()
public java.util.Map<java.lang.String,I_CmsDialogHandler> getDialogHandler()
public I_CmsDialogHandler getDialogHandler(java.lang.String key)
key
- the key whose associated value is to be returnedpublic I_CmsDirectEditProvider getDirectEditProvider()
public I_CmsEditorActionHandler getEditorActionHandler()
public java.util.List<I_CmsEditorCssHandler> getEditorCssHandlers()
public CmsEditorDisplayOptions getEditorDisplayOptions()
public I_CmsEditorHandler getEditorHandler()
public java.lang.String getEncoding()
public CmsExplorerTypeSettings getExplorerTypeSetting(java.lang.String type)
type
- the resource type for which the settings are requiredpublic java.util.List<CmsExplorerTypeSettings> getExplorerTypeSettings()
These settings provide information for the new resource dialog and the context menu appearance.
public java.util.Set<CmsExportPoint> getExportPoints()
public long getFileBytesMaxUploadSize(CmsObject cms)
cms
- the initialized CmsObjectpublic int getFileMaxUploadSize()
public CmsRfsFileViewer getFileViewSettings()
Note that this instance may not modified (invocation of setters) directly or a
will be thrown.CmsRuntimeException
It has to be cloned first and then may be written back to the workplace settings using
method setFileViewSettings(CmsObject, org.opencms.util.CmsRfsFileViewer)
.
public java.util.Map<java.lang.String,A_CmsAjaxGallery> getGalleries()
The Map has the gallery type name as key and an instance of the gallery class (not completely initialized) as value.
public CmsGallerySearchScope getGalleryDefaultScope()
public java.lang.String getGalleryDefaultScopeString()
public I_CmsGroupNameTranslation getGroupNameTranslation()
public java.lang.String getGroupTranslationClass()
public CmsI18nInfo getI18nInfo(javax.servlet.http.HttpServletRequest req, CmsUser user, CmsProject project, java.lang.String resource)
I_CmsLocaleHandler
getI18nInfo
在接口中 I_CmsLocaleHandler
req
- the current http requestuser
- the current userproject
- the current projectresource
- the URI of the requested resource (with full site root added)I_CmsLocaleHandler.getI18nInfo(javax.servlet.http.HttpServletRequest, org.opencms.file.CmsUser, org.opencms.file.CmsProject, java.lang.String)
public java.util.List<java.lang.String> getLabelSiteFolders()
public java.util.List<java.util.Locale> getLocales()
Please note: Be careful not to modify the returned Set as it is not a clone.
public java.util.List<java.lang.String> getLocalizedFolders()
public CmsMenuRule getMenuRule(java.lang.String ruleName)
If no rule set with the specified name is found, null
is returned.
ruleName
- the name of the rule set to getpublic java.util.List<CmsMenuRule> getMenuRules()
public java.util.Map<java.lang.String,CmsMenuRule> getMenuRulesMap()
public CmsWorkplaceMessages getMessages(java.util.Locale locale)
CmsWorkplaceMessages
for the given locale.The workplace messages are a collection of resource bundles, containing the messages for all OpenCms core bundles and of all initialized modules.
Please note that the message objects are cached internally. The returned message object should therefore never be modified directly in any way.
locale
- the locale to get the messages forCmsWorkplaceMessages
for the given localepublic CmsExplorerContextMenu getMultiContextMenu()
public I_CmsPreEditorActionDefinition getPreEditorConditionDefinition(I_CmsResourceType resourceType)
resourceType
- the resource typepublic java.util.List<I_CmsPreEditorActionDefinition> getPreEditorConditionDefinitions()
public I_CmsRepositoryFolderHandler getRepositoryFolderHandler()
public java.util.ArrayList<java.util.regex.Pattern> getSynchronizeExcludePatterns()
public CmsUUID getTempFileProjectId()
public CmsToolManager getToolManager()
public java.lang.String getUploadHook(CmsObject cms, java.lang.String uploadFolder)
This method will return null if no upload hook should be used for the given upload folder.
The API for this upload hook is as follows: The upload hook will be called with the following parameters: resources (required): a comma separated list of the structure ids of the uploaded resources if this is omitted closelink (optional): a link which should be opened once the upload hook has finished whatever it is doing
cms
- the current CMS contextuploadFolder
- the folder for which the upload hook should be foundpublic CmsWorkplaceUserInfoManager getUserInfoManager()
public java.lang.String getUserListModeString()
public java.util.List<CmsWorkplaceView> getViews()
public CmsWorkplaceEditorManager getWorkplaceEditorManager()
public java.util.Locale getWorkplaceLocale(CmsObject cms)
cms
- the current cms objectpublic void initHandler(CmsObject cms)
I_CmsLocaleHandler
initHandler
在接口中 I_CmsLocaleHandler
cms
- an initialized cms permission context for VFS accessI_CmsLocaleHandler.initHandler(org.opencms.file.CmsObject)
public void initialize(CmsObject cms) throws CmsException, CmsRoleViolationException
cms
- an OpenCms context object that must have been initialized with "Admin" permissionsCmsRoleViolationException
- if the provided OpenCms user context does
not have CmsRole.WORKPLACE_MANAGER
role permissionsCmsException
- if something goes wrongpublic boolean isDefaultPropertiesOnStructure()
public boolean isEnableAdvancedPropertyTabs()
true
if tabs should be enabled, otherwise false
public boolean isKeepAlive()
public java.lang.Boolean isKeepAlive(boolean useDefault)
useDefault
- if true, the default value will be returned if the "keep alive" setting is not explicitly configuredpublic boolean isXmlContentAutoCorrect()
true
if XML content is automatically corrected when opened with the editor, otherwise false
public boolean lazyUserListsEnabled()
true
if lazy user lists are enabledpublic void removeExplorerTypeSettings(CmsModule module)
module
- the module witch contains the explorer type settings to removepublic void setAcaciaUnlock(java.lang.String value)
value
- the value of the acacia-unlock configuration optionpublic void setAutoLock(java.lang.String value)
value
- "true"
if the autolock resources feature is enabled, otherwise falsepublic void setCategoryFolder(java.lang.String categoryFolder)
categoryFolder
- the name of the local category folder(s)public void setCustomFoot(CmsWorkplaceCustomFoot footCustom)
footCustom
- the customized workplace footpublic void setDefaultAccess(CmsExplorerTypeAccess access)
access
- access objectpublic void setDefaultLocale(java.lang.String locale)
locale
- the locale to setpublic void setDefaultPropertiesOnStructure(java.lang.String defaultPropertiesOnStructure)
defaultPropertiesOnStructure
- the default property editing mode on resourcespublic void setDefaultUserSettings(CmsDefaultUserSettings defaultUserSettings)
defaultUserSettings
- the user settings to setpublic void setDirectEditProvider(I_CmsDirectEditProvider clazz)
clazz
- the direct edit provider to setpublic void setEditorAction(I_CmsEditorActionHandler clazz)
clazz
- the editor action class to setpublic void setEditorDisplayOptions(CmsEditorDisplayOptions clazz)
clazz
- the editor display option class to setpublic void setEditorHandler(I_CmsEditorHandler clazz)
clazz
- the editor handler class to setpublic void setEnableAdvancedPropertyTabs(java.lang.String enableAdvancedPropertyTabs)
enableAdvancedPropertyTabs
- true if tabs should be enabled, otherwise falsepublic void setFileMaxUploadSize(java.lang.String value)
value
- the value (in kb) for the maximum file upload sizepublic void setFileViewSettings(CmsObject cms, CmsRfsFileViewer fileViewSettings) throws CmsRoleViolationException
cms
- the CmsObject for ensuring security constraints.fileViewSettings
- the system-wide file view settings for the workplace to setCmsRoleViolationException
- if the current user does not own the administrator role (CmsRole.ROOT_ADMIN
)public void setGalleryDefaultScope(java.lang.String galleryDefaultScope)
galleryDefaultScope
- the gallery default scopepublic void setGroupTranslationClass(java.lang.String translationClassName)
translationClassName
- the group translation class namepublic void setKeepAlive(java.lang.String keepAlive)
keepAlive
- the keep-alive modepublic void setMultiContextMenu(CmsExplorerContextMenu multiContextMenu)
multiContextMenu
- the configured multi context menu to use in the Explorer viewpublic void setRepositoryFolderHandler(I_CmsRepositoryFolderHandler clazz)
clazz
- the repository folder handlerpublic void setToolManager(CmsToolManager toolManager)
toolManager
- the tool Manager object to setpublic void setUserInfoManager(CmsWorkplaceUserInfoManager userInfoManager)
userInfoManager
- the manager to setpublic void setUserListMode(java.lang.String mode)
mode
- the user list modepublic void setUserManagementEnabled(java.lang.String value)
value
- "true"
if the user/group icon in the administration view should be shown, otherwise falsepublic void setXmlContentAutoCorrect(java.lang.String xmlContentAutoCorrect)
xmlContentAutoCorrect
- if "true", the content will be corrected without notification, otherwise a confirmation is neededpublic boolean shouldAcaciaUnlock()
public boolean showUserGroupIcon()
public boolean supportsLazyUserLists()
public java.lang.String translateGroupName(java.lang.String groupName, boolean keepOu)
I_CmsGroupNameTranslation
.groupName
- the group namekeepOu
- if true, the OU will be appended to the translated name