public interface IBranchDelegator
Modifier and Type | Method and Description |
---|---|
String |
createBranchSpec(IBranchSpec branchSpec)
TODO: This should be moved up to Server and changed to delegate to
createBranchSpec with an options class.
|
String |
deleteBranchSpec(String branchSpecName,
boolean force)
Deprecated.
use
deleteBranchSpec(final String branchSpecName,
final DeleteBranchSpecOptions opts) instead |
String |
deleteBranchSpec(String branchSpecName,
DeleteBranchSpecOptions opts)
Delete a named Perforce branch spec from the Perforce server.
|
IBranchSpec |
getBranchSpec(String name)
Get the branch spec for the given name.
|
IBranchSpec |
getBranchSpec(String name,
GetBranchSpecOptions opts)
Get a specific named Perforce branch spec from the Perforce server.
|
String |
updateBranchSpec(IBranchSpec branchSpec)
Update the data fields in an existing branch spec.
|
IBranchSpec getBranchSpec(String name, GetBranchSpecOptions opts) throws P4JavaException
Note that since the Perforce server usually interprets asking for a non-existent branch spec as equivalent to asking for a template for a new branch spec, you will normally always get back a result here. It is best to first use the getBranchSpecList method to see if the branch spec exists, then use this method to retrieve a specific branch spec once you know it exists.
name
- non-null Perforce branch name.opts
- GetBranchSpecOptions object describing optional parameters; if
null, no options are set.P4JavaException
- if any error occurs in the processing of this method.String deleteBranchSpec(String branchSpecName, DeleteBranchSpecOptions opts) throws P4JavaException
branchSpecName
- non-null name of the branch spec to be deleted.opts
- DeleteBranchSpecOptions object describing optional parameters;
if null, no options are set.P4JavaException
- if any error occurs in the processing of this method.IBranchSpec getBranchSpec(String name) throws ConnectionException, RequestException, AccessException
name
- the name of the branchConnectionException
- when there is an error talking to the Helix serverRequestException
- when there is a problem with the data provided in the requestAccessException
- when access to the branch command is not authorisedString createBranchSpec(@Nonnull IBranchSpec branchSpec) throws ConnectionException, RequestException, AccessException
branchSpec
- the spec object containing the branch data fields.ConnectionException
- when there is an error talking to the Helix serverRequestException
- when there is a problem with the data provided in the requestAccessException
- when access to the branch command is not authorisedString updateBranchSpec(@Nonnull IBranchSpec branchSpec) throws ConnectionException, RequestException, AccessException
branchSpec
- the branch dataConnectionException
- when there is an error talking to the Helix serverRequestException
- when there is a problem with the data provided in the requestAccessException
- when access to the branch command is not authorisedString deleteBranchSpec(String branchSpecName, boolean force) throws ConnectionException, RequestException, AccessException
deleteBranchSpec(final String branchSpecName,
final DeleteBranchSpecOptions opts)
insteadbranchSpecName
- the name of the spec to deleteforce
- whether to force the operation throughConnectionException
- when there is an error talking to the Helix serverRequestException
- when there is a problem with the data provided in the requestAccessException
- when access to the branch command is not authorisedCopyright © 2017 Perforce Software. All Rights Reserved.