public class FileAnnotateDelegator extends BaseDelegator implements IFileAnnotateDelegator
MAX_LIMIT_SUPPORTED_MIN_VERSION, QUERY_EXPRESSIONS_SUPPORTED_MIN_VERSION, USER_RESTRICTIONS_SUPPORTED_MIN_VERSION| Constructor and Description |
|---|
FileAnnotateDelegator(IOptionsServer server)
Instantiate a new FileAnnotateDelegator, providing the server object that will be used to
execute Perforce Helix attribute commands.
|
| Modifier and Type | Method and Description |
|---|---|
List<IFileAnnotation> |
getFileAnnotations(List<IFileSpec> fileSpecs,
DiffType diffType,
boolean allResults,
boolean useChangeNumbers,
boolean followBranches) |
List<IFileAnnotation> |
getFileAnnotations(List<IFileSpec> fileSpecs,
GetFileAnnotationsOptions opts)
Get a list of revision annotations for the specified files.
|
public FileAnnotateDelegator(IOptionsServer server)
server - a concrete implementation of a Perforce Helix Serverpublic List<IFileAnnotation> getFileAnnotations(List<IFileSpec> fileSpecs, @Nonnull DiffType diffType, boolean allResults, boolean useChangeNumbers, boolean followBranches) throws ConnectionException, RequestException, AccessException
getFileAnnotations in interface IFileAnnotateDelegatorfileSpecs - non-null list of file specs to be annotated.diffType - If non-null, use the DiffType value to determine whitespace
options.allResults - If true, include both deleted files and lines no longer present
at the head revision; corresponds to the -a flag.useChangeNumbers - If true, annotate with change numbers rather than revision numbers
with each line; correspond to the -c flag.followBranches - If true, follow branches; corresponds to the -f flag.ConnectionExceptionRequestExceptionAccessExceptionpublic List<IFileAnnotation> getFileAnnotations(List<IFileSpec> fileSpecs, GetFileAnnotationsOptions opts) throws P4JavaException
IFileAnnotateDelegatorgetFileAnnotations in interface IFileAnnotateDelegatorfileSpecs - non-null list of file specs to be annotated.opts - GetFileAnnotationsOptions object describing optional parameters; if null, no
options are set.P4JavaException - if any error occurs in the processing of this method.Copyright © 2017 Perforce Software. All Rights Reserved.