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 |
---|---|
java.lang.String |
createTriggerEntries(java.util.List<ITriggerEntry> entryList)
Create or replace the triggers table data on the Perforce server with
these new trigger entries.
|
java.util.List<ITriggerEntry> |
getTriggerEntries()
Get a list of Perforce trigger entries.
|
java.io.InputStream |
getTriggersTable()
Get an InputStream onto the entries of the Perforce triggers table.
|
java.lang.String |
updateTriggerEntries(java.util.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 java.lang.String createTriggerEntries(@Nonnull java.util.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 ITriggersDelegator
entryList
- non-null list of trigger entries.P4JavaException
- if an error occurs processing this method and its parameters.public java.util.List<ITriggerEntry> getTriggerEntries() throws P4JavaException
ITriggersDelegator
This method require that the user have 'super' access granted by 'p4 protect'.
getTriggerEntries
in interface ITriggersDelegator
P4JavaException
- if any error occurs in the processing of this method.public java.lang.String updateTriggerEntries(@Nonnull java.util.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 ITriggersDelegator
entryList
- non-null list of trigger entries.P4JavaException
- if an error occurs processing this method and its parameters.public java.io.InputStream getTriggersTable() throws P4JavaException
ITriggersDelegator
This method require that the user have 'super' access granted by 'p4 protect'.
getTriggersTable
in interface ITriggersDelegator
P4JavaException
- if any error occurs in the processing of this method.