com.twelvegm.hudson.plugin.reviewboard
Class ReviewRequest

java.lang.Object
  extended by com.twelvegm.hudson.plugin.reviewboard.ReviewRequest

public class ReviewRequest
extends Object

Represents a single Review Request in Reviewboard. Currently not a complete model of a review request. Only contains values needed for the Reviewboard Hudson Plugin. This should be expanded as more fields are required.

Version:
1.0-beta
Author:
Ryan Shelley

Constructor Summary
ReviewRequest(Long changeListID, Long reviewBoardID, String author, String changeDescription)
          Constructs a new Review Request object based upon values in Reviewboard.
 
Method Summary
 String getAuthor()
          Author of changelist from Reviewboard.
 String getChangeDescription()
          Description of change from Reviewboard.
 Long getChangeListID()
          Returns the changelist ID associated with a review request.
 Long getReviewBoardID()
          Returns the reviewboard ID associated with the review request
 void setAuthor(String author)
          Sets the author of the changelist from Reviewboard.
 void setChangeDescription(String changeDescription)
          Sets the change description value for this revie request.
 void setChangeListID(Long changeListID)
          Sets the changelist ID associated with a review request This value is often the changelist ID from SCM.
 void setReviewBoardID(Long reviewBoardID)
          Sets the Reviewboard ID that maps this object into a Reviewboard review request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReviewRequest

public ReviewRequest(Long changeListID,
                     Long reviewBoardID,
                     String author,
                     String changeDescription)
Constructs a new Review Request object based upon values in Reviewboard.

Parameters:
changeListID - ID from SCM associated with a builds external ID and review request ID
reviewBoardID - ID of review request in Reviewboard
author - author of change (usually the submitter of the changelist in SCM)
changeDescription - description of the change that was submit to SCM
Method Detail

getChangeListID

public Long getChangeListID()
Returns the changelist ID associated with a review request. This value is often the changelist ID from SCM.

Returns:
changelist ID from Reviewboard

setChangeListID

public void setChangeListID(Long changeListID)
Sets the changelist ID associated with a review request This value is often the changelist ID from SCM.

Parameters:
changeListID - changelist ID from Reviewboard

getReviewBoardID

public Long getReviewBoardID()
Returns the reviewboard ID associated with the review request

Returns:
reviewboard ID from reviewboard

setReviewBoardID

public void setReviewBoardID(Long reviewBoardID)
Sets the Reviewboard ID that maps this object into a Reviewboard review request.

Parameters:
reviewBoardID - Reviewboard ID of matching review request

getAuthor

public String getAuthor()
Author of changelist from Reviewboard. This value is often the author of the changelist from SCM.

Returns:
author of changelist from Reviewboard

setAuthor

public void setAuthor(String author)
Sets the author of the changelist from Reviewboard. This value is often the author of the changelist from SCM.

Parameters:
author - author of the changelist from Reviewboard

getChangeDescription

public String getChangeDescription()
Description of change from Reviewboard. This value is often the change description of the changelist from SCM.

Returns:
description of change from Reviewboard

setChangeDescription

public void setChangeDescription(String changeDescription)
Sets the change description value for this revie request. This value is often the change description of the changelist from SCM.

Parameters:
changeDescription -


Copyright © 2004-2012 Hudson. All Rights Reserved.