Enum BranchAccessAuthorizer.AccessType
- java.lang.Object
-
- java.lang.Enum<BranchAccessAuthorizer.AccessType>
-
- org.guvnor.structure.backend.repositories.BranchAccessAuthorizer.AccessType
-
- All Implemented Interfaces:
Serializable,Comparable<BranchAccessAuthorizer.AccessType>
- Enclosing class:
- BranchAccessAuthorizer
public static enum BranchAccessAuthorizer.AccessType extends Enum<BranchAccessAuthorizer.AccessType>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BranchAccessAuthorizer.AccessTypevalueOf(String name)Returns the enum constant of this type with the specified name.static BranchAccessAuthorizer.AccessTypevalueOf(org.eclipse.jgit.transport.ReceiveCommand.Type commandType)Returns the enum constant of this type with the specified name.static BranchAccessAuthorizer.AccessType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
READ
public static final BranchAccessAuthorizer.AccessType READ
-
WRITE
public static final BranchAccessAuthorizer.AccessType WRITE
-
DELETE
public static final BranchAccessAuthorizer.AccessType DELETE
-
-
Method Detail
-
values
public static BranchAccessAuthorizer.AccessType[] 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 (BranchAccessAuthorizer.AccessType c : BranchAccessAuthorizer.AccessType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BranchAccessAuthorizer.AccessType 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
-
valueOf
public static BranchAccessAuthorizer.AccessType valueOf(org.eclipse.jgit.transport.ReceiveCommand.Type commandType)
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:
commandType- 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
-
-