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
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
ConstructorsConstructorDescriptionVerifyDelegator(IOptionsServer server) Instantiate a new VerifyDelegator, providing the server object that will be used to execute Perforce Helix attribute commands. -
Method Summary
Modifier and TypeMethodDescriptionverifyFiles(List<IFileSpec> fileSpecs, VerifyFilesOptions opts) Verify that the server archives are intact.
-
Constructor Details
-
VerifyDelegator
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:IVerifyDelegatorVerify 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:
verifyFilesin 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.
-