java.lang.Object
com.s8.api.flow.repository.requests.ForkBranchS8Request
A Request method to fork a branch of a repository
- Author:
- Pierre Convert Copyright (C) 2025, Pierre Convert. All rights reserved.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionForkBranchS8Request
(String repositoryAddress, String originBranchId, long originBranchVersion, String targetBranchId) Main constructor -
Method Summary
Modifier and TypeMethodDescriptionabstract void
Callback method run upon failed request executionabstract void
onResponded
(ForkBranchS8Request.Status status, long version) Callback method run upon successful request execution
-
Field Details
-
repositoryAddress
the repository address -
originBranchId
the origin branch id -
originBranchVersion
public final long originBranchVersionthe origin branch version -
targetBranchId
the target brnach id
-
-
Constructor Details
-
ForkBranchS8Request
public ForkBranchS8Request(String repositoryAddress, String originBranchId, long originBranchVersion, String targetBranchId) Main constructor- Parameters:
repositoryAddress
- the address of the repositoryoriginBranchId
- the id of the origin branchoriginBranchVersion
- the version of the origin branchtargetBranchId
- the target barnch id
-
-
Method Details
-
onResponded
Callback method run upon successful request execution- Parameters:
status
- the status returnedversion
- the version returned
-
onFailed
Callback method run upon failed request execution- Parameters:
exception
- the exception raised
-