org.jenkinsci.plugins.jenkinsreviewbot
Class ReviewboardOps
java.lang.Object
org.jenkinsci.plugins.jenkinsreviewbot.ReviewboardOps
public class ReviewboardOps
- extends Object
Created by ymeymann on 24/04/15.
Method Summary |
void |
ensureAuthentication(ReviewboardConnection con)
|
static void |
ensureAuthentication(ReviewboardConnection con,
org.apache.commons.httpclient.HttpClient http)
|
org.jenkinsci.plugins.jenkinsreviewbot.ReviewboardOps.DiffHandle |
getDiff(ReviewboardConnection con,
String url)
|
org.jenkinsci.plugins.jenkinsreviewbot.ReviewboardOps.DiffHandle |
getDiff(String url)
|
static ReviewboardOps |
getInstance()
|
Collection<Review.Slim> |
getPendingReviews(ReviewboardConnection con,
long periodInHours,
boolean restrictByUser,
int repoid)
|
Map<String,String> |
getProperties(ReviewboardConnection con,
String url)
|
Map<String,String> |
getProperties(String url)
|
Map<String,Integer> |
getRepositories()
|
Map<String,Integer> |
getRepositories(ReviewboardConnection con)
|
static boolean |
logout(ReviewboardConnection con,
org.apache.commons.httpclient.HttpClient http)
|
boolean |
postComment(ReviewboardConnection con,
String url,
String msg,
boolean shipIt,
boolean markdown)
|
boolean |
postComment(String url,
String msg,
boolean shipIt,
boolean markdown)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static ReviewboardOps getInstance()
logout
public static boolean logout(ReviewboardConnection con,
org.apache.commons.httpclient.HttpClient http)
ensureAuthentication
public void ensureAuthentication(ReviewboardConnection con)
throws IOException
- Throws:
IOException
ensureAuthentication
public static void ensureAuthentication(ReviewboardConnection con,
org.apache.commons.httpclient.HttpClient http)
throws IOException
- Throws:
IOException
getDiff
public org.jenkinsci.plugins.jenkinsreviewbot.ReviewboardOps.DiffHandle getDiff(String url)
throws IOException
- Throws:
IOException
getDiff
public org.jenkinsci.plugins.jenkinsreviewbot.ReviewboardOps.DiffHandle getDiff(ReviewboardConnection con,
String url)
throws IOException
- Throws:
IOException
getProperties
public Map<String,String> getProperties(String url)
throws IOException
- Throws:
IOException
getProperties
public Map<String,String> getProperties(ReviewboardConnection con,
String url)
throws IOException
- Throws:
IOException
getPendingReviews
public Collection<Review.Slim> getPendingReviews(ReviewboardConnection con,
long periodInHours,
boolean restrictByUser,
int repoid)
throws IOException,
javax.xml.bind.JAXBException,
ParseException
- Throws:
IOException
javax.xml.bind.JAXBException
ParseException
postComment
public boolean postComment(String url,
String msg,
boolean shipIt,
boolean markdown)
throws IOException
- Throws:
IOException
postComment
public boolean postComment(ReviewboardConnection con,
String url,
String msg,
boolean shipIt,
boolean markdown)
throws IOException
- Throws:
IOException
getRepositories
public Map<String,Integer> getRepositories()
throws IOException,
javax.xml.bind.JAXBException,
ParseException
- Throws:
IOException
javax.xml.bind.JAXBException
ParseException
getRepositories
public Map<String,Integer> getRepositories(ReviewboardConnection con)
throws IOException,
javax.xml.bind.JAXBException,
ParseException
- Throws:
IOException
javax.xml.bind.JAXBException
ParseException
Copyright © 2004-2015. All Rights Reserved.