org.sakaiproject.service.legacy.assignment
Interface Assignment

All Superinterfaces:
Comparable, Entity
All Known Subinterfaces:
AssignmentEdit
All Known Implementing Classes:
BaseAssignmentService.BaseAssignment, BaseAssignmentService.BaseAssignmentEdit

public interface Assignment
extends Entity, Comparable

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
static int ASSIGNMENT_SUBMISSION_TYPE_NOT_SET
          Assignment type not yet set
static int ATTACHMENT_ONLY_ASSIGNMENT_SUBMISSION
          Attachment only assignment type
static int CHECK_GRADE_TYPE
          Grade type that only requires a check
static String CHECK_GRADE_TYPE_STRING
          Grade type that only requires a check string
static int GRADE_TYPE_NOT_SET
          Grade type not set
static int HONOR_PLEDGE_ENGINEERING
          Honor Pledge not yet set
static int HONOR_PLEDGE_NONE
          Honor Pledge not yet set
static int HONOR_PLEDGE_NOT_SET
          Honor Pledge not yet set
static int LETTER_GRADE_TYPE
          Letter grade type
static String LETTER_GRADE_TYPE_STRING
          Letter grade type string
static int PASS_FAIL_GRADE_TYPE
          Pass/fail grade type
static String PASS_FAIL_GRADE_TYPE_STRING
          Pass/fail grade type string
static int SCORE_GRADE_TYPE
          Score based grade type
static String SCORE_GRADE_TYPE_STRING
          Score based grade type string
static int TEXT_AND_ATTACHMENT_ASSIGNMENT_SUBMISSION
          Text and/or attachment assignment type
static int TEXT_ONLY_ASSIGNMENT_SUBMISSION
          Text only assignment type
static int UNGRADED_GRADE_TYPE
          Ungraded grade type
static String UNGRADED_GRADE_TYPE_STRING
          Ungraded grade type string
 
Fields inherited from interface org.sakaiproject.service.legacy.entity.Entity
SEPARATOR
 
Method Summary
 String getAuthorLastModified()
          Access the author of last modification
 List getAuthors()
          Access the list of authors.
 Time getCloseTime()
          Access the close time after which this assignment can no longer be viewed, and after which submissions will not be accepted.
 AssignmentContent getContent()
          Access the AssignmentContent of this Assignment.
 String getContentReference()
          Access the reference of the AssignmentContent of this Assignment.
 String getContext()
          Access the context at the time of creation.
 String getCreator()
          Access the creator of this object.
 boolean getDraft()
          Get whether this is a draft or final copy.
 Time getDropDeadTime()
          Access the drop dead time after which responses to this assignment are considered late; may be null.
 Time getDueTime()
          Access the time at which the assignment is due; may be null.
 Time getOpenTime()
          Access the first time at which the assignment can be viewed; may be null.
 String getSection()
          Access the section info.
 Time getTimeCreated()
          Access the time that this object was created.
 Time getTimeLastModified()
          Access the time of last modificaiton.
 String getTitle()
          Access the title.
 
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
 

Field Detail

GRADE_TYPE_NOT_SET

public static final int GRADE_TYPE_NOT_SET
Grade type not set

See Also:
Constant Field Values

UNGRADED_GRADE_TYPE

public static final int UNGRADED_GRADE_TYPE
Ungraded grade type

See Also:
Constant Field Values

LETTER_GRADE_TYPE

public static final int LETTER_GRADE_TYPE
Letter grade type

See Also:
Constant Field Values

SCORE_GRADE_TYPE

public static final int SCORE_GRADE_TYPE
Score based grade type

See Also:
Constant Field Values

PASS_FAIL_GRADE_TYPE

public static final int PASS_FAIL_GRADE_TYPE
Pass/fail grade type

See Also:
Constant Field Values

CHECK_GRADE_TYPE

public static final int CHECK_GRADE_TYPE
Grade type that only requires a check

See Also:
Constant Field Values

UNGRADED_GRADE_TYPE_STRING

public static final String UNGRADED_GRADE_TYPE_STRING
Ungraded grade type string

See Also:
Constant Field Values

LETTER_GRADE_TYPE_STRING

public static final String LETTER_GRADE_TYPE_STRING
Letter grade type string

See Also:
Constant Field Values

SCORE_GRADE_TYPE_STRING

public static final String SCORE_GRADE_TYPE_STRING
Score based grade type string

See Also:
Constant Field Values

PASS_FAIL_GRADE_TYPE_STRING

public static final String PASS_FAIL_GRADE_TYPE_STRING
Pass/fail grade type string

See Also:
Constant Field Values

CHECK_GRADE_TYPE_STRING

public static final String CHECK_GRADE_TYPE_STRING
Grade type that only requires a check string

See Also:
Constant Field Values

ASSIGNMENT_SUBMISSION_TYPE_NOT_SET

public static final int ASSIGNMENT_SUBMISSION_TYPE_NOT_SET
Assignment type not yet set

See Also:
Constant Field Values

TEXT_ONLY_ASSIGNMENT_SUBMISSION

public static final int TEXT_ONLY_ASSIGNMENT_SUBMISSION
Text only assignment type

See Also:
Constant Field Values

ATTACHMENT_ONLY_ASSIGNMENT_SUBMISSION

public static final int ATTACHMENT_ONLY_ASSIGNMENT_SUBMISSION
Attachment only assignment type

See Also:
Constant Field Values

TEXT_AND_ATTACHMENT_ASSIGNMENT_SUBMISSION

public static final int TEXT_AND_ATTACHMENT_ASSIGNMENT_SUBMISSION
Text and/or attachment assignment type

See Also:
Constant Field Values

HONOR_PLEDGE_NOT_SET

public static final int HONOR_PLEDGE_NOT_SET
Honor Pledge not yet set

See Also:
Constant Field Values

HONOR_PLEDGE_NONE

public static final int HONOR_PLEDGE_NONE
Honor Pledge not yet set

See Also:
Constant Field Values

HONOR_PLEDGE_ENGINEERING

public static final int HONOR_PLEDGE_ENGINEERING
Honor Pledge not yet set

See Also:
Constant Field Values
Method Detail

getContent

public AssignmentContent getContent()
Access the AssignmentContent of this Assignment.

Returns:
The Assignment's AssignmentContent.

getContentReference

public String getContentReference()
Access the reference of the AssignmentContent of this Assignment.

Returns:
The AssignmentContent's reference.

getOpenTime

public Time getOpenTime()
Access the first time at which the assignment can be viewed; may be null.

Returns:
The Time at which the assignment is due, or null if unspecified.

getDueTime

public Time getDueTime()
Access the time at which the assignment is due; may be null.

Returns:
The Time at which the Assignment is due, or null if unspecified.

getDropDeadTime

public Time getDropDeadTime()
Access the drop dead time after which responses to this assignment are considered late; may be null.

Returns:
The Time object representing the drop dead time, or null if unspecified.

getCloseTime

public Time getCloseTime()
Access the close time after which this assignment can no longer be viewed, and after which submissions will not be accepted. May be null.

Returns:
The Time after which the Assignment is closed, or null if unspecified.

getSection

public String getSection()
Access the section info.

Returns:
The section id.

getContext

public String getContext()
Access the context at the time of creation.

Returns:
String - the context string.

getDraft

public boolean getDraft()
Get whether this is a draft or final copy.

Returns:
True if this is a draft, false if it is a final copy.

getCreator

public String getCreator()
Access the creator of this object.

Returns:
String - The id of the creator.

getTimeCreated

public Time getTimeCreated()
Access the time that this object was created.

Returns:
The Time object representing the time of creation.

getAuthors

public List getAuthors()
Access the list of authors.

Returns:
List of authors as User objects.

getTimeLastModified

public Time getTimeLastModified()
Access the time of last modificaiton.

Returns:
The Time of last modification.

getAuthorLastModified

public String getAuthorLastModified()
Access the author of last modification

Returns:
String - The id of the author.

getTitle

public String getTitle()
Access the title.

Returns:
The Assignment's title.