public enum ProjectState extends Enum<ProjectState>
Enum Constant and Description |
---|
ACTIVE
Permits reading project state and contents as well as mutating data.
|
HIDDEN
Hides the project as if it was deleted, but makes requests fail with an error message that
reveals the project's existence.
|
READ_ONLY
Permits reading project state and contents.
|
Modifier and Type | Method and Description |
---|---|
boolean |
permitsRead() |
boolean |
permitsWrite() |
static ProjectState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ProjectState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ProjectState ACTIVE
public static final ProjectState READ_ONLY
public static final ProjectState HIDDEN
public static ProjectState[] values()
for (ProjectState c : ProjectState.values()) System.out.println(c);
public static ProjectState 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 boolean permitsRead()
public boolean permitsWrite()