Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

files of review

c cc July 12, 2011

Hi,

How can I obtain a list of all files that belong to a review? I already have the reviewId and the reviewData.

Regards,

Christian

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted
jhinch (Atlassian)
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 12, 2011

You can use ReviewService#getReviewItemsForReview to get all the items in the review. You can then check to see if it is an instanceof FisheyeReviewItemData and cast it to that class if it is. This will give you all the revisions added to the review, you'll then need to aggregate the toPaths to get a list of the files in the review

0 votes
c cc July 12, 2011

Hi Jason,

thanks for your answer.

How can I get an instance of ReviewService? Is there an other way than

<address>ReviewService rs = (ReviewService) SpringContext.getComponent("reviewService");</address>

Therefore I need to import com.cenqua.fisheye.config.SpringContext - but I do not know which dependeny I need in pom.xml for that. Which dependeny do I need?

(I think I have already ReviewItemData but this do not contain all reviewer and files - only that which have an entry.)

jhinch (Atlassian)
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 12, 2011

From a plugin perspective, you should be able to automatically inject the ReviewService in almost every module type. If you are in a component then you should be able to define the ReviewService as a constructor parameter and it should be injected when your component is instantiated

c cc July 12, 2011

I do not know then how to get access to ReviewService but i think I have solved the problem. Thanks!

TAGS
AUG Leaders

Atlassian Community Events