Interface ITriggersDelegator
- All Known Subinterfaces:
IOptionsServer,IServer,IStreamingServer
- All Known Implementing Classes:
NtsServerImpl,OneShotServerImpl,RpcServer,Server,TriggersDelegator
public interface ITriggersDelegator
Interface to handle the Triggers command.
-
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.
-
Method Details
-
createTriggerEntries
Create 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.
- 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.- Since:
- 2014.1
-
getTriggerEntries
Get a list of Perforce trigger entries.This method require that the user have 'super' access granted by 'p4 protect'.
- Returns:
- non-null but possibly empty list of trigger entries.
- Throws:
P4JavaException- if any error occurs in the processing of this method.- Since:
- 2014.1
-
updateTriggerEntries
Replace 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.
- 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.- Since:
- 2014.1
-
getTriggersTable
Get an InputStream onto the entries of the Perforce triggers table.This method require that the user have 'super' access granted by 'p4 protect'.
- 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.- Since:
- 2014.1
-