|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnl.surfnet.coin.selfservice.service.impl.JiraServiceImpl
public class JiraServiceImpl
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
JiraServiceImpl()
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public JiraServiceImpl()
| Method Detail |
|---|
public String create(JiraTask task,
CoinUser user)
throws IOException
JiraService
create in interface JiraServicetask - the task you want to createuser - the user which issued the request
IOException - when communicating with jira fails
public void delete(String key)
throws IOException
JiraService
delete in interface JiraServicekey - the task key
IOException - when communicating with jira fails
public void doAction(String key,
JiraTask.Action update)
throws IOException
JiraService
doAction in interface JiraServicekey - the task keyupdate - what action to undertake
IOException - when communicating with jira fails
public List<JiraTask> getTasks(List<String> keys)
throws IOException
JiraService
getTasks in interface JiraServicekeys - a list of the task keys you want to retrieve
IOException - when communicating with jira fails
public 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)
JiraService
setBaseUrl in interface JiraServicebaseUrl - Stringpublic void setUsername(String username)
JiraService
setUsername in interface JiraServiceusername - the username as a Stringpublic void setPassword(String password)
JiraService
setPassword in interface JiraServicepassword - Stringpublic void setProjectKey(String projectKey)
JiraService
setProjectKey in interface JiraServiceprojectKey - String
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||