|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.webui.ext.impl.UIExtensionManagerImpl
public class UIExtensionManagerImpl
The default implementation of an extension manager Created by The eXo Platform SAS Author : eXoPlatform nicolas.filotto@exoplatform.com May 04, 2009
| Constructor Summary | |
|---|---|
UIExtensionManagerImpl()
|
|
| 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 |
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UIExtensionManagerImpl()
| Method Detail |
|---|
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 check
true if all the filter could pass, false otherwise
public org.exoplatform.webui.core.UIComponent addUIExtension(String extensionType,
String extensionName,
Map<String,Object> context,
org.exoplatform.webui.core.UIContainer parent)
throws Exception
null
addUIExtension 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 added
null
otherwise
Exception - if an error occurs
public org.exoplatform.webui.core.UIComponent addUIExtension(UIExtension extension,
Map<String,Object> context,
org.exoplatform.webui.core.UIContainer parent)
throws Exception
null
addUIExtension 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 added
null
otherwise
Exception - 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 extension
public 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 get
null otherwise
protected boolean accept(UIExtension extension,
Map<String,Object> context,
boolean checkOnly)
protected String createComponentId(org.exoplatform.webui.core.UIContainer parent,
String extensionName)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||