@Component public class GClassroomManagerImpl extends BaseLmsIntegrationManager
myType| Constructor and Description |
|---|
GClassroomManagerImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
assignToStream(int psid,
java.lang.String classUID)
For the current user (logged in) user, assigns a Problem Set to a group and sends
the resulting assignment to the teacher's LMS assignment stream.
|
void |
assignToStream(int psid,
java.lang.String name,
java.lang.String classUUID)
Creates a named assignment in a third-party stream
|
void |
authenticateUser(java.lang.String callbackUrls,
java.lang.Object permissionsBlob)
Authenticates that the current user - possibly an already authenticated CAS user,
possibly an unauthenticated (anonymous) user - with the current LMS.
|
int |
gradeToStream(java.lang.String studentUUID,
java.lang.String assignmentUUID)
Retrieves a student's score from a third-party's records
|
getLmsType, getLoginProvider, supportspublic void authenticateUser(java.lang.String callbackUrls,
java.lang.Object permissionsBlob)
LmsIntegrationManagerBecause this method may cause the target LMS to bring up a login UI, and because after returning from this method the caller will need to redirect to a CAS application UI, this method must only be called from a controller.
For now, assume the callback URL(s) are currently passed as a String of name=value pairs.
For example: onSuccess=
For now, assume that the caller passes a request for authentication provider-specific permissions
via an Object that implementing classes must cast - at least until we come up with a comment
object that makes sense across all authentication providers.
This method returns nothing as it is going to trigger a redirect to controllers run by the
external authentication provider.PairSet.
public void assignToStream(int psid,
java.lang.String classUID)
LmsIntegrationManagerassignToStream()
names the assignment using the selected Problem Set's name.
psid - ID of Problem Set to assignclassUID - LMS class that receives the assignmentpublic void assignToStream(int psid,
java.lang.String name,
java.lang.String classUUID)
LmsIntegrationManagerpsid - assigned test problem set idname - assignment nameclassUUID - third-party stream idpublic int gradeToStream(java.lang.String studentUUID,
java.lang.String assignmentUUID)
LmsIntegrationManagerstudentUUID - student ID in third-partyassignmentUUID - assignment ID in third-party