Package org.maqetta.server

Examples of org.maqetta.server.IStorage.mkdir()


  }

  public void saveDraft(IDesignerUser user, Version version) throws IOException {
    IStorage commentingDir = user.getCommentingDirectory();
    if (!commentingDir.exists()) {
      commentingDir.mkdir();
      (commentingDir.newInstance(commentingDir, "snapshot")).mkdir();
    }
    saveVersionFile(user);
  }
View Full Code Here


  }

  public void publish(IDesignerUser user, Version version) throws IOException {
    IStorage commentingDir = user.getCommentingDirectory();
    if (!commentingDir.exists()) {
      commentingDir.mkdir();
      (commentingDir.newInstance(commentingDir, "snapshot")).mkdir();
    }

    initVersionDir(user, version.getTime());
    saveVersionFile(user);
View Full Code Here

 
  private IStorage getReviewerVersionDirectory() throws IOException {
    //Init the directory to hold version info for all of the reviewers and return it
    IStorage reviewerVersionsDirectory = baseDirectory.newInstance(baseDirectory, Constants.REVIEW_DIRECTORY_NAME);
    if (!reviewerVersionsDirectory.exists()) {
      reviewerVersionsDirectory.mkdir();
    }
    return reviewerVersionsDirectory;
  }
  /**************************************************/
 
 
View Full Code Here

    IStorage commentingDir = user.getCommentingDirectory();
    IStorage versionDir = commentingDir.newInstance(commentingDir, "snapshot/" + timeStamp);
    if(versionDir.exists()) {
      return;
    }
    versionDir.mkdir();

    IStorage userDir = user.getUserDirectory();
    IStorage[] files = userDir.listFiles();
    for (int i = 0; i < files.length; i++) {
      String path = files[i].getAbsolutePath();
View Full Code Here

                  return "";
                }
            }

          IStorage userDir = this.baseDirectory;
            userDir.mkdir();

            localUser = new User(new LocalPerson(), userDir);
             IStorage settingsDir = this.baseDirectory.newInstance(userDir, IDavinciServerConstants.SETTINGS_DIRECTORY_NAME);
            if (!settingsDir.exists()) {
                 settingsDir.mkdir();
View Full Code Here

            userDir.mkdir();

            localUser = new User(new LocalPerson(), userDir);
             IStorage settingsDir = this.baseDirectory.newInstance(userDir, IDavinciServerConstants.SETTINGS_DIRECTORY_NAME);
            if (!settingsDir.exists()) {
                 settingsDir.mkdir();
                localUser.createProject(IDavinciServerConstants.DEFAULT_PROJECT);
            }
        } catch (IOException e) {
          return null; //TODO
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.