Class VerifyDelegator

    • Constructor Detail

      • 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 Detail

      • verifyFiles

        public java.util.List<IExtendedFileSpec> verifyFiles​(java.util.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.