Module com.s8.api

Class ForkBranchS8Request

java.lang.Object
com.s8.api.flow.repository.requests.ForkBranchS8Request

public abstract class ForkBranchS8Request extends Object
A Request method to fork a branch of a repository
Author:
Pierre Convert Copyright (C) 2025, Pierre Convert. All rights reserved.
  • Field Details

    • repositoryAddress

      public final String repositoryAddress
      the repository address
    • originBranchId

      public final String originBranchId
      the origin branch id
    • originBranchVersion

      public final long originBranchVersion
      the origin branch version
    • targetBranchId

      public final String 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 repository
      originBranchId - the id of the origin branch
      originBranchVersion - the version of the origin branch
      targetBranchId - the target barnch id
  • Method Details

    • onResponded

      public abstract void onResponded(ForkBranchS8Request.Status status, long version)
      Callback method run upon successful request execution
      Parameters:
      status - the status returned
      version - the version returned
    • onFailed

      public abstract void onFailed(Exception exception)
      Callback method run upon failed request execution
      Parameters:
      exception - the exception raised