Class WorkspaceModuleExtensionPoint
- java.lang.Object
 - 
- org.ametys.runtime.plugin.component.AbstractLogEnabled
 - 
- org.ametys.runtime.plugin.component.AbstractThreadSafeComponentExtensionPoint<WorkspaceModule>
 - 
- org.ametys.plugins.workspaces.project.modules.WorkspaceModuleExtensionPoint
 
 
 
 
- 
- All Implemented Interfaces:
 LogEnabled,ExtensionPoint<WorkspaceModule>,Disposable,Initializable,Component,Contextualizable,Serviceable,ThreadSafe
public class WorkspaceModuleExtensionPoint extends AbstractThreadSafeComponentExtensionPoint<WorkspaceModule>
Extension point for Workspace Modules Managers 
- 
- 
Field Summary
Fields Modifier and Type Field Description private Set<String>_sortedIdsstatic StringROLEAvalon Role- 
Fields inherited from class org.ametys.runtime.plugin.component.AbstractThreadSafeComponentExtensionPoint
_cocoonManager, _context, _manager 
 - 
 
- 
Constructor Summary
Constructors Constructor Description WorkspaceModuleExtensionPoint() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>getExtensionsIds()Returns a Set containing the ids of all known extensions<M extends WorkspaceModule>
MgetModule(String moduleId)Get a workspace moduleWorkspaceModulegetModuleByName(String moduleName)Get a workspace module by its nameList<WorkspaceModule>getModules()Get the list of available modulesvoidinitializeExtensions()Finalize the initialization of the extensions.
This method is called after alladdExtension()calls.
This is the last step before the actual startup of the application.- 
Methods inherited from class org.ametys.runtime.plugin.component.AbstractThreadSafeComponentExtensionPoint
addComponent, addExtension, contextualize, dispose, getExtension, hasExtension, initialize, service 
- 
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger 
 - 
 
 - 
 
- 
- 
Field Detail
- 
_sortedIds
private Set<String> _sortedIds
 
 - 
 
- 
Constructor Detail
- 
WorkspaceModuleExtensionPoint
public WorkspaceModuleExtensionPoint()
 
 - 
 
- 
Method Detail
- 
getModule
public <M extends WorkspaceModule> M getModule(String moduleId)
Get a workspace module- Type Parameters:
 M- The module type- Parameters:
 moduleId- The id of the module- Returns:
 - The workspace module
 
 
- 
getModules
public List<WorkspaceModule> getModules()
Get the list of available modules- Returns:
 - The modules
 
 
- 
getModuleByName
public WorkspaceModule getModuleByName(String moduleName)
Get a workspace module by its name- Parameters:
 moduleName- The module name- Returns:
 - The workspace module or null if not found
 
 
- 
initializeExtensions
public void initializeExtensions() throws Exception
Description copied from interface:ExtensionPointFinalize the initialization of the extensions.
This method is called after alladdExtension()calls.
This is the last step before the actual startup of the application.- Specified by:
 initializeExtensionsin interfaceExtensionPoint<WorkspaceModule>- Overrides:
 initializeExtensionsin classAbstractThreadSafeComponentExtensionPoint<WorkspaceModule>- Throws:
 Exception- if something wrong occurs
 
- 
getExtensionsIds
public Set<String> getExtensionsIds()
Description copied from interface:ExtensionPointReturns a Set containing the ids of all known extensions- Specified by:
 getExtensionsIdsin interfaceExtensionPoint<WorkspaceModule>- Overrides:
 getExtensionsIdsin classAbstractThreadSafeComponentExtensionPoint<WorkspaceModule>- Returns:
 - a Set containing the ids of all known extensions
 
 
 - 
 
 -