Package com.atlassian.bitbucket.scm
Class AbstractRepositoryScmRequest
java.lang.Object
com.atlassian.bitbucket.scm.AbstractScmRequest
com.atlassian.bitbucket.scm.AbstractRepositoryScmRequest
- All Implemented Interfaces:
ScmRequest
Extends
AbstractScmRequest
and adds properties to facilitate implementing SCM requests
which interact with a repository, to read or write
.-
Field Summary
Modifier and TypeFieldDescriptionprotected final com.atlassian.bitbucket.repository.Repository
protected final boolean
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractRepositoryScmRequest
(com.atlassian.bitbucket.repository.Repository repository, boolean write) -
Method Summary
Modifier and TypeMethodDescriptioncom.atlassian.bitbucket.repository.Repository
boolean
isWrite()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.atlassian.bitbucket.scm.ScmRequest
handleRequest, sendError
-
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)
-