Package com.jcabi.github
Enum Collaborators.Permission
- java.lang.Object
-
- java.lang.Enum<Collaborators.Permission>
-
- com.jcabi.github.Collaborators.Permission
-
- All Implemented Interfaces:
Serializable
,Comparable<Collaborators.Permission>
- Enclosing interface:
- Collaborators
public static enum Collaborators.Permission extends Enum<Collaborators.Permission>
Permission levels a user can be granted in an organization repository.- See Also:
- Add user with permissions
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Collaborators.Permission
valueOf(String name)
Returns the enum constant of this type with the specified name.static Collaborators.Permission[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PULL
public static final Collaborators.Permission PULL
-
PUSH
public static final Collaborators.Permission PUSH
-
ADMIN
public static final Collaborators.Permission ADMIN
-
MAINTAIN
public static final Collaborators.Permission MAINTAIN
-
TRIAGE
public static final Collaborators.Permission TRIAGE
-
-
Method Detail
-
values
public static Collaborators.Permission[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Collaborators.Permission c : Collaborators.Permission.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Collaborators.Permission valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-