Module com.s8.api

Class CommitBranchS8Request

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

public abstract class CommitBranchS8Request extends Object
A Request object to commit a branch on a repository.
Author:
Pierre Convert Copyright (C) 2025, Pierre Convert. All rights reserved.
  • Field Details

    • repositoryAddress

      public final String repositoryAddress
      The request target repository address
    • branchId

      public final String branchId
      The request target branch id
    • objects

      public final RepoS8Object[] objects
      The request committed objects
    • author

      public final String author
      The authod of the commit
    • comment

      public final String comment
      The comment along the commit
  • Constructor Details

    • CommitBranchS8Request

      public CommitBranchS8Request(String repositoryAddress, String branchId, RepoS8Object[] objects, String author, String comment)
      Main constructor
      Parameters:
      repositoryAddress - the repository address
      branchId - the branch id
      objects - the objects
      author - the author
      comment - the comment
  • Method Details

    • onResponse

      public abstract void onResponse(CommitBranchS8Request.Status status, long version)
      Callback method run upon successful request execution
      Parameters:
      status - the response status
      version - the requested version
    • onFailed

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