/** * @see com.perforce.p4java.option.Options#processOptions(com.perforce.p4java.server.IServer) */ public List<String> processOptions(IServer server) throws OptionsException { this.optionList = this.processFields(OPTIONS_SPECS, this.getMaxUsers(), this.isIncludeServiceUsers(), this.isExtendedOutput()); return this.optionList; }
public List<IUserSummary> findUsers(IOptionsServer server, int maxResults) throws P4JavaException { GetUsersOptions options = new GetUsersOptions(); options.setMaxUsers(maxResults); return server.getUsers(null, options); }
@Override public List<IUserSummary> getUsers( final List<String> userList, final int maxUsers) throws ConnectionException, RequestException, AccessException { try { return getUsers(userList, new GetUsersOptions().setMaxUsers(maxUsers)); } catch (final ConnectionException | RequestException | AccessException exc) { throw exc; } catch (P4JavaException exc) { throw new RequestException(exc.getMessage(), exc); } } }
/** * @see com.perforce.p4java.option.Options#processOptions(com.perforce.p4java.server.IServer) */ public List<String> processOptions(IServer server) throws OptionsException { this.optionList = this.processFields(OPTIONS_SPECS, this.getMaxUsers(), this.isIncludeServiceUsers(), this.isExtendedOutput()); return this.optionList; }
@Override public List<IUserSummary> getUsers( final List<String> userList, final int maxUsers) throws ConnectionException, RequestException, AccessException { try { return getUsers(userList, new GetUsersOptions().setMaxUsers(maxUsers)); } catch (final ConnectionException | RequestException | AccessException exc) { throw exc; } catch (P4JavaException exc) { throw new RequestException(exc.getMessage(), exc); } } }