public interface IUsersDelegator
Modifier and Type | Method and Description |
---|---|
java.util.List<IUserSummary> |
getUsers(java.util.List<java.lang.String> userList,
GetUsersOptions opts)
Get a list of Perforce users known to this Perforce server.
|
java.util.List<IUserSummary> |
getUsers(java.util.List<java.lang.String> userList,
int maxUsers)
Get a list of Perforce users known to this Perforce server.
|
java.util.List<IUserSummary> getUsers(java.util.List<java.lang.String> userList, GetUsersOptions opts) throws P4JavaException
Note that this implementation differs a bit from the p4 command line version in that it simply doesn't return any output for unmatched users.
userList
- if non-null, restrict output to users matching the passed-in list of users.opts
- GetUsersOptions object describing optional parameters; if null, no options are
setP4JavaException
- if any error occurs in the processing of this method.java.util.List<IUserSummary> getUsers(java.util.List<java.lang.String> userList, int maxUsers) throws ConnectionException, RequestException, AccessException
Note that this implementation differs a bit from the p4 command line version in that it simply doesn't return any output for unmatched users.
userList
- if non-null, restrict output to users matching the passed-in
list of users.maxUsers
- if positive, only return the first maxUsers users.ConnectionException
- if the Perforce server is unreachable or is not connected.RequestException
- if the Perforce server encounters an error during its
processing of the requestAccessException
- if the Perforce server denies access to the caller