public abstract class AbstractRepositoryRequest extends Object
Repository-related request classes.| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractRepositoryRequest.AbstractBuilder<B extends AbstractRepositoryRequest.AbstractBuilder<B>>
Base class for creating builders for
repository-related requests. |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractRepositoryRequest(AbstractRepositoryRequest.AbstractBuilder builder) |
protected |
AbstractRepositoryRequest(String name,
boolean forkable,
boolean publiclyAccessible)
Deprecated.
in 6.2 for removal in 7.0. Use @{link AbstractRepositoryRequest(AbstractBuilder)} instead
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription()
The description for the repository.
|
String |
getName()
The name for the repository.
|
boolean |
isForkable()
Retrieves a flag indicating whether the repository should be
forkable. |
boolean |
isPublic() |
@Deprecated protected AbstractRepositoryRequest(String name, boolean forkable, boolean publiclyAccessible)
name - nameforkable - forkablepubliclyAccessible - publicly accessibleprotected AbstractRepositoryRequest(AbstractRepositoryRequest.AbstractBuilder builder)
@Nullable public String getDescription()
RepositoryCreateRequest: Sets the description for the new repositoryRepositoryForkRequest: Sets the description for the new forkRepositoryUpdateRequest: Updates the repository's description. @Nonnull public String getName()
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 URLslug regardless of the
request type.public boolean isForkable()
forkable. 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 forkabletrue if the repository should be forkable; otherwise, false to disable forkingpublic boolean isPublic()
true if the project will be made publicly accessible, false otherwise.Copyright © 2019 Atlassian. All rights reserved.