Package org.opennms.netmgt.ticketer.jira
Class JiraTicketerPlugin
- java.lang.Object
-
- org.opennms.netmgt.ticketer.jira.JiraTicketerPlugin
-
- All Implemented Interfaces:
Plugin
public class JiraTicketerPlugin extends Object implements Plugin
OpenNMS Trouble Ticket Plugin API implementation for Atlassian JIRA. This implementation relies on the JIRA REST interface and is compatible with JIRA 5.0+.- Author:
- Johan Edstrom, Seth
-
-
Constructor Summary
Constructors Constructor Description JiraTicketerPlugin()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Ticketget(String ticketId)Implementation of TicketerPlugin API call to retrieve a Jira trouble ticket.static ConfiggetConfig()protected com.atlassian.jira.rest.client.api.JiraRestClientgetConnection()voidsaveOrUpdate(Ticket ticket)DAO like saveOrUpdate method to be implemented by HelpDesk specific plugin.
-
-
-
Method Detail
-
getConnection
protected com.atlassian.jira.rest.client.api.JiraRestClient getConnection() throws PluginException- Throws:
PluginException
-
get
public Ticket get(String ticketId) throws PluginException
Implementation of TicketerPlugin API call to retrieve a Jira trouble ticket.- Specified by:
getin interfacePlugin- Parameters:
ticketId- aStringobject.- Returns:
- an OpenNMS
- Throws:
PluginException
-
getConfig
public static Config getConfig()
-
saveOrUpdate
public void saveOrUpdate(Ticket ticket) throws PluginException
Description copied from interface:PluginDAO like saveOrUpdate method to be implemented by HelpDesk specific plugin.- Specified by:
saveOrUpdatein interfacePlugin- Parameters:
ticket- aTicketobject.- Throws:
PluginException- if any.
-
-