@Component @Singleton @Named(value="edit") @Unstable public class EditScriptService extends Object implements org.xwiki.script.service.ScriptService
Modifier and Type | Field and Description |
---|---|
static String |
ROLE_HINT
The role hint of this component.
|
Constructor and Description |
---|
EditScriptService() |
Modifier and Type | Method and Description |
---|---|
<S extends org.xwiki.script.service.ScriptService> |
get(String serviceName) |
<D> Editor<D> |
getDefaultEditor(Type dataType) |
<D> Editor<D> |
getDefaultEditor(Type dataType,
String category) |
String |
getDefaultEditorId(Type dataType) |
String |
getDefaultEditorId(Type dataType,
String category) |
<D> Editor<D> |
getEditor(Type dataType,
String hint) |
<D> List<Editor<D>> |
getEditors(Type dataType) |
<D> List<Editor<D>> |
getEditors(Type dataType,
String category) |
public static final String ROLE_HINT
public <D> List<Editor<D>> getEditors(Type dataType)
D
- the data typedataType
- the data typepublic <D> List<Editor<D>> getEditors(Type dataType, String category)
D
- the data typedataType
- the data typecategory
- the editor categorypublic <D> Editor<D> getDefaultEditor(Type dataType)
D
- the data typedataType
- the data typepublic <D> Editor<D> getDefaultEditor(Type dataType, String category)
D
- the data typedataType
- the data typecategory
- the editor categorypublic String getDefaultEditorId(Type dataType)
dataType
- the data typepublic String getDefaultEditorId(Type dataType, String category)
dataType
- the data typecategory
- the editor categorypublic <S extends org.xwiki.script.service.ScriptService> S get(String serviceName)
S
- the ScriptService
typeserviceName
- the name of the sub ScriptService
ScriptService
with the specified name, or null
if none could be foundCopyright © 2004–2017 XWiki. All rights reserved.