|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface UIExtensionManager
This class is used to manage all the extensions available into the system. The main target is to first add the ability to add new extension dynamically without changing anything in the source code. Created by The eXo Platform SAS Author : eXoPlatform nicolas.filotto@exoplatform.com May 04, 2009
| Method Summary | |
|---|---|
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 |
| Method Detail |
|---|
org.exoplatform.webui.core.UIComponent addUIExtension(String extensionType,
String extensionName,
Map<String,Object> context,
org.exoplatform.webui.core.UIContainer parent)
throws Exception
null
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 check in order to know if the extension can be addedparent - the parent component to which the extension must be added
null
otherwise
Exception - if an error occurs
org.exoplatform.webui.core.UIComponent addUIExtension(UIExtension extension,
Map<String,Object> context,
org.exoplatform.webui.core.UIContainer parent)
throws Exception
null
extension - 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 added
null
otherwise
Exception - if an error occurs
boolean 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 check
true 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 extension
UIExtension 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 get
null otherwisevoid registerUIExtension(UIExtension extension)
extension - the extension to registervoid registerUIExtensionPlugin(UIExtensionPlugin extensionPlugin)
extensionPlugin - the plugin to treat
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||