Skip to content

Commit

Permalink
SAK-29812 Add a couple helper methods
Browse files Browse the repository at this point in the history
  • Loading branch information
steveswinsburg committed Aug 17, 2015
1 parent 45024cc commit b5605df
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,15 @@ public class CategoryDefinition implements Serializable {

private List<Assignment> assignmentList;

public CategoryDefinition() {

}

public CategoryDefinition(Long id, String name) {
this.id = id;
this.name = name;
}

/**
*
* @return the id of the Category object
Expand Down
Original file line number Diff line number Diff line change
@@ -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();
}

}

0 comments on commit b5605df

Please sign in to comment.