Module com.s8.api

Class CloneBranchS8Request

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

public abstract class CloneBranchS8Request extends Object
A Request object to clone 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
    • branchId

      public final String branchId
      the branch id
    • version

      public final long version
      the targeted version
  • Constructor Details

    • CloneBranchS8Request

      public CloneBranchS8Request(String repositoryAddress, String branchId, long version)
      Main constructor
      Parameters:
      repositoryAddress - the repository address
      branchId - the branch id
      version - the version of the branch from which cloning must be done
    • CloneBranchS8Request

      public CloneBranchS8Request(String repositoryAddress, String branchId)
      Secondary constructor with default value
      Parameters:
      repositoryAddress - the target repository id
      branchId - the target branch id
  • Method Details

    • onResponse

      public abstract void onResponse(CloneBranchS8Request.Status status, Object[] objects)
      Callback run upon successful request execution
      Parameters:
      status - Request response status
      objects - The cloned objects
    • onError

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