public class BranchesDelegator extends BaseDelegator implements IBranchesDelegator
MAX_LIMIT_SUPPORTED_MIN_VERSION, QUERY_EXPRESSIONS_SUPPORTED_MIN_VERSION, USER_RESTRICTIONS_SUPPORTED_MIN_VERSION
Constructor and Description |
---|
BranchesDelegator(IOptionsServer server)
Build a new VerifyDelegtor object and keep the server object for
|
Modifier and Type | Method and Description |
---|---|
java.util.List<IBranchSpecSummary> |
getBranchSpecs(GetBranchSpecsOptions opts)
Get a list of all summary Perforce branch specs known to the Perforce
server.
|
java.util.List<IBranchSpecSummary> |
getBranchSpecs(java.lang.String userName,
java.lang.String nameFilter,
int maxReturns)
Old style getBranchSpecs api call.
|
public BranchesDelegator(IOptionsServer server)
using in the command processing.
server
- - the currently effective server implementationpublic java.util.List<IBranchSpecSummary> getBranchSpecs(GetBranchSpecsOptions opts) throws P4JavaException
IBranchesDelegator
Note that the IBranchSpecSummary objects returned here do not have branch view specs; you must call the getBranchSpec method on a specific branch to get valid view specs for a branch.
getBranchSpecs
in interface IBranchesDelegator
opts
- object describing optional parameters; if null, no options are
set.P4JavaException
- if any error occurs in the processing of this method.public java.util.List<IBranchSpecSummary> getBranchSpecs(java.lang.String userName, java.lang.String nameFilter, int maxReturns) throws ConnectionException, RequestException, AccessException
IBranchesDelegator
getBranchSpecs
in interface IBranchesDelegator
userName
- user namenameFilter
- name filtermaxReturns
- maximum resultsConnectionException
- connection errorsRequestException
- server request errorsAccessException
- access restrictions