Class URLBasedDynamicInformationProvider
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.linkdirectory.dynamic.URLBasedDynamicInformationProvider
- All Implemented Interfaces:
DynamicInformationProvider
,LogEnabled
,PluginAware
,Component
,Configurable
,Serviceable
public class URLBasedDynamicInformationProvider
extends AbstractLogEnabled
implements DynamicInformationProvider, Configurable, PluginAware, Serviceable
Implementation of
DynamicInformationProvider
allowing to SAX information from a confiured URL.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(Configuration configuration) getId()
Get id of this providergetLabel()
Get label of this providergetUrl()
Get the url of the WebServicevoid
saxDynamicInformation
(ContentHandler contentHandler, String linkId, String siteName, String lang, int nbItems) SAX the dynamic information for a specific linkvoid
service
(ServiceManager manager) void
setPluginInfo
(String pluginName, String featureName, String id) Sets the plugin info relative to the current component.
Note : The feature name may be null if the targeted component in declared at plugin level.Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Constructor Details
-
URLBasedDynamicInformationProvider
public URLBasedDynamicInformationProvider()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
setPluginInfo
Description copied from interface:PluginAware
Sets the plugin info relative to the current component.
Note : The feature name may be null if the targeted component in declared at plugin level.- Specified by:
setPluginInfo
in interfacePluginAware
- Parameters:
pluginName
- Unique identifier for the plugin hosting the extensionfeatureName
- Unique feature identifier (unique for a given pluginName)id
- Unique identifier of this component
-
configure
- Specified by:
configure
in interfaceConfigurable
- Throws:
ConfigurationException
-
saxDynamicInformation
public void saxDynamicInformation(ContentHandler contentHandler, String linkId, String siteName, String lang, int nbItems) throws Exception Description copied from interface:DynamicInformationProvider
SAX the dynamic information for a specific link- Specified by:
saxDynamicInformation
in interfaceDynamicInformationProvider
- Parameters:
contentHandler
- The contenthandler to sax intolinkId
- The id of link.siteName
- The current site namelang
- The language used.nbItems
- The number of item to get for tooltip.- Throws:
Exception
- if an exception error occurs.
-
getUrl
Get the url of the WebService- Returns:
- url of the WebService
-
getId
Description copied from interface:DynamicInformationProvider
Get id of this provider- Specified by:
getId
in interfaceDynamicInformationProvider
- Returns:
- The id of this provider
-
getLabel
Description copied from interface:DynamicInformationProvider
Get label of this provider- Specified by:
getLabel
in interfaceDynamicInformationProvider
- Returns:
- The label of this provider
-