|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 XmlRpcService
username
- username of the person logged in in aspassword
- the appropriate password
RemoteException
public boolean logout(java.lang.String token)
XmlRpcService
logout
in interface XmlRpcService
public java.util.Hashtable getServerInfo(java.lang.String token)
XmlRpcService
getServerInfo
in interface XmlRpcService
RemoteServerInfo
.public java.util.Vector getProjectsNoSchemes(java.lang.String token) throws RemoteException
XmlRpcService
getProjectsNoSchemes
in interface XmlRpcService
RemoteProject
RemoteException
public java.util.Vector getVersions(java.lang.String token, java.lang.String projectKey) throws RemoteException
XmlRpcService
getVersions
in interface XmlRpcService
projectKey
- 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 XmlRpcService
projectKey
- 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 XmlRpcService
RemoteIssueType
RemoteException
public java.util.Vector getSubTaskIssueTypesForProject(java.lang.String token, java.lang.String projectId) throws RemoteException
XmlRpcService
getSubTaskIssueTypesForProject
in interface XmlRpcService
RemoteIssueType
RemoteException
public java.util.Vector getIssueTypes(java.lang.String token) throws RemotePermissionException, RemoteAuthenticationException
XmlRpcService
getIssueTypes
in interface XmlRpcService
RemoteIssueType
RemotePermissionException
RemoteAuthenticationException
public java.util.Vector getSubTaskIssueTypes(java.lang.String token) throws java.lang.Exception
XmlRpcService
getSubTaskIssueTypes
in interface XmlRpcService
RemoteIssueType
java.lang.Exception
public java.util.Vector getPriorities(java.lang.String token) throws RemotePermissionException, RemoteAuthenticationException
XmlRpcService
getPriorities
in interface XmlRpcService
RemotePriority
RemotePermissionException
RemoteAuthenticationException
public java.util.Vector getStatuses(java.lang.String token) throws RemotePermissionException, RemoteAuthenticationException
XmlRpcService
getStatuses
in interface XmlRpcService
RemoteStatus
RemotePermissionException
RemoteAuthenticationException
public java.util.Vector getResolutions(java.lang.String token) throws RemotePermissionException, RemoteAuthenticationException
XmlRpcService
getResolutions
in interface XmlRpcService
RemoteResolution
RemotePermissionException
RemoteAuthenticationException
public java.util.Hashtable getUser(java.lang.String token, java.lang.String username) throws RemotePermissionException, RemoteAuthenticationException
XmlRpcService
getUser
in interface XmlRpcService
username
- 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 XmlRpcService
RemoteFilter
RemoteException
public java.util.Vector getFavouriteFilters(java.lang.String token) throws RemoteException
XmlRpcService
getFavouriteFilters
in interface XmlRpcService
RemoteFilter
RemoteException
public java.util.Hashtable getIssue(java.lang.String token, java.lang.String issueKey) throws RemoteException
XmlRpcService
getIssue
in interface XmlRpcService
issueKey
- 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 XmlRpcService
issueKey
- 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
XmlRpcService
XmlRpcService.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 XmlRpcService
rIssueStruct
- 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
XmlRpcService
XmlRpcService.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 XmlRpcService
rIssueStruct
- 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 XmlRpcService
issueKey
- 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 XmlRpcService
filterId
- 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 XmlRpcService
searchTerms
- 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 XmlRpcService
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |