public static enum Repository.State extends Enum<Repository.State>
repository
. In general, repositories will always
be in the available
state.Enum Constant and Description |
---|
AVAILABLE
Indicates the repository has been created both in the database and in the associated SCM and may be pulled
from or pushed to normally.
|
INITIALISATION_FAILED
Indicates the associated SCM was not able to create the repository's SCM-specific storage, such as a bare
clone on disk in
git . |
INITIALISING
Indicates the repository has just been created in the database and the associated SCM is currently in the
process of creating its storage.
|
Modifier and Type | Method and Description |
---|---|
static Repository.State |
fromId(int id)
Retrieves the state associated with the specified
ID . |
int |
getId()
Retrieves a unique identifier for this state.
|
String |
getStatusMessage()
Retrieves the status message describing this state.
|
static Repository.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Repository.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Repository.State AVAILABLE
public static final Repository.State INITIALISATION_FAILED
git
. Repositories in this state exist within the database, but may not be pulled
from or pushed to.public static final Repository.State INITIALISING
public static Repository.State[] values()
for (Repository.State c : Repository.State.values()) System.out.println(c);
public static Repository.State valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getId()
@Nonnull public String getStatusMessage()
public static Repository.State fromId(int id)
ID
.id
- the ID to retrieve a State
forIllegalArgumentException
- if no state exists with the specified IDCopyright © 2019 Atlassian. All rights reserved.