org.sakaiproject.tool.gradebook
Class Gradebook

java.lang.Object
  extended by org.sakaiproject.tool.gradebook.Gradebook
All Implemented Interfaces:
Serializable

public class Gradebook
extends Object
implements Serializable

A Gradebook is the top-level object in the Sakai Gradebook tool. Only one Gradebook should be associated with any particular course (or site, as they exist in Sakai 1.5) for any given academic term. How courses and terms are determined will likely depend on the particular Sakai installation.

Author:
Josh Holtzman
See Also:
Serialized Form

Constructor Summary
Gradebook()
          Default no-arg constructor needed for persistence
Gradebook(String name)
          Creates a new gradebook with the given siteId and name
 
Method Summary
 boolean equals(Object other)
           
 int getCategory_type()
           
 int getGrade_type()
           
 Set<GradeMapping> getGradeMappings()
           
 Long getId()
           
 String getName()
           
 Boolean getScaledExtraCredit()
           
 GradeMapping getSelectedGradeMapping()
           
 Boolean getShowItemStatistics()
           
 Boolean getShowMean()
           
 Boolean getShowMedian()
           
 Boolean getShowMode()
           
 Boolean getShowRank()
           
 String getUid()
           
 int getVersion()
           
 int hashCode()
           
 boolean isAllAssignmentsEntered()
           
 boolean isAssignmentsDisplayed()
           
 boolean isCourseGradeDisplayed()
           
 Boolean isEqualWeightCategories()
           
 boolean isLocked()
           
 Boolean isScaledExtraCredit()
           
 void setAllAssignmentsEntered(boolean allAssignmentsEntered)
           
 void setAssignmentsDisplayed(boolean assignmentsDisplayed)
           
 void setCategory_type(int category_type)
           
 void setCourseGradeDisplayed(boolean courseGradeDisplayed)
           
 void setEqualWeightCategories(Boolean equalWeightCategories)
           
 void setGrade_type(int grade_type)
           
 void setGradeMappings(Set<GradeMapping> gradeMappings)
           
 void setId(Long id)
           
 void setLocked(boolean locked)
           
 void setName(String name)
           
 void setScaledExtraCredit(Boolean scaledExtraCredit)
           
 void setSelectedGradeMapping(GradeMapping selectedGradeMapping)
           
 void setShowItemStatistics(Boolean showItemStatistics)
           
 void setShowMean(Boolean showMean)
           
 void setShowMedian(Boolean showMedian)
           
 void setShowMode(Boolean showMode)
           
 void setShowRank(Boolean showRank)
           
 void setUid(String uid)
           
 void setVersion(int version)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Gradebook

public Gradebook()
Default no-arg constructor needed for persistence


Gradebook

public Gradebook(String name)
Creates a new gradebook with the given siteId and name

Parameters:
name -
Method Detail

isAllAssignmentsEntered

public boolean isAllAssignmentsEntered()
Returns:
Returns the allAssignmentsEntered.

setAllAssignmentsEntered

public void setAllAssignmentsEntered(boolean allAssignmentsEntered)
Parameters:
allAssignmentsEntered - The allAssignmentsEntered to set.

isAssignmentsDisplayed

public boolean isAssignmentsDisplayed()
Returns:
Returns the assignmentsDisplayed.

setAssignmentsDisplayed

public void setAssignmentsDisplayed(boolean assignmentsDisplayed)
Parameters:
assignmentsDisplayed - The assignmentsDisplayed to set.

getGradeMappings

public Set<GradeMapping> getGradeMappings()
Returns:
Returns the gradeMappings.

setGradeMappings

public void setGradeMappings(Set<GradeMapping> gradeMappings)
Parameters:
gradeMappings - The gradeMappings to set.

getId

public Long getId()
Returns:
Returns the id.

setId

public void setId(Long id)
Parameters:
id - The id to set.

getUid

public String getUid()
Returns:
Returns the uid.

setUid

public void setUid(String uid)
Parameters:
uid - The uid to set.

getName

public String getName()
Returns:
Returns the name.

setName

public void setName(String name)
Parameters:
name - The name to set.

isLocked

public boolean isLocked()
Returns:
Returns the locked.

setLocked

public void setLocked(boolean locked)
Parameters:
locked - The locked to set.

getSelectedGradeMapping

public GradeMapping getSelectedGradeMapping()
Returns:
Returns the selectedGradeMapping.

setSelectedGradeMapping

public void setSelectedGradeMapping(GradeMapping selectedGradeMapping)
Parameters:
selectedGradeMapping - The selectedGradeMapping to set.

getVersion

public int getVersion()
Returns:
Returns the version.

setVersion

public void setVersion(int version)
Parameters:
version - The version to set.

isCourseGradeDisplayed

public boolean isCourseGradeDisplayed()
Returns:
Returns the courseGradeDisplayed.

setCourseGradeDisplayed

public void setCourseGradeDisplayed(boolean courseGradeDisplayed)
Parameters:
courseGradeDisplayed - The courseGradeDisplayed to set.

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object other)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getCategory_type

public int getCategory_type()

setCategory_type

public void setCategory_type(int category_type)

getGrade_type

public int getGrade_type()

setGrade_type

public void setGrade_type(int grade_type)

isEqualWeightCategories

public Boolean isEqualWeightCategories()

setEqualWeightCategories

public void setEqualWeightCategories(Boolean equalWeightCategories)

isScaledExtraCredit

public Boolean isScaledExtraCredit()

setScaledExtraCredit

public void setScaledExtraCredit(Boolean scaledExtraCredit)

getShowMean

public Boolean getShowMean()

setShowMean

public void setShowMean(Boolean showMean)

getShowMedian

public Boolean getShowMedian()

setShowMedian

public void setShowMedian(Boolean showMedian)

getShowMode

public Boolean getShowMode()

setShowMode

public void setShowMode(Boolean showMode)

getShowRank

public Boolean getShowRank()

setShowRank

public void setShowRank(Boolean showRank)

getShowItemStatistics

public Boolean getShowItemStatistics()

setShowItemStatistics

public void setShowItemStatistics(Boolean showItemStatistics)

getScaledExtraCredit

public Boolean getScaledExtraCredit()


Copyright © 2011 Sakai Project. All Rights Reserved.