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.
-
-
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
Constructors Constructor Description VerifyDelegator(IOptionsServer server)
Instantiate a new VerifyDelegator, providing the server object that will be used to execute Perforce Helix attribute commands.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<IExtendedFileSpec>
verifyFiles(java.util.List<IFileSpec> fileSpecs, VerifyFilesOptions opts)
Verify that the server archives are intact.
-
-
-
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 interfaceIVerifyDelegator
- 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.
-
-