|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opencms.workplace.editors.CmsWorkplaceEditorManager
public class CmsWorkplaceEditorManager
The editor manager stores information about all available configured editors in OpenCms.
This class provides methods and constants to select the right editor according to:
| Field Summary | |
|---|---|
static String |
EDITOR_CONFIGURATION_FILENAME
The filename of the editor configuration XML file. |
static String |
EDITOR_FILENAME
The filename of the editor JSP. |
| Constructor Summary | |
|---|---|
CmsWorkplaceEditorManager(CmsObject cms)
Creates a new editor manager. |
|
| Method Summary | |
|---|---|
Map |
getConfigurableEditors()
Returns a map of configurable editors for the workplace preferences dialog. |
protected String |
getDefaultEditorUri(CmsRequestContext context,
String resourceType,
String userAgent)
Returns the default editor URI for the current resource type. |
protected List |
getEditorConfigurations()
Returns the editor configuration objects. |
protected String |
getEditorUri(CmsRequestContext context,
String resourceType,
String userAgent)
Returns the editor URI for the current resource type. |
String |
getWidgetEditor(CmsRequestContext context,
String userAgent)
Returns the editor URI for the current resource type. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String EDITOR_CONFIGURATION_FILENAME
public static final String EDITOR_FILENAME
| Constructor Detail |
|---|
public CmsWorkplaceEditorManager(CmsObject cms)
cms - an OpenCms context object that must have been initialized with "Admin" permissions| Method Detail |
|---|
public Map getConfigurableEditors()
This map has the resource type name as key, the value is a sorted map with the ranking as key and a CmsWorkplaceEditorConfiguration object as value.
public String getWidgetEditor(CmsRequestContext context,
String userAgent)
context - the request contextuserAgent - the user agent String that identifies the browser
protected String getDefaultEditorUri(CmsRequestContext context,
String resourceType,
String userAgent)
context - the request contextresourceType - the current resource typeuserAgent - the user agent String that identifies the browser
protected List getEditorConfigurations()
protected String getEditorUri(CmsRequestContext context,
String resourceType,
String userAgent)
context - the request contextresourceType - the current resource typeuserAgent - the user agent String that identifies the browser
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||