예제 #1
0
  public UserManagerImpl() {
    ServerManager serverManger = ServerManager.getServerManger();

    initWorkspace();

    String maxUsersStr = serverManger.getDavinciProperty(IDavinciServerConstants.MAX_USERS);
    if (maxUsersStr != null && maxUsersStr.length() > 0) {
      this.maxUsers = Integer.valueOf(maxUsersStr).intValue();
    }

    this.personManager = ServerManager.getServerManger().getPersonManager();
  }
예제 #2
0
 protected void initWorkspace() {
   ServerManager serverManger = ServerManager.getServerManger();
   try {
     this.baseDirectory = ServerManager.getServerManger().getBaseDirectory();
     this.usersCount = this.baseDirectory.list().length;
   } catch (Exception ex) {
     System.out.println("FATAL ERROR Starting maqetta: " + ex);
   }
   if (ServerManager.DEBUG_IO_TO_CONSOLE) {
     System.out.println("\nSetting [user space] to: " + baseDirectory.getAbsolutePath());
   }
 }
예제 #3
0
 public ReviewManager() {
   String basePath =
       ServerManager.getServerManger()
           .getDavinciProperty(IDavinciServerConstants.BASE_DIRECTORY_PROPERTY);
   baseDirectory = ServerManager.getServerManger().getBaseDirectory().newInstance(".");
   if (basePath != null) {
     IStorage dir = baseDirectory.newInstance(basePath);
     if (dir.exists()) baseDirectory = dir;
   }
   if (ServerManager.DEBUG_IO_TO_CONSOLE)
     System.out.println("\nSetting [user space] to: " + baseDirectory.getAbsolutePath());
 }