Manages the global OpenCms workplace settings for all users.
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.
author: Andreas Zahner version: $Revision: 1.89 $ since: 6.0.0
Adds a menu rule set from the workplace configuration to the configured menu rules.
Parameters: menuRule - the menu rule to add
addPreEditorConditionDefinition
public void addPreEditorConditionDefinition(String resourceTypeName, String preEditorConditionDefinitionClassName)(Code)
Adds a condition definition class for a given resource type glass name that is triggered before opening the editor.
Parameters: resourceTypeName - the name of the resource type Parameters: preEditorConditionDefinitionClassName - full class name of the condition definition class
Creates a temporary file which is needed while working in an editor with preview option.
Parameters: cms - the cms context Parameters: resourceName - the name of the resource to copy Parameters: currentProjectId - the id of the project to work with the file name of the temporary file throws: CmsException - if something goes wrong
Initializes the workplace manager with the OpenCms system configuration.
Parameters: cms - an OpenCms context object that must have been initialized with "Admin" permissions throws: CmsRoleViolationException - if the provided OpenCms user context does not have CmsRole.WORKPLACE_MANAGER role permissions throws: CmsException - if something goes wrong
isDefaultPropertiesOnStructure
public boolean isDefaultPropertiesOnStructure()(Code)
Returns the default property editing mode on resources.
the default property editing mode on resources
isEnableAdvancedPropertyTabs
public boolean isEnableAdvancedPropertyTabs()(Code)
Returns if tabs in the advanced property dialog are enabled.
Sets the system-wide file view settings for the workplace.
Parameters: cms - the CmsObject for ensuring security constraints. Parameters: fileViewSettings - the system-wide file view settings for the workplace to set throws: CmsRoleViolationException - if the current user does not own the administrator role (CmsRole.ROOT_ADMIN)