public class SizesDelegator extends BaseDelegator implements ISizesDelegator
MAX_LIMIT_SUPPORTED_MIN_VERSION, QUERY_EXPRESSIONS_SUPPORTED_MIN_VERSION, USER_RESTRICTIONS_SUPPORTED_MIN_VERSION
Constructor and Description |
---|
SizesDelegator(IOptionsServer server)
Instantiate a new SizesDelegator, providing the server object that will be used to
execute Perforce Helix attribute commands.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<IFileSize> |
getFileSizes(java.util.List<IFileSpec> fileSpecs,
GetFileSizesOptions opts)
Gets a list of file sizes for one or more files in the depot.
|
public SizesDelegator(IOptionsServer server)
server
- a concrete implementation of a Perforce Helix Serverpublic java.util.List<IFileSize> getFileSizes(java.util.List<IFileSpec> fileSpecs, GetFileSizesOptions opts) throws P4JavaException
ISizesDelegator
For specified file specification, get the depot file name, revision, file count and file size. If you use client syntax for the file specification, the view mapping is used to list the corresponding depot files.
getFileSizes
in interface ISizesDelegator
fileSpecs
- filespecs to be processed; if null or empty, an empty list is returned.opts
- GetFileSizesOptions object describing optional parameters; if null, no options
are set.P4JavaException
- if any error occurs in the processing of this method.