Class AbstractRepositoryScmRequest

java.lang.Object
com.atlassian.bitbucket.scm.AbstractScmRequest
com.atlassian.bitbucket.scm.AbstractRepositoryScmRequest
All Implemented Interfaces:
ScmRequest

public abstract class AbstractRepositoryScmRequest extends AbstractScmRequest
Extends AbstractScmRequest and adds properties to facilitate implementing SCM requests which interact with a repository, to read or write.
  • Field Details

    • repository

      protected final com.atlassian.bitbucket.repository.Repository repository
    • write

      protected final boolean write
  • Constructor Details

    • AbstractRepositoryScmRequest

      protected AbstractRepositoryScmRequest(@Nonnull com.atlassian.bitbucket.repository.Repository repository, boolean write)
  • Method Details

    • getRepository

      @Nonnull public com.atlassian.bitbucket.repository.Repository getRepository()
      Returns:
      the repository that is the target of this action.
    • isWrite

      public boolean isWrite()
      Returns:
      true if this is a write operation (e.g. a push to a repository) or false if it is a read-only operation (e.g. a pull or clone from a repository)