Package org.xwiki.edit.script
Class AbstractTypedEditScriptService<D>
java.lang.Object
org.xwiki.edit.script.AbstractTypedEditScriptService<D>
- Type Parameters:
D
- the type of data edited by the editors targeted by this script service
- All Implemented Interfaces:
org.xwiki.script.service.ScriptService
- Direct Known Subclasses:
SyntaxContentEditScriptService
,XDOMEditScriptService
public abstract class AbstractTypedEditScriptService<D>
extends Object
implements org.xwiki.script.service.ScriptService
Base class for specialized edit script services that target specific types of editors.
- Since:
- 8.2RC1
- Version:
- $Id: ae59de75c9e3f9505575b1d0214a2d6e054f3038 $
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Type
getDefaultEditor
(String category) getDefaultEditorId
(String category) getEditors
(String category)
-
Constructor Details
-
AbstractTypedEditScriptService
public AbstractTypedEditScriptService()
-
-
Method Details
-
getDataType
- Returns:
- the type of data edited by the editors targeted by this script service
-
getEditors
- Returns:
- the list of editors that can edit the type of data bound to this script service
-
getEditors
- Parameters:
category
- the editor category- Returns:
- the list of editors that have the specified category and which can edit the type of data bound to this script service
-
getEditor
-
getDefaultEditor
- Returns:
- the configured default editor that can edit the type of data bound to this script service
-
getDefaultEditor
- Parameters:
category
- the editor category- Returns:
- the configured default editor that has the specified category and which can edit the type of data bound to this script service
-
getDefaultEditorId
- Returns:
- the id of the configured default editor that can edit the type of data bound to this script service
-
getDefaultEditorId
- Parameters:
category
- the editor category- Returns:
- the id of the configured default editor for the specified category and which can edit the type of data bound to this script service
-