public interface IBranchDelegator
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
createBranchSpec(IBranchSpec branchSpec)
TODO: This should be moved up to Server and changed to delegate to
createBranchSpec with an options class.
|
java.lang.String |
deleteBranchSpec(java.lang.String branchSpecName,
boolean force)
Deprecated.
|
java.lang.String |
deleteBranchSpec(java.lang.String branchSpecName,
DeleteBranchSpecOptions opts)
Delete a named Perforce branch spec from the Perforce server.
|
IBranchSpec |
getBranchSpec(java.lang.String name)
Get the branch spec for the given name.
|
IBranchSpec |
getBranchSpec(java.lang.String name,
GetBranchSpecOptions opts)
Get a specific named Perforce branch spec from the Perforce server.
|
java.lang.String |
updateBranchSpec(IBranchSpec branchSpec)
Update the data fields in an existing branch spec.
|
IBranchSpec getBranchSpec(java.lang.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.java.lang.String deleteBranchSpec(java.lang.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(java.lang.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 authorisedjava.lang.String 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 authorisedjava.lang.String 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 authorisedjava.lang.String deleteBranchSpec(java.lang.String branchSpecName,
boolean force)
throws ConnectionException,
RequestException,
AccessException
deleteBranchSpec(String, DeleteBranchSpecOptions) 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 authorised