Package org.davinci.server.review

Examples of org.davinci.server.review.ReviewerVersion


        Element rootElement = document.createElement("reviewer");
        document.appendChild(rootElement);
       
        Iterator<ReviewerVersion> iterator = reviewer.getReviewerVersions();
        while (iterator.hasNext()) {
          ReviewerVersion version = iterator.next();
          Element element = document.createElement("version");
          element.setAttribute("designerID", version.getDesignerID());
          element.setAttribute("time", version.getTimeVersion());
          rootElement.appendChild(element);
        }

        Transformer transformer = TransformerFactory.newInstance().newTransformer();
        transformer.setOutputProperty(OutputKeys.METHOD, "xml"); //$NON-NLS-1$
View Full Code Here


          for (int i = 0; i < versionElements.getLength(); i++) {
            Element versionElement = (Element) versionElements.item(i);
           
            String designerID = versionElement.getAttribute("designerID");
            String time = versionElement.getAttribute("time");
            ReviewerVersion version = new ReviewerVersion(designerID, time);

            objects.add(version);

          }
        } catch (ParserConfigurationException e) {
View Full Code Here

      //NOTE: In theory, it would be good to remove the review any reviewers
      //no longer part of the review and persist the changes
    }
   
    //Deal with reviewers the designer has added to the review
    ReviewerVersion reviewerVersion = new ReviewerVersion(user.getUserID(), version.getTime());
    Reviewer tmpReviewer = null;
    for (int i = 0; i < emails.length; i++) {
      String email = emails[i];
      if (!email.equals(user.getPerson().getEmail())) {
        tmpReviewer = ReviewManager.getReviewManager().getReviewer("", email);
View Full Code Here

    Reviewer reviewerUser = commentingManager.getReviewer(userEmail);

    JSONWriter writer = new JSONWriter(true);
    Iterator<ReviewerVersion> iterator = reviewerUser.getReviewerVersions();
    while (iterator.hasNext()) {
      ReviewerVersion reviewerVersion = iterator.next();

      String reviewDesignerID = reviewerVersion.getDesignerID();
      String reviewTime = reviewerVersion.getTimeVersion();
      if (designerIDParm == null || designerIDParm.equals("") || designerIDParm.equals(reviewDesignerID)) {
        IDesignerUser designerUser = commentingManager.getDesignerUser(reviewDesignerID);
        /* designer user removed from the system (or never existed) */
        if(designerUser==null) continue;
        Version version = designerUser.getVersion(reviewTime);
View Full Code Here

TOP

Related Classes of org.davinci.server.review.ReviewerVersion

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.