@Component @Named(value="display") @Singleton public class DisplayScriptService extends Object implements org.xwiki.script.service.ScriptService
Displayer
s to scripts.Modifier and Type | Field and Description |
---|---|
static String |
ROLEHINT
The role hint of this component.
|
Constructor and Description |
---|
DisplayScriptService() |
Modifier and Type | Method and Description |
---|---|
String |
content(Document document) |
String |
content(Document document,
Map<String,Object> parameters)
Displays the content of the given document.
|
org.xwiki.display.internal.DocumentDisplayerParameters |
createDocumentDisplayerParameters() |
<S extends org.xwiki.script.service.ScriptService> |
get(String serviceName)
Gets a sub-service.
|
String |
title(Document document) |
String |
title(Document document,
Map<String,Object> parameters)
Displays the document title.
|
public static final String ROLEHINT
public org.xwiki.display.internal.DocumentDisplayerParameters createDocumentDisplayerParameters()
DocumentDisplayerParameters
public String content(Document document)
document
- the document whose content is displayedcontent(Document, Map)
public String content(Document document, Map<String,Object> parameters)
document
- the document whose content is displayedparameters
- the display parameterspublic String title(Document document, Map<String,Object> parameters)
document
- the document whose title is displayedparameters
- the display parameterspublic String title(Document document)
document
- the document whose title is displayedtitle(Document, Map)
public <S extends org.xwiki.script.service.ScriptService> S get(String serviceName)
S
- the type of the ScriptService
serviceName
- the name of the sub ScriptService
ScriptService
or null of none could be foundCopyright © 2004–2021 XWiki. All rights reserved.