org.sakaiproject.service.legacy.assignment
Interface AssignmentEdit

All Superinterfaces:
Assignment, Comparable, Edit, Entity
All Known Implementing Classes:
BaseAssignmentService.BaseAssignmentEdit

public interface AssignmentEdit
extends Assignment, Edit

Assignment is an interface for the CHEF assignments module. It represents a specific assignment (as for a specific section or class).

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

Field Summary
 
Fields inherited from interface org.sakaiproject.service.legacy.assignment.Assignment
ASSIGNMENT_SUBMISSION_TYPE_NOT_SET, ATTACHMENT_ONLY_ASSIGNMENT_SUBMISSION, CHECK_GRADE_TYPE, CHECK_GRADE_TYPE_STRING, GRADE_TYPE_NOT_SET, HONOR_PLEDGE_ENGINEERING, HONOR_PLEDGE_NONE, HONOR_PLEDGE_NOT_SET, LETTER_GRADE_TYPE, LETTER_GRADE_TYPE_STRING, PASS_FAIL_GRADE_TYPE, PASS_FAIL_GRADE_TYPE_STRING, SCORE_GRADE_TYPE, SCORE_GRADE_TYPE_STRING, TEXT_AND_ATTACHMENT_ASSIGNMENT_SUBMISSION, TEXT_ONLY_ASSIGNMENT_SUBMISSION, UNGRADED_GRADE_TYPE, UNGRADED_GRADE_TYPE_STRING
 
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 setCloseTime(Time closeTime)
          Set the time after which this assignment can no longer be viewed, and after which submissions will not be accepted.
 void setContent(AssignmentContent content)
          Set the AssignmentContent of this Assignment.
 void setContentReference(String contentReference)
          Set the reference of the AssignmentContent of this Assignment.
 void setContext(String context)
          Set the Assignment's context at the time of creation.
 void setDraft(boolean draft)
          Set whether this is a draft or final copy.
 void setDropDeadTime(Time dropDeadTime)
          Set the drop dead time after which responses to this assignment are considered late; may be null.
 void setDueTime(Time dueTime)
          Set the time at which the assignment is due; may be null.
 void setOpenTime(Time openTime)
          Set the first time at which the assignment can be viewed; may be null.
 void setSection(String sectionId)
          Set the section info
 void setTitle(String title)
          Set the title.
 
Methods inherited from interface org.sakaiproject.service.legacy.assignment.Assignment
getAuthorLastModified, getAuthors, getCloseTime, getContent, getContentReference, getContext, getCreator, getDraft, getDropDeadTime, getDueTime, getOpenTime, getSection, getTimeCreated, getTimeLastModified, getTitle
 
Methods inherited from interface org.sakaiproject.service.legacy.entity.Entity
getId, getProperties, getReference, getReference, getUrl, getUrl, toXml
 
Methods inherited from interface java.lang.Comparable
compareTo
 
Methods inherited from interface org.sakaiproject.service.legacy.entity.Edit
getPropertiesEdit, isActiveEdit
 

Method Detail

setContentReference

public void setContentReference(String contentReference)
Set the reference of the AssignmentContent of this Assignment.


setContent

public void setContent(AssignmentContent content)
Set the AssignmentContent of this Assignment.

Parameters:
content - - the Assignment's AssignmentContent.

setOpenTime

public void setOpenTime(Time openTime)
Set the first time at which the assignment can be viewed; may be null.

Parameters:
openTime - - The Time at which the Assignment opens.

setDueTime

public void setDueTime(Time dueTime)
Set the time at which the assignment is due; may be null.

Parameters:
dueTime - - The Time at which the Assignment is due.

setDropDeadTime

public void setDropDeadTime(Time dropDeadTime)
Set the drop dead time after which responses to this assignment are considered late; may be null.

Parameters:
dropDeadTime - - The Time object representing the drop dead time.

setCloseTime

public void setCloseTime(Time closeTime)
Set the time after which this assignment can no longer be viewed, and after which submissions will not be accepted. May be null.

Parameters:
closeTime - - The Time after which the Assignment is closed, or null if unspecified.

setSection

public void setSection(String sectionId)
Set the section info

Parameters:
sectionId - - The section id.

setContext

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

Parameters:
context - - The context string.

setDraft

public void setDraft(boolean draft)
Set whether this is a draft or final copy.

Parameters:
draft - - true if this is a draft, false if it is a final copy.

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.

setTitle

public void setTitle(String title)
Set the title.

Parameters:
title - - The Assignment's title.