Пример #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();
  }
Пример #2
0
  protected void initWorkspace() {
    this.baseDirectory = ServerManager.getServerManager().getBaseDirectory();
    this.usersCount = this.baseDirectory.list().length;

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