hu.midori.kosmos.server.jira
Class JiraSoapServiceImpl

java.lang.Object
  extended by hu.midori.kosmos.server.AbstractKosmosService
      extended by hu.midori.kosmos.server.jira.AbstractJiraServiceImpl
          extended by hu.midori.kosmos.server.jira.JiraSoapServiceImpl
All Implemented Interfaces:
JiraService, TimestampedService, org.springframework.context.ApplicationContextAware

public class JiraSoapServiceImpl
extends AbstractJiraServiceImpl
implements JiraService

Implementation of the JIRA service.

Uses the JIRA SOAP remote API. Because of the limitations of the JIRA API (there is no getAllIssues() or getAllIssuesByProject(), and no getProjectById(), it downloads all issues from a saved filter defined by its name, downloads all projects and then sorts the issues for projects.

Version:
$Id$
Author:
Aron Gombas

Field Summary
 
Fields inherited from class hu.midori.kosmos.server.AbstractKosmosService
applicationContext, MAX_LIST_SIZE
 
Constructor Summary
JiraSoapServiceImpl()
           
 
Method Summary
protected  java.lang.String connect(java.lang.String url)
          Connects to the JIRA SOAP service.
protected  void disconnect(java.lang.String token)
          Disconnects from the JIRA SOAP service.
 java.util.List<JiraProject> getProjects(java.lang.String url)
          Returns the projects from the JIRA server instance.
 
Methods inherited from class hu.midori.kosmos.server.jira.AbstractJiraServiceImpl
generateIssuePerPriorityChart, generateIssuePerStatusChart, generateOpenIssuesPerAssigneeChart
 
Methods inherited from class hu.midori.kosmos.server.AbstractKosmosService
beginStoreSession, endStoreSession, getResourceString, getTimestamp, setApplicationContext, setStore, storeChart, storeFile, trimList, updateTimestamp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface hu.midori.kosmos.protocol.TimestampedService
getTimestamp
 

Constructor Detail

JiraSoapServiceImpl

public JiraSoapServiceImpl()
Method Detail

getProjects

public java.util.List<JiraProject> getProjects(java.lang.String url)
Description copied from interface: JiraService
Returns the projects from the JIRA server instance.

Specified by:
getProjects in interface JiraService
Parameters:
url - shows to a JIRA server instance (eg. http://jira.atlassian.com).

connect

protected java.lang.String connect(java.lang.String url)
                            throws java.net.MalformedURLException,
                                   javax.xml.rpc.ServiceException,
                                   java.rmi.RemoteException
Connects to the JIRA SOAP service.

Returns:
the session token after a successful connection.
Throws:
java.net.MalformedURLException
javax.xml.rpc.ServiceException
java.rmi.RemoteException

disconnect

protected void disconnect(java.lang.String token)
                   throws java.rmi.RemoteException
Disconnects from the JIRA SOAP service.

Throws:
java.rmi.RemoteException