|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xwiki.jira.JiraScriptService
@Component @Named(value="jira") public class JiraScriptService
Expose Atlassian's JIRA REST service to XWiki scripts.
Constructor Summary | |
---|---|
JiraScriptService()
|
Method Summary | |
---|---|
JiraRestClient |
getJiraRestClient(String jiraURL)
Connect anonymously to the remote JIRA instance. |
JiraRestClient |
getJiraRestClient(String jiraURL,
String username,
String password)
Note that the password will be passed in clear over the network to the remote JIRA instance. |
ProgressMonitor |
getNullProgressMonitor()
Since all JRJC APIs require to be passed a ProgressMonitor this method makes it easy to get one
(especially useful from Velocity scripts since they can't do any new). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JiraScriptService()
Method Detail |
---|
public JiraRestClient getJiraRestClient(String jiraURL, String username, String password)
jiraURL
- the URL to the remote JIRA instance to connect tousername
- the username to connect to JIRApassword
- the password to connect to JIRA
public JiraRestClient getJiraRestClient(String jiraURL)
jiraURL
- the URL to the remote JIRA instance to connect to
public ProgressMonitor getNullProgressMonitor()
ProgressMonitor
this method makes it easy to get one
(especially useful from Velocity scripts since they can't do any new).
ProgressMonitor
that doesn't do anything
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |