Пример #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());
 }