@Component
public class LmsIntegrationManagerHelper
extends java.lang.Object
| Constructor and Description |
|---|
LmsIntegrationManagerHelper() |
| Modifier and Type | Method and Description |
|---|---|
Group |
createGroup(LmsType lms,
java.lang.String classUID,
java.lang.String className)
For the current (logged in) user, creates a
Group representing the named class. |
Assignment |
createGroupAssignment(LmsType lms,
int psid,
java.lang.String classUID)
For the current (logged in) user, creates an
Assignment. |
protected Assignment |
createGroupAssignment(LmsType lms,
int psid,
java.lang.String name,
java.lang.String classUID)
For the current (logged in) user, creates an
Assignment. |
User |
createUser(ExternalUserInfo userProfile)
Creates a new CAS
User or returns an existing User |
public User createUser(ExternalUserInfo userProfile)
User or returns an existing User
Side effect: Creates a User entry in the LMS mappings table
userProfile - User info provided by the LMSUserpublic Group createGroup(LmsType lms, java.lang.String classUID, java.lang.String className)
Group representing the named class.
Side effect: Creates a Group entry in the LMS mappings table
lms - The LMS for which a group is created.classUID - A class ID provided by the LMS (as selected by the teacher)className - Class name provided by the LMS to be used as the created Group's nameGroup objectpublic Assignment createGroupAssignment(LmsType lms, int psid, java.lang.String classUID)
Assignment.
Side effect: Creates an Assignment entry in the LMS mappings table
lms - The LMS for which an assignment is created.psid - Problem Set ID to assign The assignment is given the name of the Problem Set.classUID - A class ID provided by the LMS (as selected by the teacher)Assignment objectprotected Assignment createGroupAssignment(LmsType lms, int psid, java.lang.String name, java.lang.String classUID)
Assignment.
Identical to {@link #createGroupAssignment(LmsType, int, String) except this method allows you to specify a custom assignment name.
lms - psid - name - Assignment nameclassUID -