org.kuali.student.enrollment.class2.courseoffering.service.impl
Class CourseOfferingServiceDataUtils
java.lang.Object
org.kuali.student.enrollment.class2.courseoffering.service.impl.CourseOfferingServiceDataUtils
public final class CourseOfferingServiceDataUtils
- extends Object
Helper methods for creating the CourseOfferingService class2 objects.
This was originally created to assist with unit testing the
CourseOfferingServiceMockImpl
- Author:
- ocleirig
Method Summary |
static AcademicCalendarInfo |
createAcademicCalendar(String calendarName,
String plainName)
|
static ActivityOfferingInfo |
createActivityOffering(String termId,
CourseOfferingInfo courseOffering,
String formatOfferingId,
String scheduleId,
String activityId,
String activityName,
String activityCode,
String activityTypeKey,
List<OfferingInstructorInfo> instructors)
Create and initialize an ActivityOffering using some base data aswell as
the parameters given. |
static String |
createCanonicalActivityId(String formatId,
String activityTypeKey)
|
static CourseOfferingInfo |
createCourseOffering(CourseInfo canonicalCourse,
String termId)
|
static FormatOfferingInfo |
createFormatOffering(String courseOfferingId,
String canonicalFormatId,
String termId,
String formatName,
String activityOfferingTypeKeys)
|
static FormatOfferingInfo |
createFormatOffering(String courseOfferingId,
String canonicalFormatId,
String termId,
String formatName,
String[] activityOfferingTypeKeys)
Create and initialize a FormatOffering using some base data aswell as the
parameters given. |
static OfferingInstructorInfo |
createInstructor(String personId,
String personName,
Float percentageEffort)
|
static RegistrationGroupInfo |
createRegistrationGroup(String courseOfferingId,
String formatOfferingId,
String termId,
List<String> activityOfferingIds,
String name,
String registrationCode,
boolean generated,
Boolean honorsOffering,
Integer maximumEnrollment,
String registrationGroupStateKey)
|
static RegistrationGroupInfo |
createRegistrationGroup(String courseOfferingId,
String formatOfferingId,
String termId,
List<String> activityOfferingIds,
String name,
String registrationCode,
Integer maximumEnrollment)
|
static SeatPoolDefinitionInfo |
createSeatPoolDefinition(String populationId,
String name,
String expirationMilestoneTypeKey,
Boolean percentage,
Integer seatLimit,
Integer processingPriority)
|
static TermInfo |
createTerm(String termName,
String plainName)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CourseOfferingServiceDataUtils
public CourseOfferingServiceDataUtils()
createActivityOffering
public static ActivityOfferingInfo createActivityOffering(String termId,
CourseOfferingInfo courseOffering,
String formatOfferingId,
String scheduleId,
String activityId,
String activityName,
String activityCode,
String activityTypeKey,
List<OfferingInstructorInfo> instructors)
- Create and initialize an ActivityOffering using some base data aswell as
the parameters given.
- Parameters:
formatOfferingId
- activityId
- scheduleId
- activityName
- instructors
-
- Returns:
createFormatOffering
public static FormatOfferingInfo createFormatOffering(String courseOfferingId,
String canonicalFormatId,
String termId,
String formatName,
String activityOfferingTypeKeys)
createFormatOffering
public static FormatOfferingInfo createFormatOffering(String courseOfferingId,
String canonicalFormatId,
String termId,
String formatName,
String[] activityOfferingTypeKeys)
- Create and initialize a FormatOffering using some base data aswell as the
parameters given.
- Parameters:
courseOfferingId
- canonicalFormatId
- termId
- formatName
-
- Returns:
createTerm
public static TermInfo createTerm(String termName,
String plainName)
throws DataValidationErrorException,
DoesNotExistException,
InvalidParameterException,
MissingParameterException,
OperationFailedException,
PermissionDeniedException,
ReadOnlyException
- Throws:
DataValidationErrorException
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException
PermissionDeniedException
ReadOnlyException
createAcademicCalendar
public static AcademicCalendarInfo createAcademicCalendar(String calendarName,
String plainName)
createInstructor
public static OfferingInstructorInfo createInstructor(String personId,
String personName,
Float percentageEffort)
createRegistrationGroup
public static RegistrationGroupInfo createRegistrationGroup(String courseOfferingId,
String formatOfferingId,
String termId,
List<String> activityOfferingIds,
String name,
String registrationCode,
Integer maximumEnrollment)
createRegistrationGroup
public static RegistrationGroupInfo createRegistrationGroup(String courseOfferingId,
String formatOfferingId,
String termId,
List<String> activityOfferingIds,
String name,
String registrationCode,
boolean generated,
Boolean honorsOffering,
Integer maximumEnrollment,
String registrationGroupStateKey)
createCanonicalActivityId
public static String createCanonicalActivityId(String formatId,
String activityTypeKey)
createCourseOffering
public static CourseOfferingInfo createCourseOffering(CourseInfo canonicalCourse,
String termId)
createSeatPoolDefinition
public static SeatPoolDefinitionInfo createSeatPoolDefinition(String populationId,
String name,
String expirationMilestoneTypeKey,
Boolean percentage,
Integer seatLimit,
Integer processingPriority)
Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.