public class JiraServiceImpl extends Object implements JiraService, org.springframework.beans.factory.InitializingBean
| Modifier and Type | Field and Description |
|---|---|
static String |
CLOSE_ACTION_IDENTIFIER |
static org.swift.common.soap.jira.RemoteCustomFieldValue[] |
EMPTY_REMOTE_CUSTOM_FIELD_VALUES |
static org.swift.common.soap.jira.RemoteFieldValue[] |
EMPTY_REMOTE_FIELD_VALUES |
static String[] |
EMPTY_STRINGS |
static String |
IDP_CUSTOM_FIELD |
static String |
PRIORITY_MEDIUM |
static String |
REOPEN_ACTION_IDENTIFIER |
static String |
SP_CUSTOM_FIELD |
static String |
TYPE_LINKREQUEST |
static String |
TYPE_QUESTION |
static String |
TYPE_UNLINKREQUEST |
| Constructor and Description |
|---|
JiraServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
String |
create(JiraTask task,
CoinUser user)
Create a new task in Jira.
|
void |
delete(String key)
Delete a task from Jira.
|
void |
doAction(String key,
JiraTask.Action update)
Re-open or close a Jira task.
|
List<JiraTask> |
getTasks(List<String> keys)
Retrieve specific tasks from Jira.
|
void |
setBaseUrl(String baseUrl)
Set the base URL of the Jira instance to use
|
protected void |
setJiraSoapService(org.swift.common.soap.jira.JiraSoapService jiraSoapService)
meant to override the default impl (for instance to mock for unit tests)
|
void |
setPassword(String password)
Set the password to use to authenticate against Jira
|
void |
setProjectKey(String projectKey)
The project key used to submit issues
|
void |
setUsername(String username)
Set the username to use to authenticate against Jira
|
public static final org.swift.common.soap.jira.RemoteFieldValue[] EMPTY_REMOTE_FIELD_VALUES
public static final String[] EMPTY_STRINGS
public static final org.swift.common.soap.jira.RemoteCustomFieldValue[] EMPTY_REMOTE_CUSTOM_FIELD_VALUES
public static final String SP_CUSTOM_FIELD
public static final String IDP_CUSTOM_FIELD
public static final String TYPE_LINKREQUEST
public static final String TYPE_UNLINKREQUEST
public static final String TYPE_QUESTION
public static final String PRIORITY_MEDIUM
public static final String CLOSE_ACTION_IDENTIFIER
public static final String REOPEN_ACTION_IDENTIFIER
public String create(JiraTask task, CoinUser user) throws IOException
JiraServicecreate in interface JiraServicetask - the task you want to createuser - the user which issued the requestIOException - when communicating with jira failspublic void delete(String key) throws IOException
JiraServicedelete in interface JiraServicekey - the task keyIOException - when communicating with jira failspublic void doAction(String key, JiraTask.Action update) throws IOException
JiraServicedoAction in interface JiraServicekey - the task keyupdate - what action to undertakeIOException - when communicating with jira failspublic List<JiraTask> getTasks(List<String> keys) throws IOException
JiraServicegetTasks in interface JiraServicekeys - a list of the task keys you want to retrieveIOException - when communicating with jira failspublic void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionprotected void setJiraSoapService(org.swift.common.soap.jira.JiraSoapService jiraSoapService)
jiraSoapService - the soap servicepublic void setBaseUrl(String baseUrl)
JiraServicesetBaseUrl in interface JiraServicebaseUrl - Stringpublic void setUsername(String username)
JiraServicesetUsername in interface JiraServiceusername - the username as a Stringpublic void setPassword(String password)
JiraServicesetPassword in interface JiraServicepassword - Stringpublic void setProjectKey(String projectKey)
JiraServicesetProjectKey in interface JiraServiceprojectKey - StringCopyright © 2012-2013 SURFnet bv, The Netherlands. All Rights Reserved.