Class CategoryDefinition
- java.lang.Object
-
- org.sakaiproject.service.gradebook.shared.CategoryDefinition
-
- All Implemented Interfaces:
Serializable
public class CategoryDefinition extends Object implements Serializable
Provides information describing a gradebook category that may be useful to consumers of the shared gradebook services. Not persisted.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static Comparator<CategoryDefinition>orderComparator
-
Constructor Summary
Constructors Constructor Description CategoryDefinition()CategoryDefinition(Long id, String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DoublegetPointsForCategory()DoublegetTotalPoints()Helper method to get the total points associated with a categorybooleanisAssignmentInThisCategory(String assignmentId)StringtoString()
-
-
-
Field Detail
-
orderComparator
public static Comparator<CategoryDefinition> orderComparator
-
-
Method Detail
-
getTotalPoints
public Double getTotalPoints()
Helper method to get the total points associated with a category- Returns:
- the sum of all assignment totals associated with this category
-
isAssignmentInThisCategory
public boolean isAssignmentInThisCategory(String assignmentId)
-
getPointsForCategory
public Double getPointsForCategory()
-
-