public class ProtectDelegator extends BaseDelegator implements IProtectDelegator
MAX_LIMIT_SUPPORTED_MIN_VERSION, QUERY_EXPRESSIONS_SUPPORTED_MIN_VERSION, USER_RESTRICTIONS_SUPPORTED_MIN_VERSION| Constructor and Description |
|---|
ProtectDelegator(IOptionsServer server)
Instantiate a new ProtectDelegator, providing the server object that will be used to
execute Perforce Helix attribute commands.
|
| Modifier and Type | Method and Description |
|---|---|
String |
createProtectionEntries(List<IProtectionEntry> entryList)
Create or replace the protections table data on the Perforce server with
these new protection entries.
|
InputStream |
getProtectionsTable()
Get an InputStream onto the entries of the Perforce protections table.
|
String |
updateProtectionEntries(List<IProtectionEntry> entryList)
Replace the protections table data on the Perforce server with these new
protection entries.
|
public ProtectDelegator(IOptionsServer server)
server - a concrete implementation of a Perforce Helix Serverpublic String createProtectionEntries(@Nonnull List<IProtectionEntry> entryList) throws P4JavaException
IProtectDelegator
Each entry in the table contains a protection mode, a group/user indicator, the group/user name, client host ID and a depot file path pattern. Users receive the highest privilege that is granted on any entry.
Warning: this will overwrite the existing protections table data.
createProtectionEntries in interface IProtectDelegatorentryList - non-null list of protection entries.P4JavaException - if an error occurs processing this method and its parameters.public String updateProtectionEntries(@Nonnull List<IProtectionEntry> entryList) throws P4JavaException
IProtectDelegator
Each entry in the table contains a protection mode, a group/user indicator, the group/user name, client host ID and a depot file path pattern. Users receive the highest privilege that is granted on any entry.
Warning: this will overwrite the existing protections table data.
updateProtectionEntries in interface IProtectDelegatorentryList - non-null list of protection entries.P4JavaException - if an error occurs processing this method and its parameters.public InputStream getProtectionsTable() throws P4JavaException
IProtectDelegatorgetProtectionsTable in interface IProtectDelegatorP4JavaException - if any error occurs in the processing of this method.Copyright © 2017 Perforce Software. All Rights Reserved.