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
Nested ClassesModifier and TypeClassDescriptionstatic classBase class for creating builders forrepository-related requests. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected -
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
slugregardless 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:
trueif the repository should be forkable; otherwise,falseto disable forking
-
isPublic
public boolean isPublic()- Returns:
trueif the project will be made publicly accessible,falseotherwise.
-