public class KRMSEnrollmentEligibilityDataLoader extends AbstractMockServicesAwareDataLoader
Modifier and Type | Field and Description |
---|---|
ContextInfo |
contextInfo |
static Date |
END_FALL_TERM_DATE |
static Date |
END_SPRING_TERM_DATE |
static Date |
END_SUMMER_TERM_DATE |
static Date |
END_WINTER_TERM_DATE |
static String |
FAKE_COURSE_ID |
static String |
FAKE_COURSE2_ID |
static String |
FAKE_COURSE3_ID |
static Date |
START_FALL_TERM_DATE |
static Date |
START_SPRING_TERM_DATE |
static Date |
START_SUMMER_TERM_DATE |
static Date |
START_WINTER_TERM_DATE |
static String |
STUDENT_ONE_ID |
static String |
STUDENT_THREE_ID |
static String |
STUDENT_TWO_ID |
applicationContext, context, initialized
Constructor and Description |
---|
KRMSEnrollmentEligibilityDataLoader() |
Modifier and Type | Method and Description |
---|---|
RegistrationRequestItemInfo |
createRegistrationItem(String studentId,
String regGroupId)
Helper to create a new StudentCourseRecordInfo object built using the provided details.
|
RegistrationRequestInfo |
createRegistrationRequest(String studentId,
String termId)
Helper to create a new StudentCourseRecordInfo object built using the provided details.
|
StudentCourseRecordInfo |
createStudentCourseRecord(String studentId,
String termId,
String courseCode,
String courseTitle,
String gradeValue,
String gradeScaleKey)
Helper to create a new StudentCourseRecordInfo object built using the provided details.
|
StudentProgramRecordInfo |
createStudentProgramRecord(String studentId,
CluInfo program)
Helper to create a new StudentProgramRecordInfo object built using the provided details.
|
CourseInfo |
getCourse(String courseId) |
CourseOffering |
getCourseOffering(String courseId,
String termId) |
String |
getFallTermId() |
CluInfo |
getProgram(String programId) |
RegistrationGroupInfo |
getRegistrationGroup(String courseId,
String termId) |
String |
getSpringTermId() |
String |
getSummerTermId() |
String |
getWinterTermId() |
protected void |
initializeData() |
RegistrationRequestInfo |
persistRegistrationRequest(RegistrationRequestInfo request)
Store a new CourseRecord for the student in the term given.
|
void |
setContextInfo(ContextInfo contextInfo) |
void |
storeStudentCourseRecord(String studentId,
String termId,
String courseId,
StudentCourseRecordInfo courseRecord)
Store a new CourseRecord for the student in the term given.
|
void |
storeStudentProgramRecord(String studentId,
String programId,
StudentProgramRecordInfo programRecord)
Store a new ProgramRecord for the student in the term given.
|
void |
submitRegistrationRequest(String requestId) |
afterTest, beforeTest, isInitialized, setApplicationContext
public static final Date START_WINTER_TERM_DATE
public static final Date END_WINTER_TERM_DATE
public static final Date START_SPRING_TERM_DATE
public static final Date END_SPRING_TERM_DATE
public static final Date START_SUMMER_TERM_DATE
public static final Date END_SUMMER_TERM_DATE
public static final Date START_FALL_TERM_DATE
public static final Date END_FALL_TERM_DATE
public static final String STUDENT_ONE_ID
public static final String STUDENT_TWO_ID
public static final String STUDENT_THREE_ID
public static final String FAKE_COURSE_ID
public static final String FAKE_COURSE2_ID
public static final String FAKE_COURSE3_ID
public ContextInfo contextInfo
public KRMSEnrollmentEligibilityDataLoader()
protected void initializeData() throws Exception
initializeData
in class AbstractMockServicesAwareDataLoader
Exception
public String getWinterTermId()
public String getSpringTermId()
public String getSummerTermId()
public String getFallTermId()
public StudentCourseRecordInfo createStudentCourseRecord(String studentId, String termId, String courseCode, String courseTitle, String gradeValue, String gradeScaleKey) throws DoesNotExistException, OperationFailedException
studentId
- the student that took the coursetermId
- the term when the course was takencourseCode
- the course code of the course that was takencourseTitle
- the title of the courseDoesNotExistException
- the term does not existInvalidParameterException
- theMissingParameterException
OperationFailedException
PermissionDeniedException
public StudentProgramRecordInfo createStudentProgramRecord(String studentId, CluInfo program) throws DoesNotExistException, OperationFailedException
studentId
- the student that completed the programprogram
- the programDoesNotExistException
- the term does not existInvalidParameterException
- theMissingParameterException
OperationFailedException
PermissionDeniedException
public void storeStudentCourseRecord(String studentId, String termId, String courseId, StudentCourseRecordInfo courseRecord) throws DoesNotExistException, OperationFailedException
studentId
- termId
- courseRecord
- DoesNotExistException
- if the term does not exist.OperationFailedException
- if an exception occurs that prevents the execution of the method.public void storeStudentProgramRecord(String studentId, String programId, StudentProgramRecordInfo programRecord) throws DoesNotExistException, OperationFailedException
studentId
- programId
- programRecord
- DoesNotExistException
- if the term does not exist.OperationFailedException
- if an exception occurs that prevents the execution of the method.public RegistrationRequestInfo createRegistrationRequest(String studentId, String termId)
studentId
- the student that took the coursetermId
- the term when the course was takenpublic RegistrationRequestItemInfo createRegistrationItem(String studentId, String regGroupId)
regGroupId
- the student that took the coursepublic RegistrationRequestInfo persistRegistrationRequest(RegistrationRequestInfo request) throws InvalidParameterException, PermissionDeniedException, OperationFailedException, AlreadyExistsException, MissingParameterException, DoesNotExistException, ReadOnlyException, DataValidationErrorException
request
- DoesNotExistException
- if the term does not exist.OperationFailedException
- if an exception occurs that prevents the execution of the method.InvalidParameterException
PermissionDeniedException
AlreadyExistsException
MissingParameterException
ReadOnlyException
DataValidationErrorException
public void submitRegistrationRequest(String requestId) throws InvalidParameterException, PermissionDeniedException, OperationFailedException, AlreadyExistsException, MissingParameterException, DoesNotExistException, ReadOnlyException, DataValidationErrorException
public CourseOffering getCourseOffering(String courseId, String termId) throws Exception
Exception
public CourseInfo getCourse(String courseId) throws Exception
Exception
public CluInfo getProgram(String programId) throws Exception
Exception
public RegistrationGroupInfo getRegistrationGroup(String courseId, String termId) throws Exception
Exception
public void setContextInfo(ContextInfo contextInfo)
Copyright © 2004-2014 The Kuali Foundation. All Rights Reserved.