Module com.s8.api

Class ForkRepositoryS8Request

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

public abstract class ForkRepositoryS8Request extends Object
A Request object to fork repository.
Author:
Pierre Convert Copyright (C) 2025, Pierre Convert. All rights reserved.
  • Field Details

    • originRepoAddress

      public final String originRepoAddress
      The address of the origin repository
    • originBranchId

      public final String originBranchId
      the origin branch id
    • originBranchVersion

      public final long originBranchVersion
      The origin branch version
    • targetRepositoryAddress

      public final String targetRepositoryAddress
      The target repository address
    • targetRepositoryName

      public final String targetRepositoryName
      The target repository name
    • targetRepositoryInfo

      public final String targetRepositoryInfo
      The target repository info
  • Constructor Details

    • ForkRepositoryS8Request

      public ForkRepositoryS8Request(String originRepoAddress, String originBranchId, long originBranchVersion, String targetRepositoryAddress, String targetRepositoryName, String targetRepositoryInfo)
      Main constructor
      Parameters:
      originRepoAddress - the orgin repository address
      originBranchId - the origin branch id
      originBranchVersion - the origin branch version
      targetRepositoryAddress - the target repository address
      targetRepositoryName - the target repository name
      targetRepositoryInfo - the target repository info
  • Method Details

    • onResponded

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

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