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 Details

    • createTriggerEntries

      String createTriggerEntries(@Nonnull List<ITriggerEntry> entryList) throws P4JavaException
      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

      List<ITriggerEntry> getTriggerEntries() throws P4JavaException
      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

      String updateTriggerEntries(@Nonnull List<ITriggerEntry> entryList) throws P4JavaException
      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

      InputStream getTriggersTable() throws P4JavaException
      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