Class VerifyDelegator

java.lang.Object
com.perforce.p4java.impl.mapbased.server.cmd.BaseDelegator
com.perforce.p4java.impl.mapbased.server.cmd.VerifyDelegator
All Implemented Interfaces:
IVerifyDelegator

public class VerifyDelegator extends BaseDelegator implements IVerifyDelegator
Implementation to handle the Verify command.
  • Constructor Details

    • VerifyDelegator

      public VerifyDelegator(IOptionsServer server)
      Instantiate a new VerifyDelegator, 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

    • verifyFiles

      public List<IExtendedFileSpec> verifyFiles(List<IFileSpec> fileSpecs, VerifyFilesOptions opts) throws P4JavaException
      Description copied from interface: IVerifyDelegator
      Verify that the server archives are intact.

      This method require that the user be an operator or have 'admin' access, which is granted by 'p4 protect'.

      Specified by:
      verifyFiles in interface IVerifyDelegator
      Parameters:
      fileSpecs - filespecs to be processed; if null or empty, an empty list is returned.
      opts - VerifyFilesOptions object describing optional parameters; if null, no options are set.
      Returns:
      non-null (but possibly empty) list of files with revision-specific information and an MD5 digest of the revision's contents.
      Throws:
      P4JavaException - if an error occurs processing this method and its parameters.