| Constructor and Description |
|---|
OSGiBasedTicketerPlugin() |
| Modifier and Type | Method and Description |
|---|---|
Ticket |
get(String ticketId)
DAO like get method to be implemented by HelpDesk specific
plugin.
|
Plugin |
getTicketerPlugin()
Retrieves the plugin that is currently registered.
|
void |
registerTicketerPlugin(Plugin plugin,
Map<String,String> attributes)
Registers the
Plugin use. |
void |
saveOrUpdate(Ticket ticket)
DAO like saveOrUpdate method to be implemented by HelpDesk specific
plugin.
|
boolean |
unregisterTicketerPlugin(Plugin plugin,
Map<String,String> attributes)
Unregisters a previously registered
Plugin use. |
public Ticket get(String ticketId) throws PluginException
Pluginget in interface PluginticketId - a String object.Ticket object.PluginException - if any.public void saveOrUpdate(Ticket ticket) throws PluginException
PluginsaveOrUpdate in interface Pluginticket - a Ticket object.PluginException - if any.public void registerTicketerPlugin(Plugin plugin, Map<String,String> attributes)
Plugin use. Only the first registered plugin will be used.
This method is called by the OSGi Service Registry when a service implementing
the Plugin interface is registered.plugin - the pluginattributes - service-level attributes for the pluginpublic boolean unregisterTicketerPlugin(Plugin plugin, Map<String,String> attributes) throws Exception
Plugin use.
This method is called by the OSGi Service Registry when a service implementing
the Plugin interface is unregistered.plugin - the pluginattributes - service-level attributes for the pluginExceptionpublic Plugin getTicketerPlugin() throws PluginException
PluginException
instead of returning null.PluginException - when no plugin is currently registeredCopyright © 2020. All rights reserved.