org.sakaiproject.service.legacy.assignment
Interface AssignmentContentEdit

All Superinterfaces:
AssignmentContent, AttachmentContainer, AttachmentContainerEdit, Edit, Entity
All Known Implementing Classes:
BaseAssignmentService.BaseAssignmentContentEdit

public interface AssignmentContentEdit
extends AssignmentContent, AttachmentContainerEdit, Edit

AssignmentContentEdit is the an interface for the CHEF assignments module. It represents the editable part of the assignment content that is "unchanging" for different versions of the assignment.

Version:
$ $
Author:
University of Michigan, CHEF Software Development Team

Field Summary
 
Fields inherited from interface org.sakaiproject.service.legacy.entity.Entity
SEPARATOR
 
Method Summary
 void addAuthor(User author)
          Add an author to the author list.
 void removeAuthor(User author)
          Remove an author from the author list.
 void setAllowAttachments(boolean allow)
          Does this Assignment allow attachments?
 void setContext(String context)
          Set the AssignmentContent's context at the time of creation.
 void setGroupProject(boolean groupProject)
          Set whether this project can be a group project.
 void setHonorPledge(int pledgeType)
          Set the Honor Pledge type; values are NONE and ENGINEERING_HONOR_PLEDGE.
 void setIndividuallyGraded(boolean individGraded)
          Set whether group projects should be individually graded.
 void setInstructions(String instructions)
          Set the instructions for the Assignment.
 void setMaxGradePoint(int maxPoints)
          Set the maximum grade for grade type = SCORE_GRADE_TYPE(3)
 void setReleaseGrades(boolean release)
          Sets whether grades can be released once submissions are graded.
 void setTimeLastModified(Time lastmod)
          Set the time last modified.
 void setTitle(String title)
          Set the title.
 void setTypeOfGrade(int gradeType)
          Set the grade type.
 void setTypeOfSubmission(int subType)
          Set the type of submission.
 
Methods inherited from interface org.sakaiproject.service.legacy.assignment.AssignmentContent
getAllowAttachments, getAuthorLastModified, getAuthors, getContext, getCreator, getGroupProject, getHonorPledge, getInstructions, getMaxGradePoint, getMaxGradePointDisplay, getTimeCreated, getTimeLastModified, getTitle, getTypeOfGrade, getTypeOfGradeString, getTypeOfSubmission, individuallyGraded, inUse, releaseGrades
 
Methods inherited from interface org.sakaiproject.service.legacy.entity.Entity
getId, getProperties, getReference, getReference, getUrl, getUrl, toXml
 
Methods inherited from interface org.sakaiproject.service.legacy.entity.AttachmentContainer
getAttachments
 
Methods inherited from interface org.sakaiproject.service.legacy.entity.AttachmentContainerEdit
addAttachment, clearAttachments, removeAttachment, replaceAttachments
 
Methods inherited from interface org.sakaiproject.service.legacy.entity.Edit
getPropertiesEdit, isActiveEdit
 

Method Detail

setTitle

public void setTitle(String title)
Set the title.

Parameters:
title - - The Assignment's title.

setInstructions

public void setInstructions(String instructions)
Set the instructions for the Assignment.

Parameters:
instructions - - The Assignment's instructions.

setContext

public void setContext(String context)
Set the AssignmentContent's context at the time of creation.

Parameters:
context - - The context string.

setTypeOfSubmission

public void setTypeOfSubmission(int subType)
Set the type of submission.

Parameters:
subType - - The type of submission.

setTypeOfGrade

public void setTypeOfGrade(int gradeType)
Set the grade type.

Parameters:
gradeType - - The type of grade.

setMaxGradePoint

public void setMaxGradePoint(int maxPoints)
Set the maximum grade for grade type = SCORE_GRADE_TYPE(3)

Parameters:
maxPoints - - The maximum grade score.

setGroupProject

public void setGroupProject(boolean groupProject)
Set whether this project can be a group project.

Parameters:
groupProject - - True if this can be a group project, false otherwise.

setIndividuallyGraded

public void setIndividuallyGraded(boolean individGraded)
Set whether group projects should be individually graded.

Parameters:
individGraded - - true if projects are individually graded, false if grades are given to the group.

setReleaseGrades

public void setReleaseGrades(boolean release)
Sets whether grades can be released once submissions are graded.

Parameters:
release - - true if grades can be released once submission are graded, false if they must be released manually.

setHonorPledge

public void setHonorPledge(int pledgeType)
Set the Honor Pledge type; values are NONE and ENGINEERING_HONOR_PLEDGE.

Parameters:
pledgeType - - the Honor Pledge value.

setAllowAttachments

public void setAllowAttachments(boolean allow)
Does this Assignment allow attachments?

Parameters:
allow - - true if the Assignment allows attachments, false otherwise?

addAuthor

public void addAuthor(User author)
Add an author to the author list.

Parameters:
author - - The User to add to the author list.

removeAuthor

public void removeAuthor(User author)
Remove an author from the author list.

Parameters:
author - - the User to remove from the author list.

setTimeLastModified

public void setTimeLastModified(Time lastmod)
Set the time last modified.

Parameters:
lastmod - - The Time at which the Content was last modified.