| Package | Description |
|---|---|
| org.sakaiproject.assignment.api | |
| org.sakaiproject.assignment.api.model | |
| org.sakaiproject.assignment.api.persistence | |
| org.sakaiproject.assignment.api.taggable |
| Modifier and Type | Method and Description |
|---|---|
Assignment |
AssignmentService.addAssignment(String context)
Creates and adds a new Assignment to the service.
|
Assignment |
AssignmentService.addDuplicateAssignment(String context,
String assignmentId)
Creates and adds a new Assignment to the service which is a copy of an existing Assignment.
|
Assignment |
AssignmentService.getAssignment(Reference reference) |
Assignment |
AssignmentService.getAssignment(String assignmentId)
Access the Assignment with the specified id.
|
Assignment |
AssignmentService.mergeAssignment(Element el)
Add a new assignment to the directory, from a definition in XML.
|
| Modifier and Type | Method and Description |
|---|---|
Collection<Assignment> |
AssignmentService.getAssignmentsForContext(String context)
Access all the Assignemnts that are not deleted and self-drafted ones
|
Collection<Assignment> |
AssignmentService.getDeletedAssignmentsForContext(String context)
Access all the Assignments that are deleted
|
Map<Assignment,List<String>> |
AssignmentService.getSubmittableAssignmentsForContext(String context)
Retrieve a map of Assignments to a list of User IDs of those who
may submit each assignment.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
AssignmentService.allowAddSubmissionCheckGroups(Assignment assignment) |
boolean |
AssignmentService.assignmentUsesAnonymousGrading(Assignment a)
If the assignment uses anonymous grading returns true, else false
Params: AssignmentSubmission s
|
boolean |
AssignmentService.canSubmit(Assignment assignment)
Whether the current user can submit to this assignment thereby creating a submission
|
boolean |
AssignmentService.canSubmit(Assignment assignment,
String userId)
Whether a specific user can submit to this assignment thereby creating a submission
Of particular importance is whether userId is blank or not,
a blank userId will perform all security checks against the current user
while a non blank userId will perform all security checks against the specified user.
|
Entity |
AssignmentService.createAssignmentEntity(Assignment assignment) |
void |
AssignmentService.deleteAssignment(Assignment assignment)
Delete this Assignment
|
void |
AssignmentService.deleteAssignmentAndAllReferences(Assignment assignment)
Softly delete this Assignment and remove all references to it.
|
Set<AssignmentSubmission> |
AssignmentService.getSubmissions(Assignment assignment)
Get the submissions for an assignment.
|
String |
AssignmentService.getXmlAssignment(Assignment assignment) |
void |
AssignmentEntity.initEntity(Assignment assignment) |
boolean |
AssignmentService.isPeerAssessmentClosed(Assignment assignment)
peer assessment is set for this assignment but the current time is passed
the peer assessment period
|
boolean |
AssignmentService.isPeerAssessmentOpen(Assignment assignment)
peer assessment is set for this assignment and the current time
falls between the assignment close time and the peer asseessment period time
|
boolean |
AssignmentService.isPeerAssessmentPending(Assignment assignment)
peer assessment is set for this assignment but the close time hasn't passed
|
static AssignmentReferenceReckoner.AssignmentReference |
AssignmentReferenceReckoner.newAssignmentReferenceReckoner(Assignment assignment,
AssignmentSubmission submission,
String container,
String context,
String id,
String reference,
String subtype)
This is a builder for an AssignmentReference
|
void |
AssignmentService.resetAssignment(Assignment assignment) |
void |
AssignmentService.softDeleteAssignment(Assignment assignment)
Softly delete this Assignment
|
void |
AssignmentService.updateAssignment(Assignment assignment) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
AssignmentSupplementItemService.canEditNoteItem(Assignment a)
Can the current user modify the AssignmentNoteItem?
|
boolean |
AssignmentSupplementItemService.canReadNoteItem(Assignment a,
String context)
Can current user read the AssignmentNoteItem?
|
boolean |
AssignmentSupplementItemService.canViewAllPurposeItem(Assignment a)
Can the current user view the all purpose item?
|
boolean |
AssignmentSupplementItemService.canViewModelAnswer(Assignment a,
AssignmentSubmission s)
Can the current user see the model answer or not
|
| Modifier and Type | Method and Description |
|---|---|
Assignment |
AssignmentRepository.findAssignment(String id) |
| Modifier and Type | Method and Description |
|---|---|
List<Assignment> |
AssignmentRepository.findAssignmentsBySite(String siteId) |
List<Assignment> |
AssignmentRepository.findDeletedAssignmentsBySite(String siteId) |
| Modifier and Type | Method and Description |
|---|---|
void |
AssignmentRepository.initializeAssignment(Assignment assignment) |
void |
AssignmentRepository.newAssignment(Assignment assignment) |
void |
AssignmentRepository.resetAssignment(Assignment assignment) |
| Modifier and Type | Method and Description |
|---|---|
TaggableActivity |
AssignmentActivityProducer.getActivity(Assignment assignment)
Method to wrap the given assignment as a taggable activity.
|
Copyright © 2003–2019 The Sakai Foundation. All rights reserved.