|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface GradebookExternalAssessmentService
This service is designed for use by external assessment engines. These use the Gradebook as a passive mirror of their own assignments and scores, letting Gradebook users see those assignments alongside Gradebook-managed assignments, and combine them when calculating a course grade. The Gradebook application itself will not modify externally-managed assignments and scores. WARNING: Because the Gradebook project team is not responsible for defining the external clients' requirements, the Gradebook service does not attempt to guess at their authorization needs. Our administrative and external-assessment methods simply follow orders and assume that the caller has taken the responsibility of "doing the right thing." DO NOT wrap these methods in an open web service!
| Method Summary | |
|---|---|
void |
addExternalAssessment(String gradebookUid,
String externalId,
String externalUrl,
String title,
double points,
Date dueDate,
String externalServiceDescription)
Deprecated. Replaced by addExternalAssessment(String, String, String, String, Double, Date, String, Boolean) |
void |
addExternalAssessment(String gradebookUid,
String externalId,
String externalUrl,
String title,
Double points,
Date dueDate,
String externalServiceDescription,
Boolean ungraded)
Add an externally-managed assessment to a gradebook to be treated as a read-only assignment. |
void |
addExternalAssessment(String gradebookUid,
String externalId,
String externalUrl,
String title,
Double points,
Date dueDate,
String externalServiceDescription,
Boolean ungraded,
Long categoryId)
This method is identical to addExternalAssessment(String, String, String, String, Double, Date, String, Boolean) but
allows you to also specify the associated Category for this assignment. |
Map<String,String> |
getExternalAssignmentsForCurrentUser(String gradebookUid)
Retrieve all assignments for a gradebook that are marked as externally maintained and are visible to the current user. |
Map<String,List<String>> |
getVisibleExternalAssignments(String gradebookUid,
Collection<String> studentIds)
Retrieve a list of all visible, external assignments |
boolean |
isAssignmentDefined(String gradebookUid,
String assignmentTitle)
Check to see if an assignment with the given name already exists in the given gradebook. |
boolean |
isExternalAssignmentDefined(String gradebookUid,
String externalId)
Check to see if an assignment with the given external id already exists in the given gradebook. |
boolean |
isExternalAssignmentGrouped(String gradebookUid,
String externalId)
Check with the appropriate external service if a specific assignment is available only to groups. |
boolean |
isExternalAssignmentVisible(String gradebookUid,
String externalId,
String userId)
Check with the appropriate external service if a specific assignment is available to a specific user (i.e., the user is in an appropriate group). |
boolean |
isGradebookDefined(String gradebookUid)
Checks to see whether a gradebook with the given uid exists. |
void |
registerExternalAssignmentProvider(ExternalAssignmentProvider provider)
Register a new ExternalAssignmentProvider for handling the integration of external assessment sources with the sakai gradebook Registering more than once will overwrite the current with the new one |
void |
removeExternalAssessment(String gradebookUid,
String externalId)
Remove the assessment reference from the gradebook. |
void |
setExternalAssessmentToGradebookAssignment(String gradebookUid,
String externalId)
Break the connection between an external assessment engine and an assessment which it created, giving it up to the Gradebook application to control from now on. |
void |
unregisterExternalAssignmentProvider(String providerAppKey)
Remove/unregister any ExternalAssignmentProvider which is currently registered, does nothing if they provider does not exist |
void |
updateExternalAssessment(String gradebookUid,
String externalId,
String externalUrl,
String title,
double points,
Date dueDate)
Deprecated. Replaced by updateExternalAssessment(String, String, String, String, Double, Date, Boolean) |
void |
updateExternalAssessment(String gradebookUid,
String externalId,
String externalUrl,
String title,
Double points,
Date dueDate,
Boolean ungraded)
|
void |
updateExternalAssessmentScore(String gradebookUid,
String externalId,
String studentUid,
String points)
Updates an external score for an external assignment in the gradebook. |
void |
updateExternalAssessmentScores(String gradebookUid,
String externalId,
Map studentUidsToScores)
Deprecated. Replaced by updateExternalAssessmentScoresString(String, String, Map) |
void |
updateExternalAssessmentScoresString(String gradebookUid,
String externalId,
Map studentUidsToScores)
Updates a set of external scores for an external assignment in the gradebook. |
| Method Detail |
|---|
void addExternalAssessment(String gradebookUid,
String externalId,
String externalUrl,
String title,
double points,
Date dueDate,
String externalServiceDescription)
throws GradebookNotFoundException,
ConflictingAssignmentNameException,
ConflictingExternalIdException,
AssignmentHasIllegalPointsException
addExternalAssessment(String, String, String, String, Double, Date, String, Boolean)
GradebookNotFoundException
ConflictingAssignmentNameException
ConflictingExternalIdException
AssignmentHasIllegalPointsException
void addExternalAssessment(String gradebookUid,
String externalId,
String externalUrl,
String title,
Double points,
Date dueDate,
String externalServiceDescription,
Boolean ungraded)
throws GradebookNotFoundException,
ConflictingAssignmentNameException,
ConflictingExternalIdException,
AssignmentHasIllegalPointsException
gradebookUid - externalId - some unique identifier which Samigo uses for the assessment.
The externalId is globally namespaced within the gradebook, so
if other apps decide to put assessments into the gradebook,
they should prefix their externalIds with a well known (and
unique within sakai) string.externalUrl - a link to go to if the instructor or student wants to look at the assessment
in Samigo; if null, no direct link will be provided in the
gradebook, and the user will have to navigate to the assessment
within the other applicationtitle - points - this is the total amount of points available and must be greater than zero.
it could be null if it's an ungraded item.dueDate - externalServiceDescription - ungraded - externalServiceDescription - what to display as the source of the assignment (e.g., "from Samigo")
GradebookNotFoundException
ConflictingAssignmentNameException
ConflictingExternalIdException
AssignmentHasIllegalPointsException
void addExternalAssessment(String gradebookUid,
String externalId,
String externalUrl,
String title,
Double points,
Date dueDate,
String externalServiceDescription,
Boolean ungraded,
Long categoryId)
throws GradebookNotFoundException,
ConflictingAssignmentNameException,
ConflictingExternalIdException,
AssignmentHasIllegalPointsException,
InvalidCategoryException
addExternalAssessment(String, String, String, String, Double, Date, String, Boolean) but
allows you to also specify the associated Category for this assignment. If the gradebook is set up for categories and
categoryId is null, assignment category will be unassigned
gradebookUid - externalId - externalUrl - title - points - dueDate - externalServiceDescription - ungraded - categoryId -
GradebookNotFoundException
ConflictingAssignmentNameException
ConflictingExternalIdException
AssignmentHasIllegalPointsException
InvalidCategoryException
void updateExternalAssessment(String gradebookUid,
String externalId,
String externalUrl,
String title,
double points,
Date dueDate)
throws GradebookNotFoundException,
AssessmentNotFoundException,
ConflictingAssignmentNameException,
AssignmentHasIllegalPointsException
updateExternalAssessment(String, String, String, String, Double, Date, Boolean)
GradebookNotFoundException
AssessmentNotFoundException
ConflictingAssignmentNameException
AssignmentHasIllegalPointsException
void updateExternalAssessment(String gradebookUid,
String externalId,
String externalUrl,
String title,
Double points,
Date dueDate,
Boolean ungraded)
throws GradebookNotFoundException,
AssessmentNotFoundException,
ConflictingAssignmentNameException,
AssignmentHasIllegalPointsException
GradebookNotFoundException
AssessmentNotFoundException
ConflictingAssignmentNameException
AssignmentHasIllegalPointsException
void removeExternalAssessment(String gradebookUid,
String externalId)
throws GradebookNotFoundException,
AssessmentNotFoundException
externalId - the UID of the assessment
GradebookNotFoundException
AssessmentNotFoundException
void updateExternalAssessmentScore(String gradebookUid,
String externalId,
String studentUid,
String points)
throws GradebookNotFoundException,
AssessmentNotFoundException
gradebookUid - The Uid of the gradebookexternalId - The external ID of the assignment/assessmentstudentUid - The unique id of the studentpoints - The number of points earned on this assessment, or null if a score
should be removed
GradebookNotFoundException
AssessmentNotFoundException
void updateExternalAssessmentScores(String gradebookUid,
String externalId,
Map studentUidsToScores)
throws GradebookNotFoundException,
AssessmentNotFoundException
updateExternalAssessmentScoresString(String, String, Map)
GradebookNotFoundException
AssessmentNotFoundException
void updateExternalAssessmentScoresString(String gradebookUid,
String externalId,
Map studentUidsToScores)
throws GradebookNotFoundException,
AssessmentNotFoundException
gradebookUid - The Uid of the gradebookexternalId - The external ID of the assignment/assessmentstudentUidsToScores - A map whose String keys are the unique ID strings of the students and whose
String values are points earned on this assessment or null if the score
should be removed.
GradebookNotFoundException
AssessmentNotFoundException
boolean isAssignmentDefined(String gradebookUid,
String assignmentTitle)
throws GradebookNotFoundException
GradebookNotFoundException
boolean isExternalAssignmentDefined(String gradebookUid,
String externalId)
throws GradebookNotFoundException
gradebookUid - The gradebook's unique identifierexternalId - The external assessment's external identifier
GradebookNotFoundException
boolean isExternalAssignmentGrouped(String gradebookUid,
String externalId)
throws GradebookNotFoundException
gradebookUid - The gradebook's unique identifierexternalId - The external assessment's external identifier
GradebookNotFoundException
boolean isExternalAssignmentVisible(String gradebookUid,
String externalId,
String userId)
throws GradebookNotFoundException
gradebookUid - The gradebook's unique identifierexternalId - The external assessment's external identifieruserId - The user ID to check
GradebookNotFoundException
Map<String,String> getExternalAssignmentsForCurrentUser(String gradebookUid)
throws GradebookNotFoundException
gradebookUid - The gradebook's unique identifier
GradebookNotFoundException
Map<String,List<String>> getVisibleExternalAssignments(String gradebookUid,
Collection<String> studentIds)
throws GradebookNotFoundException
gradebookUid - The gradebook's unique identifierstudentIds - The collection of student IDs for which to retrieve assignments
GradebookNotFoundExceptionvoid registerExternalAssignmentProvider(ExternalAssignmentProvider provider)
provider - the provider implementation objectvoid unregisterExternalAssignmentProvider(String providerAppKey)
providerAppKey - the unique app key for a providerboolean isGradebookDefined(String gradebookUid)
gradebookUid - The gradebook UID to check
void setExternalAssessmentToGradebookAssignment(String gradebookUid,
String externalId)
gradebookUid - externalId -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||