Ejemplo n.º 1
0
  public UserManagerImpl() {
    ServerManager serverManger = ServerManager.getServerManager();

    initWorkspace();

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

    this.personManager = ServerManager.getServerManager().getPersonManager();
  }
Ejemplo n.º 2
0
  protected void initWorkspace() {
    this.baseDirectory = ServerManager.getServerManager().getBaseDirectory();
    this.usersCount = this.baseDirectory.list().length;

    theLogger.info("Setting [user space] to: " + baseDirectory.getAbsolutePath());
  }