Package org.ametys.plugins.core.ui.help
Class HelpExtensionPoint
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.core.ui.help.HelpExtensionPoint
- All Implemented Interfaces:
LogEnabled
,ExtensionPoint<String>
,Initializable
,Component
,Serviceable
,ThreadSafe
public class HelpExtensionPoint
extends AbstractLogEnabled
implements ExtensionPoint<String>, Initializable, ThreadSafe, Component, Serviceable
This extension point handle a list of help URLs handled by the plugins or the application.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addExtension
(String id, String pluginName, String featureName, Configuration configuration) Add an extension to this point.getExtension
(String id) Returns the named extensionReturns a Set containing the ids of all known extensionsgetHelpLink
(String point, String id) Return the helpLink available for this point/idboolean
hasExtension
(String id) Returns true if the named extension existsvoid
void
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.void
service
(ServiceManager manager) Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
ROLE
The avalon role -
_links
The map of rightId, Right of declared rights -
_points
Set of extensions points added -
_helpManager
The help manager
-
-
Constructor Details
-
HelpExtensionPoint
public HelpExtensionPoint()
-
-
Method Details
-
initialize
- Specified by:
initialize
in interfaceInitializable
- Throws:
Exception
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
hasExtension
Description copied from interface:ExtensionPoint
Returns true if the named extension exists- Specified by:
hasExtension
in interfaceExtensionPoint<String>
- Parameters:
id
- the unique id of the extension- Returns:
- true if the named extension exists
-
addExtension
public void addExtension(String id, String pluginName, String featureName, Configuration configuration) throws ConfigurationException Description copied from interface:ExtensionPoint
Add an extension to this point. Each implementation knows the meaning of the given configuration.- Specified by:
addExtension
in interfaceExtensionPoint<String>
- Parameters:
id
- the unique identifier of the extension.pluginName
- Unique identifier for the plugin hosting the extensionfeatureName
- Unique feature identifier (unique for a given pluginName)configuration
- the information about the extension to be added- Throws:
ConfigurationException
- when a configuration problem occurs
-
getHelpLink
Return the helpLink available for this point/id- Parameters:
point
- extension pointid
- id of the extension for this extension point- Returns:
- a
HelpLink
-
getExtensionsIds
Description copied from interface:ExtensionPoint
Returns a Set containing the ids of all known extensions- Specified by:
getExtensionsIds
in interfaceExtensionPoint<String>
- Returns:
- a Set containing the ids of all known extensions
-
initializeExtensions
Description copied from interface:ExtensionPoint
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.- Specified by:
initializeExtensions
in interfaceExtensionPoint<String>
- Throws:
Exception
- if something wrong occurs
-
getExtension
Description copied from interface:ExtensionPoint
Returns the named extension- Specified by:
getExtension
in interfaceExtensionPoint<String>
- Parameters:
id
- the unique id of the extension- Returns:
- the named extension
-