|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opencms.workplace.editors.CmsWorkplaceEditorConfiguration
public class CmsWorkplaceEditorConfiguration
Single editor configuration object.
Holds all necessary information about an OpenCms editor which is stored in the "editor_configuration.xml" file in each editor folder.
Provides methods to get the editor information for the editor manager.
| Field Summary | |
|---|---|
static String |
DOCUMENT_NODE
Name of the root document node. |
protected static String |
N_AGENT
Name of the single user agent node. |
protected static String |
N_CLASS
Name of the resource type class node. |
protected static String |
N_LABEL
Name of the editor label node. |
protected static String |
N_MAPTO
Name of the resource type subnode mapto. |
protected static String |
N_NAME
Name of the resource type subnode name. |
protected static String |
N_RANKING
Name of the resource type subnode ranking. |
protected static String |
N_RESOURCETYPES
Name of the resourcetypes node. |
protected static String |
N_TYPE
Name of the resource type node. |
protected static String |
N_USERAGENTS
Name of the useragents node. |
protected static String |
N_WIDGETEDITOR
Name of the widgeteditor node. |
| Constructor Summary | |
|---|---|
CmsWorkplaceEditorConfiguration(byte[] xmlData,
String editorUri)
Constructor with xml data String. |
|
| Method Summary | |
|---|---|
List |
getBrowserPattern()
Returns the list of compiled browser patterns. |
String |
getEditorLabel()
Returns the editor label key used for the localized nice name. |
String |
getEditorUri()
Returns the editor workplace URI. |
String |
getMappingForResourceType(String resourceType)
Returns the mapping for the given resource type. |
float |
getRankingForResourceType(String resourceType)
Returns the ranking value for the given resource type. |
Map |
getResourceTypes()
Returns the valid resource types of the editor. |
List |
getUserAgentsRegEx()
Returns the valid user agents regular expressions of the editor. |
String |
getWidgetEditor()
Returns the widget editor class for rich text editing. |
boolean |
isValidConfiguration()
Returns if the current configuration is valid. |
boolean |
isWidgetEditor()
Returns if the editor is usable as a widget editor for rich text editing. |
boolean |
matchesBrowser(String currentBrowser)
Tests if the current browser is matching the configuration. |
boolean |
matchesResourceType(String resourceType)
Returns if the configuration is suitable for the given 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 DOCUMENT_NODE
protected static final String N_AGENT
protected static final String N_CLASS
protected static final String N_LABEL
protected static final String N_MAPTO
protected static final String N_NAME
protected static final String N_RANKING
protected static final String N_RESOURCETYPES
protected static final String N_TYPE
protected static final String N_USERAGENTS
protected static final String N_WIDGETEDITOR
| Constructor Detail |
|---|
public CmsWorkplaceEditorConfiguration(byte[] xmlData,
String editorUri)
xmlData - the XML data String containing the information about the editoreditorUri - the editor workplace URI| Method Detail |
|---|
public List getBrowserPattern()
public String getEditorLabel()
public String getEditorUri()
public String getMappingForResourceType(String resourceType)
resourceType - the resource type name to check
public float getRankingForResourceType(String resourceType)
resourceType - the current resource type
public Map getResourceTypes()
A single map item has the resource type name as key, the value is a String array with two entries:
public List getUserAgentsRegEx()
public String getWidgetEditor()
public boolean isValidConfiguration()
public boolean isWidgetEditor()
public boolean matchesBrowser(String currentBrowser)
currentBrowser - the users browser String to test
public boolean matchesResourceType(String resourceType)
resourceType - the resource type to check
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||