diff --git a/edu-services/gradebook-service/api/src/java/org/sakaiproject/service/gradebook/shared/CategoryDefinition.java b/edu-services/gradebook-service/api/src/java/org/sakaiproject/service/gradebook/shared/CategoryDefinition.java index e6fc3078e0a1..760316f5fa84 100644 --- a/edu-services/gradebook-service/api/src/java/org/sakaiproject/service/gradebook/shared/CategoryDefinition.java +++ b/edu-services/gradebook-service/api/src/java/org/sakaiproject/service/gradebook/shared/CategoryDefinition.java @@ -43,6 +43,15 @@ public class CategoryDefinition implements Serializable { private List assignmentList; + public CategoryDefinition() { + + } + + public CategoryDefinition(Long id, String name) { + this.id = id; + this.name = name; + } + /** * * @return the id of the Category object diff --git a/edu-services/gradebook-service/api/src/java/org/sakaiproject/service/gradebook/shared/GraderPermission.java b/edu-services/gradebook-service/api/src/java/org/sakaiproject/service/gradebook/shared/GraderPermission.java new file mode 100644 index 000000000000..cb70089e679f --- /dev/null +++ b/edu-services/gradebook-service/api/src/java/org/sakaiproject/service/gradebook/shared/GraderPermission.java @@ -0,0 +1,20 @@ +package org.sakaiproject.service.gradebook.shared; + +/** + * The list of permissions that can be assigned to a grader + */ +public enum GraderPermission { + + VIEW, + GRADE, + VIEW_COURSE_GRADE; + + /** + * Return a lowercase version of the enum + */ + @Override + public String toString() { + return this.name().toLowerCase(); + } + +}