Class BranchesDelegator
java.lang.Object
com.perforce.p4java.impl.mapbased.server.cmd.BaseDelegator
com.perforce.p4java.impl.mapbased.server.cmd.BranchesDelegator
- All Implemented Interfaces:
IBranchesDelegator
- Since:
- 21/09/2016
-
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
ConstructorsConstructorDescriptionBranchesDelegator(IOptionsServer server) Build a new VerifyDelegtor object and keep the server object for -
Method Summary
Modifier and TypeMethodDescriptionGet a list of all summary Perforce branch specs known to the Perforce server.getBranchSpecs(String userName, String nameFilter, int maxReturns) Old style getBranchSpecs api call.
-
Constructor Details
-
BranchesDelegator
Build a new VerifyDelegtor object and keep the server object forusing in the command processing.
- Parameters:
server- - the currently effective server implementation
-
-
Method Details
-
getBranchSpecs
Description copied from interface:IBranchesDelegatorGet a list of all summary Perforce branch specs known to the Perforce server.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.
- Specified by:
getBranchSpecsin interfaceIBranchesDelegator- Parameters:
opts- object describing optional parameters; if null, no options are set.- Returns:
- non-null (but possibly-empty) list of IBranchSpecSummary objects.
- Throws:
P4JavaException- if any error occurs in the processing of this method.
-
getBranchSpecs
public List<IBranchSpecSummary> getBranchSpecs(String userName, String nameFilter, int maxReturns) throws ConnectionException, RequestException, AccessException Description copied from interface:IBranchesDelegatorOld style getBranchSpecs api call. deprecated use getBranchSpecs(final GetBranchSpecsOptions opts) instead- Specified by:
getBranchSpecsin interfaceIBranchesDelegator- Parameters:
userName- user namenameFilter- name filtermaxReturns- maximum results- Returns:
- list of Branch spec summaries
- Throws:
ConnectionException- connection errorsRequestException- server request errorsAccessException- access restrictions
-