Package org.xwiki.edit.script
Class EditScriptService
java.lang.Object
org.xwiki.edit.script.EditScriptService
- All Implemented Interfaces:
org.xwiki.script.service.ScriptService
@Component
@Singleton
@Named("edit")
public class EditScriptService
extends Object
implements org.xwiki.script.service.ScriptService
Script oriented edit APIs.
- Since:
- 8.2RC1
- Version:
- $Id: 1767758f170254463b30985e0cf56e46f2cc8ba8 $
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<S extends org.xwiki.script.service.ScriptService>
S<D> Editor<D>
getDefaultEditor
(Type dataType) <D> Editor<D>
getDefaultEditor
(Type dataType, String category) getDefaultEditorId
(Type dataType) getDefaultEditorId
(Type dataType, String category) <D> Editor<D>
getEditors
(Type dataType) getEditors
(Type dataType, String category)
-
Field Details
-
ROLE_HINT
The role hint of this component.- See Also:
-
-
Constructor Details
-
EditScriptService
public EditScriptService()
-
-
Method Details
-
getEditors
- Type Parameters:
D
- the data type- Parameters:
dataType
- the data type- Returns:
- the list of editors that can edit the specified type of data
-
getEditors
- Type Parameters:
D
- the data type- Parameters:
dataType
- the data typecategory
- the editor category- Returns:
- the list of editors that have the specified category and which are associated with the given data type
-
getEditor
-
getDefaultEditor
- Type Parameters:
D
- the data type- Parameters:
dataType
- the data type- Returns:
- the configured default editor associated with the specified data type
-
getDefaultEditor
- Type Parameters:
D
- the data type- Parameters:
dataType
- the data typecategory
- the editor category- Returns:
- the configured default editor that has the specified category and which is associated with the given data type
-
getDefaultEditorId
- Parameters:
dataType
- the data type- Returns:
- the id of the configured default editor associated with the specified data type
-
getDefaultEditorId
- Parameters:
dataType
- the data typecategory
- the editor category- Returns:
- the id of the configured default editor for the specified category and which is associated with the given data type
-
get
- Type Parameters:
S
- theScriptService
type- Parameters:
serviceName
- the name of the subScriptService
- Returns:
- the sub
ScriptService
with the specified name, ornull
if none could be found
-