Class TriggersDelegator
java.lang.Object
com.perforce.p4java.impl.mapbased.server.cmd.BaseDelegator
com.perforce.p4java.impl.mapbased.server.cmd.TriggersDelegator
- All Implemented Interfaces:
ITriggersDelegator
Implementation to handle the Triggers command.
-
Field Summary
Fields inherited from class com.perforce.p4java.impl.mapbased.server.cmd.BaseDelegator
MAX_LIMIT_SUPPORTED_MIN_VERSION, QUERY_EXPRESSIONS_SUPPORTED_MIN_VERSION, USER_RESTRICTIONS_SUPPORTED_MIN_VERSION -
Constructor Summary
ConstructorsConstructorDescriptionTriggersDelegator(IOptionsServer server) Instantiate a new TriggersDelegator, providing the server object that will be used to execute Perforce Helix attribute commands. -
Method Summary
Modifier and TypeMethodDescriptioncreateTriggerEntries(List<ITriggerEntry> entryList) Create or replace the triggers table data on the Perforce server with these new trigger entries.Get a list of Perforce trigger entries.Get an InputStream onto the entries of the Perforce triggers table.updateTriggerEntries(List<ITriggerEntry> entryList) Replace the triggers table data on the Perforce server with these new triggers entries.
-
Constructor Details
-
TriggersDelegator
Instantiate a new TriggersDelegator, providing the server object that will be used to execute Perforce Helix attribute commands.- Parameters:
server- a concrete implementation of a Perforce Helix Server
-
-
Method Details
-
createTriggerEntries
Description copied from interface:ITriggersDelegatorCreate or replace the triggers table data on the Perforce server with these new trigger entries.This method require that the user have 'super' access granted by 'p4 protect'.
Warning: this will overwrite the existing triggers table data.
- Specified by:
createTriggerEntriesin interfaceITriggersDelegator- Parameters:
entryList- non-null list of trigger entries.- Returns:
- possibly-null status message string as returned from the server
- Throws:
P4JavaException- if an error occurs processing this method and its parameters.
-
getTriggerEntries
Description copied from interface:ITriggersDelegatorGet a list of Perforce trigger entries.This method require that the user have 'super' access granted by 'p4 protect'.
- Specified by:
getTriggerEntriesin interfaceITriggersDelegator- Returns:
- non-null but possibly empty list of trigger entries.
- Throws:
P4JavaException- if any error occurs in the processing of this method.
-
updateTriggerEntries
Description copied from interface:ITriggersDelegatorReplace the triggers table data on the Perforce server with these new triggers entries.This method require that the user have 'super' access granted by 'p4 protect'.
Warning: this will overwrite the existing triggers table data.
- Specified by:
updateTriggerEntriesin interfaceITriggersDelegator- Parameters:
entryList- non-null list of trigger entries.- Returns:
- possibly-null status message string as returned from the server
- Throws:
P4JavaException- if an error occurs processing this method and its parameters.
-
getTriggersTable
Description copied from interface:ITriggersDelegatorGet an InputStream onto the entries of the Perforce triggers table.This method require that the user have 'super' access granted by 'p4 protect'.
- Specified by:
getTriggersTablein interfaceITriggersDelegator- Returns:
- a non-null but possibly empty InputStream onto the triggers table's entries.
- Throws:
P4JavaException- if any error occurs in the processing of this method.
-