|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.jira.rpc.xmlrpc.JiraXmlRpcService
public class JiraXmlRpcService
| Constructor Summary | |
|---|---|
JiraXmlRpcService(com.atlassian.plugin.PluginAccessor pluginAccessor)
|
|
| Method Summary | |
|---|---|
boolean |
addComment(java.lang.String token,
java.lang.String issueKey,
java.lang.String comment)
Adds a comment to an issue |
java.util.Hashtable |
createIssue(java.lang.String token,
java.util.Hashtable rIssueStruct)
Creates an issue in JIRA from a Hashtable object. |
java.util.Vector |
getComments(java.lang.String token,
java.lang.String issueKey)
Returns all comments associated with the issue |
java.util.Vector |
getComponents(java.lang.String token,
java.lang.String projectKey)
Returns all components available in the specified project |
java.util.Vector |
getFavouriteFilters(java.lang.String token)
Gets all favourite filters available for the currently logged in user |
java.util.Hashtable |
getIssue(java.lang.String token,
java.lang.String issueKey)
Gets an issue from a given issue key. |
java.util.Vector |
getIssuesFromFilter(java.lang.String token,
java.lang.String filterId)
Executes a saved filter |
java.util.Vector |
getIssuesFromTextSearch(java.lang.String token,
java.lang.String searchTerms)
Find issues using a free text search |
java.util.Vector |
getIssuesFromTextSearchWithProject(java.lang.String token,
java.util.Vector projectKeys,
java.lang.String searchTerms,
int maxNumResults)
Find issues using a free text search, limited to certain projects |
java.util.Vector |
getIssueTypes(java.lang.String token)
Returns all visible issue types in the system |
java.util.Vector |
getIssueTypesForProject(java.lang.String token,
java.lang.String projectId)
Returns all visible (non-sub task) issue types for the specified project id |
java.util.Vector |
getPriorities(java.lang.String token)
Returns all priorities in the system |
java.util.Vector |
getProjectsNoSchemes(java.lang.String token)
Returns a list of projects available to the user |
java.util.Vector |
getResolutions(java.lang.String token)
Returns all resolutions in the system |
java.util.Vector |
getSavedFilters(java.lang.String token)
Gets all favourite filters available for the currently logged in user |
java.util.Hashtable |
getServerInfo(java.lang.String token)
Returns the Server information such as baseUrl, version, edition, buildDate, buildNumber. |
java.util.Vector |
getStatuses(java.lang.String token)
Returns all statuses in the system |
java.util.Vector |
getSubTaskIssueTypes(java.lang.String token)
Returns all visible subtask issue types in the system |
java.util.Vector |
getSubTaskIssueTypesForProject(java.lang.String token,
java.lang.String projectId)
Returns all visible sub task issue types for the specified project id. |
java.util.Hashtable |
getUser(java.lang.String token,
java.lang.String username)
Returns a user's information given a username |
java.util.Vector |
getVersions(java.lang.String token,
java.lang.String projectKey)
Returns all versions available in the specified project |
java.lang.String |
login(java.lang.String username,
java.lang.String password)
Logs the user into JIRA. |
boolean |
logout(java.lang.String token)
Logs the user out of JIRA |
java.util.Hashtable |
updateIssue(java.lang.String token,
java.lang.String issueKey,
java.util.Hashtable rIssueStruct)
Updates an issue in JIRA from a Hashtable object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JiraXmlRpcService(com.atlassian.plugin.PluginAccessor pluginAccessor)
| Method Detail |
|---|
public java.lang.String login(java.lang.String username,
java.lang.String password)
throws RemoteException
XmlRpcService
login in interface XmlRpcServiceusername - username of the person logged in in aspassword - the appropriate password
RemoteExceptionpublic boolean logout(java.lang.String token)
XmlRpcService
logout in interface XmlRpcServicepublic java.util.Hashtable getServerInfo(java.lang.String token)
XmlRpcService
getServerInfo in interface XmlRpcServiceRemoteServerInfo.
public java.util.Vector getProjectsNoSchemes(java.lang.String token)
throws RemoteException
XmlRpcService
getProjectsNoSchemes in interface XmlRpcServiceRemoteProject
RemoteException
public java.util.Vector getVersions(java.lang.String token,
java.lang.String projectKey)
throws RemoteException
XmlRpcService
getVersions in interface XmlRpcServiceprojectKey - The key of project
RemoteVersion
RemoteException
public java.util.Vector getComponents(java.lang.String token,
java.lang.String projectKey)
throws RemoteException
XmlRpcService
getComponents in interface XmlRpcServiceprojectKey - The key of the project
RemoteComment
RemoteException
public java.util.Vector getIssueTypesForProject(java.lang.String token,
java.lang.String projectId)
throws RemoteException
XmlRpcService
getIssueTypesForProject in interface XmlRpcServiceRemoteIssueType
RemoteException
public java.util.Vector getSubTaskIssueTypesForProject(java.lang.String token,
java.lang.String projectId)
throws RemoteException
XmlRpcService
getSubTaskIssueTypesForProject in interface XmlRpcServiceRemoteIssueType
RemoteException
public java.util.Vector getIssueTypes(java.lang.String token)
throws RemotePermissionException,
RemoteAuthenticationException
XmlRpcService
getIssueTypes in interface XmlRpcServiceRemoteIssueType
RemotePermissionException
RemoteAuthenticationException
public java.util.Vector getSubTaskIssueTypes(java.lang.String token)
throws java.lang.Exception
XmlRpcService
getSubTaskIssueTypes in interface XmlRpcServiceRemoteIssueType
java.lang.Exception
public java.util.Vector getPriorities(java.lang.String token)
throws RemotePermissionException,
RemoteAuthenticationException
XmlRpcService
getPriorities in interface XmlRpcServiceRemotePriority
RemotePermissionException
RemoteAuthenticationException
public java.util.Vector getStatuses(java.lang.String token)
throws RemotePermissionException,
RemoteAuthenticationException
XmlRpcService
getStatuses in interface XmlRpcServiceRemoteStatus
RemotePermissionException
RemoteAuthenticationException
public java.util.Vector getResolutions(java.lang.String token)
throws RemotePermissionException,
RemoteAuthenticationException
XmlRpcService
getResolutions in interface XmlRpcServiceRemoteResolution
RemotePermissionException
RemoteAuthenticationException
public java.util.Hashtable getUser(java.lang.String token,
java.lang.String username)
throws RemotePermissionException,
RemoteAuthenticationException
XmlRpcService
getUser in interface XmlRpcServiceusername - the username of the user being retrieved
RemoteUser
RemotePermissionException
RemoteAuthenticationException
public java.util.Vector getSavedFilters(java.lang.String token)
throws RemoteException
XmlRpcService
getSavedFilters in interface XmlRpcServiceRemoteFilter
RemoteException
public java.util.Vector getFavouriteFilters(java.lang.String token)
throws RemoteException
XmlRpcService
getFavouriteFilters in interface XmlRpcServiceRemoteFilter
RemoteException
public java.util.Hashtable getIssue(java.lang.String token,
java.lang.String issueKey)
throws RemoteException
XmlRpcService
getIssue in interface XmlRpcServiceissueKey - the key of an issue (e.g. JRA-111)
RemoteIssue.
This has nested Hashtables for components RemoteComponent, affectsVersions, fixVersions RemoteVersion and customFieldValues RemoteCustomFieldValue.
RemoteException
public java.util.Vector getComments(java.lang.String token,
java.lang.String issueKey)
throws RemoteException
XmlRpcService
getComments in interface XmlRpcServiceissueKey - the key of an issue (e.g. JRA-111)
RemoteComment
RemoteException
public java.util.Hashtable createIssue(java.lang.String token,
java.util.Hashtable rIssueStruct)
throws RemoteException
XmlRpcServiceXmlRpcService.createIssue(String, Hashtable). That is components, affectsVersions, fixVersions and customFieldValues must
be blank or be Hashtables with the appropriate data structures. Issues must not have the fields id, key or reporter set,
in addition to any standard rules of issue creation (e.g. permissions, not null summary)
createIssue in interface XmlRpcServicerIssueStruct - Hashtable of issue fields with the appropriate structure for RemoteIssue.
RemoteException
public java.util.Hashtable updateIssue(java.lang.String token,
java.lang.String issueKey,
java.util.Hashtable rIssueStruct)
throws RemoteException
XmlRpcServiceXmlRpcService.createIssue(String, Hashtable). That is components, affectsVersions, fixVersions and customFieldValues must
be blank or be Hashtables with the appropriate data structures. Issues must not have the fields id, key or reporter set,
in addition to any standard rules of issue creation (e.g. permissions, not null summary)
updateIssue in interface XmlRpcServicerIssueStruct - Hashtable of issue fields with the appropriate structure for RemoteIssue.
RemoteException
public boolean addComment(java.lang.String token,
java.lang.String issueKey,
java.lang.String comment)
throws java.lang.Exception
XmlRpcService
addComment in interface XmlRpcServiceissueKey - he key of an issue (e.g. JRA-111)comment - the text string for the comment
java.lang.Exception
public java.util.Vector getIssuesFromFilter(java.lang.String token,
java.lang.String filterId)
throws RemoteException
XmlRpcService
getIssuesFromFilter in interface XmlRpcServicefilterId - id of the saved filter
RemoteException
public java.util.Vector getIssuesFromTextSearch(java.lang.String token,
java.lang.String searchTerms)
throws java.lang.Exception
XmlRpcService
getIssuesFromTextSearch in interface XmlRpcServicesearchTerms - The terms to search for
java.lang.Exception
public java.util.Vector getIssuesFromTextSearchWithProject(java.lang.String token,
java.util.Vector projectKeys,
java.lang.String searchTerms,
int maxNumResults)
throws java.lang.Exception
XmlRpcService
getIssuesFromTextSearchWithProject in interface XmlRpcServicejava.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||