public class TagDelegator extends BaseDelegator implements ITagDelegator
MAX_LIMIT_SUPPORTED_MIN_VERSION, QUERY_EXPRESSIONS_SUPPORTED_MIN_VERSION, USER_RESTRICTIONS_SUPPORTED_MIN_VERSION| Constructor and Description |
|---|
TagDelegator(IOptionsServer server)
Instantiate a new TagDelegator, providing the server object that will be used to
execute Perforce Helix attribute commands.
|
| Modifier and Type | Method and Description |
|---|---|
List<IFileSpec> |
tagFiles(List<IFileSpec> fileSpecs,
String labelName,
boolean listOnly,
boolean delete)
Tag files with a Perforce label.
|
List<IFileSpec> |
tagFiles(List<IFileSpec> fileSpecs,
String labelName,
TagFilesOptions opts) |
public TagDelegator(IOptionsServer server)
server - a concrete implementation of a Perforce Helix Serverpublic List<IFileSpec> tagFiles(List<IFileSpec> fileSpecs, String labelName, boolean listOnly, boolean delete) throws ConnectionException, RequestException, AccessException
ITagDelegatortagFiles in interface ITagDelegatorfileSpecs - non-null list of files to be tagged.labelName - non-null label name to use for the tagging.listOnly - if true, don't do the actual tag, just return the list of
files that would have been tagged.delete - if true, delete the label tag from the files.ConnectionException - if the Perforce server is unreachable or is not connected.RequestException - if the Perforce server encounters an error during its
processing of the requestAccessException - if the Perforce server denies access to the callerpublic List<IFileSpec> tagFiles(List<IFileSpec> fileSpecs, String labelName, TagFilesOptions opts) throws P4JavaException
tagFiles in interface ITagDelegatorfileSpecs - non-null list of files to be tagged.labelName - non-null label name to use for the tagging.opts - TagFilesOptions 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.