public class TriggersDelegator extends BaseDelegator implements ITriggersDelegator
MAX_LIMIT_SUPPORTED_MIN_VERSION, QUERY_EXPRESSIONS_SUPPORTED_MIN_VERSION, USER_RESTRICTIONS_SUPPORTED_MIN_VERSION| Constructor and Description |
|---|
TriggersDelegator(IOptionsServer server)
Instantiate a new TriggersDelegator, providing the server object that will be used to
execute Perforce Helix attribute commands.
|
| Modifier and Type | Method and Description |
|---|---|
String |
createTriggerEntries(List<ITriggerEntry> entryList)
Create or replace the triggers table data on the Perforce server with
these new trigger entries.
|
List<ITriggerEntry> |
getTriggerEntries()
Get a list of Perforce trigger entries.
|
InputStream |
getTriggersTable()
Get an InputStream onto the entries of the Perforce triggers table.
|
String |
updateTriggerEntries(List<ITriggerEntry> entryList)
Replace the triggers table data on the Perforce server with these new
triggers entries.
|
public TriggersDelegator(IOptionsServer server)
server - a concrete implementation of a Perforce Helix Serverpublic String createTriggerEntries(@Nonnull List<ITriggerEntry> entryList) throws P4JavaException
ITriggersDelegator
This method require that the user have 'super' access granted by 'p4 protect'.
Warning: this will overwrite the existing triggers table data.
createTriggerEntries in interface ITriggersDelegatorentryList - non-null list of trigger entries.P4JavaException - if an error occurs processing this method and its parameters.public List<ITriggerEntry> getTriggerEntries() throws P4JavaException
ITriggersDelegator
This method require that the user have 'super' access granted by 'p4 protect'.
getTriggerEntries in interface ITriggersDelegatorP4JavaException - if any error occurs in the processing of this method.public String updateTriggerEntries(@Nonnull List<ITriggerEntry> entryList) throws P4JavaException
ITriggersDelegator
This method require that the user have 'super' access granted by 'p4 protect'.
Warning: this will overwrite the existing triggers table data.
updateTriggerEntries in interface ITriggersDelegatorentryList - non-null list of trigger entries.P4JavaException - if an error occurs processing this method and its parameters.public InputStream getTriggersTable() throws P4JavaException
ITriggersDelegator
This method require that the user have 'super' access granted by 'p4 protect'.
getTriggersTable in interface ITriggersDelegatorP4JavaException - if any error occurs in the processing of this method.Copyright © 2017 Perforce Software. All Rights Reserved.