Enum GraderPermission
- java.lang.Object
-
- java.lang.Enum<GraderPermission>
-
- org.sakaiproject.service.gradebook.shared.GraderPermission
-
- All Implemented Interfaces:
Serializable,Comparable<GraderPermission>
public enum GraderPermission extends Enum<GraderPermission>
The list of permissions that can be assigned to a grader
-
-
Enum Constant Summary
Enum Constants Enum Constant Description GRADENONEVIEWVIEW_COURSE_GRADE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static List<String>getStandardPermissions()Helper to get the view and grade permissions as a list Used in a few placesStringtoString()Return a lowercase version of the enumstatic GraderPermissionvalueOf(String name)Returns the enum constant of this type with the specified name.static GraderPermission[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
VIEW
public static final GraderPermission VIEW
-
GRADE
public static final GraderPermission GRADE
-
VIEW_COURSE_GRADE
public static final GraderPermission VIEW_COURSE_GRADE
-
NONE
public static final GraderPermission NONE
-
-
Method Detail
-
values
public static GraderPermission[] 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 (GraderPermission c : GraderPermission.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GraderPermission 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
-
toString
public String toString()
Return a lowercase version of the enum- Overrides:
toStringin classEnum<GraderPermission>
-
-