|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ReviewService
Provides an API for working with reviews.
Each method performs its operations within a transaction.
Nested Class Summary | |
---|---|
static class |
ReviewService.Action
The actions which can be performed on a review, changing its state. |
Method Summary | |
---|---|
ReviewData |
addChangesetsToReview(PermId<ReviewData> id,
java.lang.String repository,
java.util.List<ChangesetData> changesets)
Add a changeset to existing review -- the review will contain all the revisions in the changesets. |
VersionedLineCommentData |
addComment(PermId<ReviewItemData> id,
VersionedLineCommentData comment)
Add a comment to a review item. |
FisheyeReviewItemData |
addFileToReview(PermId<ReviewData> id,
FileData file,
FileData diff)
Adds a file to the review, optionally diff'ed to a second file. |
ReviewItemData |
addFisheyeDiff(PermId<ReviewData> id,
java.lang.String repositoryName,
java.lang.String fromPath,
java.lang.String fromRevision,
java.lang.String toPath,
java.lang.String toRevision)
Add the changes between two files in a fisheye repository to the review. |
GeneralCommentData |
addGeneralComment(PermId<ReviewData> id,
GeneralCommentData comment)
Add a general comment to a review. |
ReviewData |
addPatchToReview(PermId<ReviewData> id,
java.lang.String patch)
Add a patch to existing review -- the review will contain provied patch |
GeneralCommentData |
addReply(PermId<CommentData> commentId,
GeneralCommentData comment)
Add a reply to comment in a review. |
void |
addReviewers(PermId<ReviewData> id,
java.lang.String[] userNames)
Add reviewers to a review |
FisheyeReviewItemData |
addReviewItem(PermId<ReviewData> reviewId,
FisheyeReviewItemData reviewItem)
Adds the given review item to the review. |
ReviewItemData |
addReviewItemRevisions(PermId<ReviewData> reviewId,
PermId<ReviewItemData> itemId,
java.util.List<java.lang.String> revisions)
Adds the given list of revisions to the supplied review item, merging if required. |
DetailedReviewData |
addReviewRevisions(PermId<ReviewData> reviewId,
java.util.List<CrucibleRevisionData> reviewItems)
Adds a review item for each of the CrucibleRevisionData given. |
ReviewData |
changeState(PermId<ReviewData> id,
java.lang.String action)
Change the state of a review by performing an action on it. |
ReviewData |
closeReviewWithSummary(PermId<ReviewData> id,
java.lang.String message)
Complete/uncomplte review by reviewer |
void |
completeReview(PermId<ReviewData> reviewDataPermId,
boolean complete)
Complete/uncomplete review by reviewer |
DetailedReviewData |
createDetailedReview(DetailedReviewData review)
Create a new review from the attributes in a DetailedReviewData instance (similar to
createReview(com.atlassian.crucible.spi.data.ReviewData) , but also
copies the list of Reviewers into the
new review. |
ReviewData |
createReview(ReviewData review)
Create a new review from the attributes in a ReviewData instance. |
ReviewData |
createReviewFromChangeSets(ReviewData review,
java.lang.String repository,
java.util.List<ChangesetData> changesets)
Create a new review from a changesets -- the review will contain all the revisions in the changesets |
ReviewData |
createReviewFromPatch(ReviewData review,
java.lang.String patch)
Create a new review from a patch. |
void |
deleteReview(PermId<ReviewData> id)
Permanently delete a review. |
java.util.List<ActionData> |
getAllowedActionsForReview(PermId<ReviewData> id)
Get a list of the actions which the current user is allowed to perform on the review. |
java.util.List<ActionData> |
getAllowedTransitionsForReview(PermId<ReviewData> id)
Get a list of the actions which the current user can perform on this review, given its current state and the user's permissions. |
java.util.Set<ReviewerData> |
getAllReviewers(PermId<ReviewData> id)
Get the reviewer data of all the reviewers on a review. |
java.util.List<ReviewData> |
getAllReviews(boolean details)
Get a ReviewData instance for each review. |
java.util.List<ReviewData> |
getAllReviewsForItem(java.lang.String path,
java.lang.String repositoryName,
boolean details)
Finds all reviews that contain at least one revision of the specified file. |
java.util.List<VersionedLineCommentData> |
getAllRevisionComments(PermId<ReviewData> id)
Get a list of the comments on all the review items in a review, i.e., excluding general comments, that are visible to the effective user for a particular review. |
java.util.List<ReviewData> |
getChildReviews(PermId<ReviewData> id)
Get the child reviews belonging to a review |
CommentData |
getComment(PermId<CommentData> id)
Get a comment. |
java.util.Set<ReviewerData> |
getCompletedReviewers(PermId<ReviewData> reviewDataPermId)
Get the reviewer data of the reviewers that already completed a review. |
java.util.List<ReviewData> |
getCustomFilterReviews(CustomFilterData filter,
boolean details)
Get a list of all the reviews for which the user involved based on predefined criteria. |
java.util.List<ReviewData> |
getFilteredReviews(java.lang.String filter,
boolean details)
Get a list of all the reviews for which the user involved based on predefined criteria. |
java.util.List<GeneralCommentData> |
getGeneralComments(PermId<ReviewData> id)
Get a list of the general comments visible to the effective user for a particular review. |
java.util.List<CustomFieldDefData> |
getMetrics(int metricsVersion)
Get metrics metadata for specified metrics version |
java.util.List<GeneralCommentData> |
getReplies(PermId<CommentData> commentId)
Get a list of the comment replies that are visible to the effective user. |
ReviewData |
getReview(PermId<ReviewData> id,
boolean details)
Get a single review from its permId. |
FisheyeReviewItemData |
getReviewItem(PermId<ReviewData> reviewDataPermId,
PermId<ReviewItemData> reviewItemDataPermId)
Returns detailed information for a specific review item. |
java.util.List<ReviewItemData> |
getReviewItemsForReview(PermId<ReviewData> id)
Get a list of all the items in a review. |
java.util.List<ReviewData> |
getReviewsInStates(ReviewData.State[] states,
boolean details)
Retrieves all reviews that are in one of the the specified states. |
java.util.Set<ReviewerData> |
getUncompletedReviewers(PermId<ReviewData> reviewDataPermId)
Get the reviewer data of the reviewers that didn't complete the review. |
java.util.List<ReviewData> |
getUncompletedReviewsForUser(java.lang.String userName)
Get a list of all the reviews for which the user is a reviwer who has not completed the review. |
java.util.List<VersionedLineCommentData> |
getVersionedComments(PermId<ReviewItemData> id)
Get a list of the comments visible to the effective user for a particular review item. |
VersionInfo |
getVersionInfo()
Get Crucible version info |
boolean |
hasPermission(PermId<ReviewData> id,
java.lang.String actionName)
Does the current user have permission to perform the given action on the given review? |
DetailedReviewData |
markAllCommentsAsRead(PermId<ReviewData> reviewId)
For the effective user, mark all comments in a review as read (except those marked as leave unread). |
CommentData |
markCommentAsLeaveUnread(PermId<CommentData> commentId)
Mark a comment as leave unread for the effective user (even if already marked as leave unread). |
CommentData |
markCommentAsRead(PermId<CommentData> commentId)
Mark a comment as read by the effective user (even if already read). |
void |
postComment(PermId<CommentData> commentId)
Post a comment in draft state (any kind of comment, also reply). |
void |
postComments(PermId<ReviewData> id)
Post all draft comments, including replies, authored by the effective user. |
void |
removeComment(PermId<CommentData> commentId)
Remove a comment, and all of its descendent draft replies, from a review. |
void |
removeReviewer(PermId<ReviewData> id,
java.lang.String userName)
Remove reviewers from a review |
void |
removeReviewItem(PermId<ReviewData> reviewId,
PermId<ReviewItemData> itemId)
Remove an item from a review. |
void |
removeReviewItemRevisions(PermId<ReviewData> reviewId,
PermId<ReviewItemData> itemId,
java.util.List<java.lang.String> revisions)
Removes the revisions given from the review item in the review specified by the id. |
FisheyeReviewItemData |
setReviewItem(PermId<ReviewData> reviewId,
PermId<ReviewItemData> itemId,
FisheyeReviewItemData reviewItem)
sets the review item specified by itemId with the given reviewItem. |
void |
updateComment(PermId<CommentData> commentId,
GeneralCommentData comment)
Update the details of a comment. |
Method Detail |
---|
ReviewData createReview(ReviewData review)
review
- a ReviewData containing the attributes of the review.
DetailedReviewData createDetailedReview(DetailedReviewData review)
DetailedReviewData
instance (similar to
createReview(com.atlassian.crucible.spi.data.ReviewData)
, but also
copies the list of Reviewers
into the
new review.
review
- a DetailedReviewData
containing the attributes of the review.
DetailedReviewData
instance
with the permId attribute set to the id of the review which was just created.ReviewData createReviewFromPatch(ReviewData review, java.lang.String patch)
review
- a ReviewData containing the attributes of the review.patch
- a String containing the patch as a stream of UTF8 characters.
ReviewData createReviewFromChangeSets(ReviewData review, java.lang.String repository, java.util.List<ChangesetData> changesets)
review
- a ReviewData containing the attributes of the review.repository
- a String naming the repository the changesets are from.changesets
- a list of changesets containing the name of the changeset, relative to the repository
ReviewData addChangesetsToReview(PermId<ReviewData> id, java.lang.String repository, java.util.List<ChangesetData> changesets)
If the specified changeset contains newer revisions of files that are already in the review and have comments on them, these files will not be added to the review.
id
- an id of reviewrepository
- repository name of added changesetchangesets
- a list of changesets containing the name of the changeset, relative to the repo given in the ReviewData
DetailedReviewData addReviewRevisions(PermId<ReviewData> reviewId, java.util.List<CrucibleRevisionData> reviewItems) throws java.lang.IllegalArgumentException, NotFoundException, NotPermittedException
CrucibleRevisionData
given.
reviewId
- the PermId
of the review.reviewItems
- a list of CrucibleRevisionData
, each one containing
the desired shape of the review item. If the CrucibleRevisionData
contains a path that already exists (i.e., an existing review item with the same path is in
the review), then the CrucibleRevisionData
given here
will merge the revisions with the existing review item revisions instead of creating a new
review item. The merge is documented in addReviewItemRevisions(com.atlassian.crucible.spi.PermId, com.atlassian.crucible.spi.PermId, java.util.List)
.
DetailedReviewData
object with the added CrucibleRevisionData
java.lang.IllegalArgumentException
- if the repository does not exist for one or more of the given CrucibleRevisionData
, or if one or more of the
path does not exist in the repository specified in the CrucibleRevisionData
, or if a revision
specified in the CrucibleRevisionData
does not exist.
NotFoundException
- when the review does not exist
NotPermittedException
- if the caller does not have permission to modify the reviewFisheyeReviewItemData addReviewItem(PermId<ReviewData> reviewId, FisheyeReviewItemData reviewItem) throws java.lang.IllegalArgumentException, NotFoundException, NotPermittedException
reviewId
- reviewItem
- a valid review item.
java.lang.IllegalArgumentException
- if the review item provided is invalid. An valid review item is one whose paths
and revisions exists in the source provided.
NotFoundException
- if the reviewId is not found.
NotPermittedException
- if the user does not have permission to modify the review.FisheyeReviewItemData setReviewItem(PermId<ReviewData> reviewId, PermId<ReviewItemData> itemId, FisheyeReviewItemData reviewItem) throws java.lang.IllegalArgumentException, NotFoundException, NotPermittedException
reviewId
- a valid review iditemId
- a valid review item idreviewItem
- a review item to replace the given itemId.
java.lang.IllegalArgumentException
- if the FisheyeReviewItemData
is invalid.
a valid FisheyeReviewItemData is one where the paths and revisions and the
source exists.
NotFoundException
- if the review does not exist, or if the review item does not exist.
NotPermittedException
- if the caller does not have permission to modify the review, or if the given
itemId could not be deleted (due to having existing comments).ReviewItemData addReviewItemRevisions(PermId<ReviewData> reviewId, PermId<ReviewItemData> itemId, java.util.List<java.lang.String> revisions) throws java.lang.IllegalArgumentException, NotFoundException, NotPermittedException
a.txt
contains revisions 3 to 6, and if:
a.txt
will have revisions 3--4--5--6
a.txt
will have revisions 2--3--6--7
a.txt
will have revisions 2--3--6
a.txt
will have revisions 3--6--7
a.txt
will have revisions 2--3--4--6
a.txt
will have revisions 3--4--6--7
reviewId
- the id of the reviewitemId
- the id of the review itemrevisions
- a list of revisions to add to the review item, merging if required. If a revision already exists
in the given review item, then the given revision is ignored.
java.lang.IllegalArgumentException
- when one or more of the given list of revision does not exist
NotFoundException
- if the review does not exist, or if the review item does not exist
NotPermittedException
- if the caller does not have permission to modify the reviewvoid removeReviewItemRevisions(PermId<ReviewData> reviewId, PermId<ReviewItemData> itemId, java.util.List<java.lang.String> revisions) throws java.lang.IllegalArgumentException, NotFoundException, NotPermittedException
reviewId
- the id of the reviewitemId
- the id of the review item from which to remove the list of revisionsrevisions
- a list of revisions to remove. If the revision does not exist in the review item, it is ignored
java.lang.IllegalArgumentException
- if any of the given list of revisions does not exist, or if any revision could
not be deleted due to it having exiting comments.
NotFoundException
- when the review does not exist, or when the review item id is invalid
NotPermittedException
- if the caller does not have permission to modify the reviewReviewData addPatchToReview(PermId<ReviewData> id, java.lang.String patch)
id
- an id of reviewpatch
- a String containing the patch as a stream of UTF8 characters.
FisheyeReviewItemData addFileToReview(PermId<ReviewData> id, FileData file, FileData diff)
id
- of the review to add the file tofile
- file to include in the review. Required.diff
- when not null
, fileToReview
gets diff'ed to this file.
FisheyeReviewItemData
instance.java.util.List<ReviewData> getAllReviews(boolean details)
details
- true if details should be fetched for the review
ReviewData getReview(PermId<ReviewData> id, boolean details)
id
- the PermIddetails
- true if details should be fetched for the review.
NotFoundException
- if the review could not be found.java.util.List<ActionData> getAllowedActionsForReview(PermId<ReviewData> id)
This shows actions the user has permission to perform - the review may not be in a suitable state for all these actions to be performed.
id
- the PermIdjava.util.List<ActionData> getAllowedTransitionsForReview(PermId<ReviewData> id)
id
- the PermIdjava.util.List<ReviewData> getReviewsInStates(ReviewData.State[] states, boolean details)
states
- of reviews to fetchdetails
- true if details should be fetched for reviews
java.util.Set<ReviewerData> getAllReviewers(PermId<ReviewData> id)
id
- the PermIdjava.util.Set<ReviewerData> getCompletedReviewers(PermId<ReviewData> reviewDataPermId)
reviewDataPermId
- the PermIdjava.util.Set<ReviewerData> getUncompletedReviewers(PermId<ReviewData> reviewDataPermId)
reviewDataPermId
- the PermIdvoid addReviewers(PermId<ReviewData> id, java.lang.String[] userNames)
id
- the PermIduserNames
- the set of names of the users to make a reviewervoid removeReviewer(PermId<ReviewData> id, java.lang.String userName)
id
- the PermIduserName
- the username of the user to remove a reviewer roleReviewItemData addFisheyeDiff(PermId<ReviewData> id, java.lang.String repositoryName, java.lang.String fromPath, java.lang.String fromRevision, java.lang.String toPath, java.lang.String toRevision)
id
- the PermIdrepositoryName
- a String naming the repository to use.fromPath
- the path of the older version of the file within the repository.fromRevision
- the revision of the older version.toPath
- the path of the newer version of the file within the repository (often the same as fromPath)toRevision
- the revision of the newer version of the file.
void removeReviewItem(PermId<ReviewData> reviewId, PermId<ReviewItemData> itemId)
reviewId
- the PermIditemId
- the PermIdjava.util.List<ReviewItemData> getReviewItemsForReview(PermId<ReviewData> id)
id
- PermIdVersionedLineCommentData addComment(PermId<ReviewItemData> id, VersionedLineCommentData comment)
If no line ranges are specified in the comment a review item level comment
is created, otherwise an inline comment is created. When creating an inline
comment, if using the deprecated VersionedLineCommentData.getFromLineRange()
and VersionedLineCommentData.getToLineRange()
(instead of
VersionedLineCommentData.getLineRanges()
),
the comment will be created on the oldest and newest revision of the review item.
Emits a CommentCreatedEvent
for the created comment.
id
- the PermId<ReviewItemData>
of the item to add the comment to.comment
- a VersionedLineCommentData
containing the details of the comment.
VersionedLineCommentData
with the details of the created comment.
java.lang.NullPointerException
- if any argument is null
NotFoundException
- if the specified review item doesn't exist
NotPermittedException
- if the effective principal is not permitted to comment on the review
java.lang.IllegalArgumentException
- if the comment refers to a non-existent revision of the review item, or
is to be made on more than two revisions of the review item
java.lang.IllegalStateException
- if the review containing the review item is not open for
commenting (see ReviewData.State
)GeneralCommentData addGeneralComment(PermId<ReviewData> id, GeneralCommentData comment)
Emits a CommentCreatedEvent
for the created comment.
id
- the PermId<ReviewData>
of the review to add the comment tocomment
- a GeneralCommentData
containing the details of the comment
GeneralCommentData
with the details of the created comment
java.lang.NullPointerException
- if any argument is null
java.lang.IllegalArgumentException
- if the review permId is not well-formed;
if replies are specified for the new comment
NotFoundException
- if the review does not exist
NotPermittedException
- if the effective principal is not permitted to comment on the review
java.lang.IllegalStateException
- if the review is not open for commenting
(see ReviewData.State
)CommentData getComment(PermId<CommentData> id)
id
- the PermId<CommentData>
of the comment to retrieve.
CommentData
subclass.
java.lang.NullPointerException
- if id is null
java.lang.IllegalArgumentException
- if the comment permId is not well-formed
NotFoundException
- if the comment doesn't exist
NotPermittedException
- if the effective principal is not permitted to view the review containing
the comment,
or if the comment is a draft and the effective user isn't its authorvoid updateComment(PermId<CommentData> commentId, GeneralCommentData comment)
Although you can update any type of comment, it's not possible to modify the revisions or line ranges of versioned line comments.
Emits a CommentUpdatedEvent
for the updated comment.
commentId
- the PermId<CommentData>
of the comment to update.comment
- a GeneralCommentData
containing the details of the comment.
java.lang.NullPointerException
- if any argument is null
java.lang.IllegalArgumentException
- if the comment permId is not well-formed;
if the comment specifies any replies
NotFoundException
- if the comment doesn't exist
NotPermittedException
- if the effective user is not permitted to comment on the review containing
the comment,
or if the effective user is not author of the comment
java.lang.IllegalStateException
- if the review containing the comment is not open
for commenting (see ReviewData.State
)void removeComment(PermId<CommentData> commentId) throws NotFoundException
Emits a CommentDeletedEvent
for the comment if
it wasn't a draft. Note that no event is emitted for removed descendent draft replies.
commentId
- the PermId<CommentData>
of the comment to remove.
java.lang.NullPointerException
- if any argument is null
java.lang.IllegalArgumentException
- if the comment permId is not well-formed;
if the comment has non-draft replies
NotFoundException
- if the comment doesn't exist
NotPermittedException
- if the effective user is not permitted to comment on the review containing
the comment,
or if the effective user is not the author of the comment
java.lang.IllegalStateException
- if the review containing the comment is not open
for commenting (see ReviewData.State
)GeneralCommentData addReply(PermId<CommentData> commentId, GeneralCommentData comment)
Emits a CommentCreatedEvent
for the added reply.
commentId
- the PermId<CommentData>
of the comment to add reply to.comment
- a GeneralCommentData
containing the details of the reply
GeneralCommentData
with the details of the comment added
java.lang.NullPointerException
- if any argument is null
java.lang.IllegalArgumentException
- if the comment permId is not well-formed;
if the comment specifies any replies;
if you add a non-draft reply to a draft parent comment
NotFoundException
- if the parent comment doesn't exist
NotPermittedException
- if the effective user is not permitted to comment on the review containing
the parent comment
java.lang.IllegalStateException
- if the review containing the parent comment is not open
for commenting (see ReviewData.State
)void postComment(PermId<CommentData> commentId)
Note that once a review is no longer open for comments, e.g., in summary or closed, there are no longer any draft comments.
Emits a CommentUpdatedEvent
for the posted comment,
commentId
- the PermId<CommentData>
of the comment to post.
java.lang.NullPointerException
- if commentId
or commentId.getId()
are null
java.lang.IllegalArgumentException
- if the comment permId isn't valid,
or if the comment isn't a draft,
or if posting a draft reply to a draft parent comment
NotFoundException
- if the comment doesn't exist
NotPermittedException
- if the effective user is not permitted to comment
on the review containing the comment,
or the effective user is not the author of the comment.
java.lang.IllegalStateException
- if the review containing the comment is not open
for commenting (see ReviewData.State
)void postComments(PermId<ReviewData> id)
Emits a CommentCreatedEvent
for each draft
comment posted.
id
- the PermId<ReviewData>
of the review to post the comment.
java.lang.NullPointerException
- if id
is null
java.lang.IllegalArgumentException
- if id
is not a well-formed review PermId
NotFoundException
- if the review doesn't exist
NotPermittedException
- if the effective user is not permitted to comment on the review
java.lang.IllegalStateException
- if the review is not open for commenting
(see ReviewData.State
)DetailedReviewData markAllCommentsAsRead(PermId<ReviewData> reviewId)
reviewId
- the PermId<ReviewData>
of the review to mark all comments as read.
java.lang.NullPointerException
- if reviewId
is null
java.lang.IllegalArgumentException
- if reviewId
is not a well-formed review permId
NotFoundException
- if the review doesn't exist
NotPermittedException
- if the effective user is not permitted to comment on the review
java.lang.IllegalStateException
- if the review is not open for commenting
(see ReviewData.State
)CommentData markCommentAsRead(PermId<CommentData> commentId)
commentId
- the PermId<CommentData>
of the comment to mark as read.
java.lang.NullPointerException
- if any argument is null
java.lang.IllegalArgumentException
- if the comment permId is not well-formed
NotFoundException
- if the comment doesn't exist
NotPermittedException
- if the effective user is not permitted to comment on the review
java.lang.IllegalStateException
- if the review containing the comment is not open
for commenting (see ReviewData.State
)CommentData markCommentAsLeaveUnread(PermId<CommentData> commentId)
commentId
- the PermId<CommentData>
to leave unread.
java.lang.NullPointerException
- if any argument is null
java.lang.IllegalArgumentException
- if the comment permId is not well-formed
NotFoundException
- if the comment doesn't exist
NotPermittedException
- if the effective user is not permitted to comment on the review
java.lang.IllegalStateException
- if the review containing the comment is not open
for commenting (see ReviewData.State
)void completeReview(PermId<ReviewData> reviewDataPermId, boolean complete)
reviewDataPermId
- the PermIdcomplete
- - true-complete, false - uncompleteReviewData closeReviewWithSummary(PermId<ReviewData> id, java.lang.String message)
id
- the PermIdmessage
- summmary message
java.util.List<GeneralCommentData> getGeneralComments(PermId<ReviewData> id)
Note that the list returned by this method only contains the root-level
comments and not any replies. The replies to each comment are recursively
accessed through the CommentData.getReplies()
method.
id
- the PermId<ReviewData>
of the review.
List<GeneralCommentData>
containing the comments or an empty
list if there are none
java.lang.NullPointerException
- if id is null
java.lang.IllegalArgumentException
- if the review permId is not well-formed
NotPermittedException
- if the effective principal is not permitted to view the review
NotFoundException
- if the review does not existjava.util.List<VersionedLineCommentData> getVersionedComments(PermId<ReviewItemData> id)
Note that the list returned by this method only contains the root-level
comments and not any replies. The replies to each comment are recursively
accessed through the CommentData.getReplies()
method.
id
- the PermId<ReviewItemData>
of the item.
List<VersionedLineCommentData>
containing the comments or an empty
list if there are none
java.lang.NullPointerException
- if id is null
NotFoundException
- if the specified review item doesn't exist
NotPermittedException
- if the effective principal is not permitted to view the
review containing the review itemjava.util.List<VersionedLineCommentData> getAllRevisionComments(PermId<ReviewData> id)
Note that the list returned by this method only contains the root-level
comments and not any replies. The replies to each comment are recursively
accessed through the CommentData.getReplies()
method.
id
- the PermId<ReviewData>
of the review.
List<VersionedLineCommentData>
containing the comments or an
empty list if there are none
java.lang.NullPointerException
- if id is null
java.lang.IllegalArgumentException
- if the review permId is not well-formed
NotPermittedException
- if you are not permitted to view the review
NotFoundException
- if the review does not existjava.util.List<GeneralCommentData> getReplies(PermId<CommentData> commentId)
Note that the list returned by this method only contains the direct child
comments and not any more deeply nested replies. The nested replies to each
returned reply are recursively accessed through the
CommentData.getReplies()
method.
commentId
- id of the parent comment
java.lang.NullPointerException
- if any argument is null
java.lang.IllegalArgumentException
- if the comment permId is not well-formed
NotFoundException
- if the comment doesn't exist
NotPermittedException
- if the effective principal is not permitted to
view the review containing the comment;
if the comment is a draft and the effective user isn't its author;java.util.List<ReviewData> getUncompletedReviewsForUser(java.lang.String userName)
userName
- a String naming the user.
java.util.List<ReviewData> getFilteredReviews(java.lang.String filter, boolean details)
Filter names are:
filter
- a predefined filter namedetails
- true if details should be fetched for the review
java.util.List<ReviewData> getCustomFilterReviews(CustomFilterData filter, boolean details)
filter
- custom filter definitiondetails
- true if details should be fetched for the review
java.util.List<ReviewData> getAllReviewsForItem(java.lang.String path, java.lang.String repositoryName, boolean details)
path
- path to find in reviewsrepositoryName
- repository to search for filedetails
- output format with details when true
FisheyeReviewItemData getReviewItem(PermId<ReviewData> reviewDataPermId, PermId<ReviewItemData> reviewItemDataPermId)
reviewDataPermId
- review idreviewItemDataPermId
- review item id
VersionInfo getVersionInfo()
void deleteReview(PermId<ReviewData> id)
id
- the PermId of the Review to delete.ReviewData changeState(PermId<ReviewData> id, java.lang.String action)
id
- the PermIdaction
- the string representation of Action to perform.
java.util.List<ReviewData> getChildReviews(PermId<ReviewData> id)
id
- the PermIdjava.util.List<CustomFieldDefData> getMetrics(int metricsVersion)
metricsVersion
- metric version
boolean hasPermission(PermId<ReviewData> id, java.lang.String actionName)
id
- review to check permission againsactionName
- action to be performed
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |