public interface UIExtensionManager
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(String extensionType,
String extensionName,
Map<String,Object> context)
Checks if all the filters pass, if one filter doesn't pass the method UIExtension.onDeny will be called
|
org.exoplatform.webui.core.UIComponent |
addUIExtension(String extensionType,
String extensionName,
Map<String,Object> context,
org.exoplatform.webui.core.UIContainer parent)
First check if the given extension exists, if so it checks if the extension can
be added according (all filters that are mandatory) to the given context,
if so it adds the extension to the parent and returns the extension otherwise
it returns
null |
org.exoplatform.webui.core.UIComponent |
addUIExtension(UIExtension extension,
Map<String,Object> context,
org.exoplatform.webui.core.UIContainer parent)
It checks if the extension can be added (all filters that are mandatory) according
to the given context, if so it adds the extension to the parent and returns the
extension otherwise it returns
null |
UIExtension |
getUIExtension(String type,
String name)
Give the extension corresponding to the given criteria
|
List<UIExtension> |
getUIExtensions(String type)
Gives all the extensions related to the given type
|
void |
registerUIExtension(UIExtension extension)
Register a new extension
|
void |
registerUIExtensionPlugin(UIExtensionPlugin extensionPlugin)
Register all the extensions defined into the UIExtensionPlugin
|
org.exoplatform.webui.core.UIComponent addUIExtension(String extensionType, String extensionName, Map<String,Object> context, org.exoplatform.webui.core.UIContainer parent) throws Exception
nullextensionType - the type of the extension, usually it is the FQN of the component
that displays the extensionextensionName - the name of the extension to addcontext - the context to check in order to know if the extension can be addedparent - the parent component to which the extension must be addednull
otherwiseException - if an error occursorg.exoplatform.webui.core.UIComponent addUIExtension(UIExtension extension, Map<String,Object> context, org.exoplatform.webui.core.UIContainer parent) throws Exception
nullextension - the extension to addcontext - the context to check in order to know if the extension can be addedparent - the parent component to which the extension must be addednull
otherwiseException - if an error occursboolean accept(String extensionType, String extensionName, Map<String,Object> context)
extensionType - the type of the extension, usually it is the FQN of the component
that displays the extensionextensionName - the name of the extension to addcontext - the context to checktrue if all the filter could pass, false otherwiseList<UIExtension> getUIExtensions(String type)
type - the type of the extension, usually it is the FQN of the component
that displays the extensionUIExtension getUIExtension(String type, String name)
type - the type of the extension, usually it is the FQN of the component
that displays the extensionname - the name of the extension to getnull otherwisevoid registerUIExtension(UIExtension extension)
extension - the extension to registervoid registerUIExtensionPlugin(UIExtensionPlugin extensionPlugin)
extensionPlugin - the plugin to treatCopyright © 2003–2020 eXo Platform SAS. All rights reserved.