Class AbstractRepositoryRequest
java.lang.Object
com.atlassian.bitbucket.repository.AbstractRepositoryRequest
- Direct Known Subclasses:
RepositoryCreateRequest
,RepositoryForkRequest
,RepositoryUpdateRequest
Base class for
Repository
-related request classes.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Base class for creating builders forrepository
-related requests. -
Constructor Summary
ModifierConstructorDescriptionprotected
-
Method Summary
-
Constructor Details
-
AbstractRepositoryRequest
-
-
Method Details
-
getDescription
The description for the repository. How this is used depends on the request type:RepositoryCreateRequest
: Sets the description for the new repositoryRepositoryForkRequest
: Sets the description for the new forkRepositoryUpdateRequest
: Updates the repository's description.
- Returns:
- the description for the repository
- Since:
- 6.2
-
getName
The name for the repository. How this is used depends on the request type:RepositoryCreateRequest
: Sets the name (and slug) for the new repositoryRepositoryForkRequest
: Sets the name (and slug) for the new forkRepositoryUpdateRequest
: Updates the repository's name, which may also change its slug. Changing a repository's slug will update all of its URLs, including its clone URL
slug
regardless of the request type.- Returns:
- the name for the repository
-
isForkable
public boolean isForkable()Retrieves a flag indicating whether the repository should beforkable
. How this is used depends on the request type:RepositoryCreateRequest
: Sets whether the new repository will be forkableRepositoryForkRequest
: Sets whether the new fork itself be forkableRepositoryUpdateRequest
: Updates whether an existing repository is forkable
- Returns:
true
if the repository should be forkable; otherwise,false
to disable forking
-
isPublic
public boolean isPublic()- Returns:
true
if the project will be made publicly accessible,false
otherwise.
-