Interface IGroupsDelegator
-
- All Known Subinterfaces:
IOptionsServer
,IServer
,IStreamingServer
- All Known Implementing Classes:
GroupsDelegator
,NtsServerImpl
,OneShotServerImpl
,RpcServer
,Server
public interface IGroupsDelegator
Define the supported p4 groups commands in p4java.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<IUserGroup>
getUserGroups(java.lang.String userOrGroupName, GetUserGroupsOptions opts)
Get a list of Perforce user groups from the server.
-
-
-
Method Detail
-
getUserGroups
java.util.List<IUserGroup> getUserGroups(java.lang.String userOrGroupName, GetUserGroupsOptions opts) throws P4JavaException
Get a list of Perforce user groups from the server.Note that the Perforce server considers it an error to have both indirect and displayValues parameters set true; this will cause the server to throw a RequestException with an appropriate usage message.
- Parameters:
userOrGroupName
- if non-null, restrict the list to the specified group or username.opts
- GetUserGroupsOptions object describing optional parameters; if null, no options are set- Returns:
- a non-null but possibly-empty list of qualifying groups.
- Throws:
P4JavaException
- if any error occurs in the processing of this method.
-
-