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 |
---|---|
java.lang.String |
createProtectionEntries(java.util.List<IProtectionEntry> entryList)
Create or replace the protections table data on the Perforce server with
these new protection entries.
|
java.io.InputStream |
getProtectionsTable()
Get an InputStream onto the entries of the Perforce protections table.
|
java.lang.String |
updateProtectionEntries(java.util.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 java.lang.String createProtectionEntries(@Nonnull java.util.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 IProtectDelegator
entryList
- non-null list of protection entries.P4JavaException
- if an error occurs processing this method and its parameters.public java.lang.String updateProtectionEntries(@Nonnull java.util.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 IProtectDelegator
entryList
- non-null list of protection entries.P4JavaException
- if an error occurs processing this method and its parameters.public java.io.InputStream getProtectionsTable() throws P4JavaException
IProtectDelegator
getProtectionsTable
in interface IProtectDelegator
P4JavaException
- if any error occurs in the processing of this method.