public class GroupDelegator extends BaseDelegator implements IGroupDelegator
MAX_LIMIT_SUPPORTED_MIN_VERSION, QUERY_EXPRESSIONS_SUPPORTED_MIN_VERSION, USER_RESTRICTIONS_SUPPORTED_MIN_VERSION
Constructor and Description |
---|
GroupDelegator(IOptionsServer server)
Instantiate a new GroupDelegator for the given server implementation.
|
Modifier and Type | Method and Description |
---|---|
String |
createUserGroup(IUserGroup group)
Implemented on behalf of IServer for backwards compatibility.
|
String |
createUserGroup(IUserGroup group,
UpdateUserGroupOptions opts)
Create a new Perforce user group on the Perforce server.
|
String |
deleteUserGroup(IUserGroup group)
Implemented on behalf of IServer for backwards compatibility.
|
String |
deleteUserGroup(IUserGroup group,
UpdateUserGroupOptions opts)
Delete a Perforce user group from the Perforce server.
|
IUserGroup |
getUserGroup(String name)
Get the named Perforce user group.
|
String |
updateUserGroup(IUserGroup group,
boolean updateIfOwner)
Implemented on behalf of IServer for backwards compatibility.
|
String |
updateUserGroup(IUserGroup group,
UpdateUserGroupOptions opts)
Update a Perforce user group on the Perforce server.
|
public GroupDelegator(IOptionsServer server)
server
- the server to delegate forpublic IUserGroup getUserGroup(@Nonnull String name) throws ConnectionException, RequestException, AccessException
IGroupDelegator
getUserGroup
in interface IGroupDelegator
name
- non-null group name.ConnectionException
- if the Perforce server is unreachable or is not connected.RequestException
- if the Perforce server encounters an error during its
processing of the request.AccessException
- if the Perforce server denies access to the caller.public String deleteUserGroup(@Nonnull IUserGroup group, @Nullable UpdateUserGroupOptions opts) throws P4JavaException
IGroupDelegator
deleteUserGroup
in interface IGroupDelegator
group
- non-null group to be deleted.ConnectionException
- if the Perforce server is unreachable or is not connected.RequestException
- if the Perforce server encounters an error during its
processing of the request.AccessException
- if the Perforce server denies access to the caller.P4JavaException
public String createUserGroup(@Nonnull IUserGroup group, @Nullable UpdateUserGroupOptions opts) throws P4JavaException
IGroupDelegator
createUserGroup
in interface IGroupDelegator
group
- non-null IUserGroup to be created.ConnectionException
- if the Perforce server is unreachable or is not connected.RequestException
- if the Perforce server encounters an error during its
processing of the request.AccessException
- if the Perforce server denies access to the caller.P4JavaException
public String updateUserGroup(@Nonnull IUserGroup group, @Nullable UpdateUserGroupOptions opts) throws P4JavaException
IGroupDelegator
updateUserGroup
in interface IGroupDelegator
group
- non-null user group to be updated.ConnectionException
- if the Perforce server is unreachable or is not connected.RequestException
- if the Perforce server encounters an error during its
processing of the request.AccessException
- if the Perforce server denies access to the caller.P4JavaException
public String createUserGroup(@Nonnull IUserGroup group) throws ConnectionException, RequestException, AccessException
public String updateUserGroup(@Nonnull IUserGroup group, boolean updateIfOwner) throws ConnectionException, RequestException, AccessException
public String deleteUserGroup(@Nonnull IUserGroup group) throws ConnectionException, RequestException, AccessException
Copyright © 2017 Perforce Software. All Rights Reserved.