org.jenkinsci.plugins.jenkinsreviewbot
Class ReviewboardOps

java.lang.Object
  extended by org.jenkinsci.plugins.jenkinsreviewbot.ReviewboardOps

public class ReviewboardOps
extends Object

Created by ymeymann on 24/04/15.


Nested Class Summary
static class ReviewboardOps.Item
           
static class ReviewboardOps.Items
           
static class ReviewboardOps.Link
           
static class ReviewboardOps.Links
           
static class ReviewboardOps.MyDateAdapter
           
static class ReviewboardOps.Repository
           
static class ReviewboardOps.Response
           
static class ReviewboardOps.ReviewItem
           
static class ReviewboardOps.ReviewRequest
           
static class ReviewboardOps.ReviewsRequests
           
static class ReviewboardOps.ReviewsResponse
           
static class ReviewboardOps.User
           
 
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
 

Method Detail

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.