org.sakaiproject.service.gradebook.shared
Class Assignment

java.lang.Object
  extended by org.sakaiproject.service.gradebook.shared.Assignment
All Implemented Interfaces:
Serializable

public class Assignment
extends Object
implements Serializable

JavaBean to hold data associated with a Gradebook assignment. The Course Grade is not considered an assignment.

See Also:
Serialized Form

Constructor Summary
Assignment()
           
 
Method Summary
 String getCategoryName()
           
 Date getDueDate()
           
 String getExternalAppName()
           
 String getExternalId()
           
 Long getId()
           
 String getName()
           
 Double getPoints()
           
 boolean getUngraded()
           
 Double getWeight()
           
 boolean isCounted()
           
 boolean isExternallyMaintained()
           
 boolean isReleased()
           
 void setCategoryName(String categoryName)
           
 void setCounted(boolean notCounted)
           
 void setDueDate(Date dueDate)
           
 void setExternalAppName(String externalAppName)
           
 void setExternalId(String externalId)
           
 void setExternallyMaintained(boolean externallyMaintained)
           
 void setId(Long id)
           
 void setName(String name)
           
 void setPoints(Double points)
           
 void setReleased(boolean released)
           
 void setUngraded(boolean ungraded)
           
 void setWeight(Double weight)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Assignment

public Assignment()
Method Detail

getName

public String getName()
Returns:
Returns the name of the assignment. The assignment name is unique among currently defined assignments. However, it is not a safe UID for persistance, since an assignment can be renamed. Also, an assignment can be deleted and a new assignment can be created re-using the old name.

getId

public Long getId()
Returns:
Returns the ID of the assignment in the gradebook

getPoints

public Double getPoints()
Returns:
Returns the total points the assignment is worth.

getDueDate

public Date getDueDate()
Returns:
Returns the due date for the assignment, or null if none is defined.

isExternallyMaintained

public boolean isExternallyMaintained()
Returns:
Returns true if the assignment is maintained by some software other than the Gradebook itself.

isReleased

public boolean isReleased()
Returns:
true if the assignment has been released for view to students

getExternalAppName

public String getExternalAppName()
Returns:
Returns the externalAppName, or null if the assignment is maintained by the Gradebook

getExternalId

public String getExternalId()
Returns:
Returns the external Id, or null if the assignment is maintained by the Gradebook

isCounted

public boolean isCounted()

setCounted

public void setCounted(boolean notCounted)

setPoints

public void setPoints(Double points)

setDueDate

public void setDueDate(Date dueDate)

setExternalAppName

public void setExternalAppName(String externalAppName)

setExternalId

public void setExternalId(String externalId)

setExternallyMaintained

public void setExternallyMaintained(boolean externallyMaintained)

setName

public void setName(String name)

setReleased

public void setReleased(boolean released)

setId

public void setId(Long id)

getCategoryName

public String getCategoryName()

setCategoryName

public void setCategoryName(String categoryName)

getWeight

public Double getWeight()

setWeight

public void setWeight(Double weight)

getUngraded

public boolean getUngraded()

setUngraded

public void setUngraded(boolean ungraded)


Copyright © 2011 Sakai Project. All Rights Reserved.