Package org.davinci.server.user

Examples of org.davinci.server.user.IDavinciProject


  private ReviewCacheManager() {
    stop = false;
  }

  public boolean updateComments(List<Comment> comments) {
    IDavinciProject project;
    Hashtable<String, Comment> reviewHash;
    for (Comment comment : comments) {
      project = comment.getProject();
      synchronized(project){
        reviewHash = loadReviewFile(project);

        if (null == reviewHash) {
          theLogger.severe("Can't find project " + project.getProjectName()
              + " review file for comment " + comment.getId());
          continue;
        }

        reviewHash.put(comment.getId(), comment);
View Full Code Here


   * @return
   */
  public boolean destroyAllReview() {
    Set<IDavinciProject> keys = reviewFilePool.keySet();
    for (Iterator<IDavinciProject> it=keys.iterator();it.hasNext();) {
      IDavinciProject project = it.next();
      destroyReviewFile(project, true);
      it.remove();
    }
    return true;
  }
View Full Code Here

  }

  public void recycle() {
    Set<IDavinciProject> keySet = reviewFilePool.keySet();
    for (Iterator<IDavinciProject> it=keySet.iterator();it.hasNext();) {
      IDavinciProject prj = it.next();
      if (!this.destroyReviewFile(prj, false)) { // Destroy will persist the project.
        this.persistReviewFile(prj);
        /* this removes the project from the file hash */
        it.remove();
       
 
View Full Code Here

      version.setDraft(false);
      reviewManager.publish(du, version);
    } else if ("delete".equalsIgnoreCase(type)) {
      du.deleteVersion(vTime);
      reviewManager.saveVersionFile(du);
      IDavinciProject project = new DavinciProject();
      project.setOwnerId(du.getName());
      ReviewCacheManager.$.clearReviewByProject(project);
      // TODO delete the version folder
    }
    this.responseString = "OK";
  }
View Full Code Here

TOP

Related Classes of org.davinci.server.user.IDavinciProject

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.