public enum GraderPermission extends Enum<GraderPermission>
| Enum Constant and Description |
|---|
GRADE |
VIEW |
VIEW_COURSE_GRADE |
| Modifier and Type | Method and Description |
|---|---|
static List<String> |
getStandardPermissions()
Helper to get the view and grade permissions as a list
Used in a few places
|
String |
toString()
Return a lowercase version of the enum
|
static GraderPermission |
valueOf(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.
|
public static final GraderPermission VIEW
public static final GraderPermission GRADE
public static final GraderPermission VIEW_COURSE_GRADE
public static GraderPermission[] values()
for (GraderPermission c : GraderPermission.values()) System.out.println(c);
public static GraderPermission 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 String toString()
toString in class Enum<GraderPermission>Copyright © 2003–2019 Sakai Project. All rights reserved.