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()); } }
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()); }
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(); }
protected void initWorkspace() { this.baseDirectory = ServerManager.getServerManager().getBaseDirectory(); this.usersCount = this.baseDirectory.list().length; theLogger.info("Setting [user space] to: " + baseDirectory.getAbsolutePath()); }