@Component @Named(value="uix") @Singleton public class UIExtensionScriptService extends Object implements org.xwiki.script.service.ScriptService
Constructor and Description |
---|
UIExtensionScriptService() |
Modifier and Type | Method and Description |
---|---|
List<UIExtension> |
getExtensions(String extensionPointId)
Retrieves all the
UIExtension s for a given Extension Point. |
List<UIExtension> |
getExtensions(String extensionPointId,
Map<String,String> filters)
Retrieves the list of
UIExtension for a given Extension Point. |
public List<UIExtension> getExtensions(String extensionPointId)
UIExtension
s for a given Extension Point.extensionPointId
- The ID of the Extension Point to retrieve the UIExtension
s forUIExtension
for the given Extension Pointpublic List<UIExtension> getExtensions(String extensionPointId, Map<String,String> filters)
UIExtension
for a given Extension Point.
Examples:
UIExtension
s with the given IDs for the Extension Point "platform.example"
$services.uix.getExtensions('platform.example', {'select' : 'id1, id2, id3'})
UIExtension
s for the Extension Point "platform.example" except the
UIExtension
s with the IDs "id2" and "id3"
$services.uix.getExtensions('platform.example', {'exclude' : 'id2, id3'})
UIExtension
s for the Extension Point "platform.example" and order them by one of their
parameter
$services.uix.getExtensions('platform.example', {'sortByParameter' : 'parameterKey'})
UIExtension
s with the given IDs for the Extension Point "platform.example" and order
them by one of their parameter
$services.uix.getExtensions('platform.example', {'select' : 'id1, id2, id3', 'sortByParameter' : 'parameterKey'})
extensionPointId
- The ID of the Extension Point to retrieve the UIExtension
s forfilters
- Optional filters to apply before retrieving the listUIExtension
for the given Extension PointCopyright © 2004–2021 XWiki. All rights reserved.