Beispiel #1
0
 private Reviewer loadReviewer(String name, String email) {
   Reviewer reviewer = new Reviewer(name, email);
   IStorage versionFile = getReviewerVersionFile(reviewer);
   if (versionFile.exists()) {
     ReviewerVersionFile file = new ReviewerVersionFile();
     List<ReviewerVersion> versions = file.load(versionFile);
     for (ReviewerVersion version : versions) {
       reviewer.addReviewerVersion(version);
     }
   }
   reviewers.put(email, reviewer);
   return reviewer;
 }
Beispiel #2
0
 private void saveReviewerVersionFile(Reviewer reviewer) {
   IStorage versionFile = getReviewerVersionFile(reviewer);
   ReviewerVersionFile file = new ReviewerVersionFile();
   file.save(versionFile, reviewer);
 }