public class UIExtensionManagerImpl extends Object implements UIExtensionManager
| Constructor and Description |
|---|
UIExtensionManagerImpl() |
| 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
|
protected boolean |
accept(UIExtension extension,
Map<String,Object> context,
boolean checkOnly) |
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 |
protected String |
createComponentId(org.exoplatform.webui.core.UIContainer parent,
String extensionName) |
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
|
public boolean accept(String extensionType, String extensionName, Map<String,Object> context)
accept in interface UIExtensionManagerextensionType - 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 otherwisepublic org.exoplatform.webui.core.UIComponent addUIExtension(String extensionType, String extensionName, Map<String,Object> context, org.exoplatform.webui.core.UIContainer parent) throws Exception
nulladdUIExtension in interface UIExtensionManagerextensionType - 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 occurspublic org.exoplatform.webui.core.UIComponent addUIExtension(UIExtension extension, Map<String,Object> context, org.exoplatform.webui.core.UIContainer parent) throws Exception
nulladdUIExtension in interface UIExtensionManagerextension - 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 occurspublic void registerUIExtensionPlugin(UIExtensionPlugin extensionPlugin)
registerUIExtensionPlugin in interface UIExtensionManagerextensionPlugin - the plugin to treatpublic void registerUIExtension(UIExtension extension)
registerUIExtension in interface UIExtensionManagerextension - the extension to registerpublic List<UIExtension> getUIExtensions(String type)
getUIExtensions in interface UIExtensionManagertype - the type of the extension, usually it is the FQN of the component
that displays the extensionpublic UIExtension getUIExtension(String type, String name)
getUIExtension in interface UIExtensionManagertype - the type of the extension, usually it is the FQN of the component
that displays the extensionname - the name of the extension to getnull otherwiseprotected boolean accept(UIExtension extension, Map<String,Object> context, boolean checkOnly)
Copyright © 2003–2021 eXo Platform SAS. All rights reserved.