Package org.opencms.workplace.editors
Class CmsEditorHandler
java.lang.Object
org.opencms.workplace.editors.CmsEditorHandler
- All Implemented Interfaces:
I_CmsEditorHandler
This editor handler class returns the editor URI depending on various factors.
Editor selection criteria:
- the user preferences
- the users current browser
- the resource type
- Since:
- 6.0.0
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetEditorUri
(String resource, CmsJspActionElement jsp) Returns the editor URI which will be used for the selected resource in the OpenCms VFS to the editor selector class.getEditorUri
(CmsObject cms, String resourceType, String userAgent, boolean loadDefault) Returns the editor URI which will be used for the selected resource type.
-
Constructor Details
-
CmsEditorHandler
public CmsEditorHandler()
-
-
Method Details
-
getEditorUri
public String getEditorUri(CmsObject cms, String resourceType, String userAgent, boolean loadDefault) Description copied from interface:I_CmsEditorHandler
Returns the editor URI which will be used for the selected resource type.- Specified by:
getEditorUri
in interfaceI_CmsEditorHandler
- Parameters:
cms
- the cms contextresourceType
- the resource type nameuserAgent
- the user agent headerloadDefault
-true
to force the default editor- Returns:
- the absolute path to the editor
- See Also:
-
getEditorUri
Description copied from interface:I_CmsEditorHandler
Returns the editor URI which will be used for the selected resource in the OpenCms VFS to the editor selector class.- Specified by:
getEditorUri
in interfaceI_CmsEditorHandler
- Parameters:
resource
- the selected resourcejsp
- the CmsJspActionElement- Returns:
- the absolute path to the editor that will be displayed or
null
if resource is not editable - Throws:
CmsException
- if something goes wrong- See Also:
-