public final class CourseOfferingServiceTestDataUtils extends Object
Constructor and Description |
---|
CourseOfferingServiceTestDataUtils() |
Modifier and Type | Method and Description |
---|---|
static AcademicCalendarInfo |
createAcademicCalendar(String calendarName,
String plainName) |
static ActivityOfferingInfo |
createActivityOffering(String termId,
CourseOfferingInfo courseOffering,
String formatOfferingId,
List<String> scheduleIds,
String activityId,
String activityName,
String activityCode,
String activityOfferingTypeKey,
List<OfferingInstructorInfo> instructors)
Create and initialize an ActivityOffering using some base data aswell as
the parameters given.
|
static ActivityOfferingClusterInfo |
createActivityOfferingCluster(String formatOfferingId,
String clusterName,
List<ActivityOfferingInfo> activities)
Create and initialize an ActivityOfferingCluster using some base data
aswell as the parameters given.
|
static ActivityOfferingSetInfo |
createActivityOfferingSet(String activityOfferingTypeKey,
List<ActivityOfferingInfo> activities)
Helper to build an ActivityOfferingSet from a list of the real
activities
|
static String |
createCanonicalActivityId(String formatId,
String activityTypeKey) |
static CourseOfferingInfo |
createCourseOffering(CourseInfo canonicalCourse,
String termId) |
static CourseOfferingInfo |
createCourseOffering(CourseInfo canonicalCourse,
String termId,
Integer maximumEnrollment,
Integer minimumEnrollment) |
static CourseOfferingInfo |
createCourseOffering(CourseInfo canonicalCourse,
String termId,
String courseOfferingStateKey) |
static CourseOfferingInfo |
createCourseOffering(CourseInfo canonicalCourse,
String termId,
String courseOfferingStateKey,
Integer maximumEnrollment,
Integer minimumEnrollment) |
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,
String activityOfferingClusterId,
List<String> activityOfferingIds,
String name,
String registrationCode,
boolean generated,
Boolean honorsOffering,
Integer maximumEnrollment,
String registrationGroupStateKey) |
static RegistrationGroupInfo |
createRegistrationGroup(String courseOfferingId,
String formatOfferingId,
String activityOfferingClusterId,
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) |
public CourseOfferingServiceTestDataUtils()
public static ActivityOfferingClusterInfo createActivityOfferingCluster(String formatOfferingId, String clusterName, List<ActivityOfferingInfo> activities)
formatOfferingId
- activities
- public static ActivityOfferingSetInfo createActivityOfferingSet(String activityOfferingTypeKey, List<ActivityOfferingInfo> activities)
activityOfferingTypeKey
- activities
- public static ActivityOfferingInfo createActivityOffering(String termId, CourseOfferingInfo courseOffering, String formatOfferingId, List<String> scheduleIds, String activityId, String activityName, String activityCode, String activityOfferingTypeKey, List<OfferingInstructorInfo> instructors)
formatOfferingId
- activityId
- scheduleIds
- activityName
- instructors
- public static FormatOfferingInfo createFormatOffering(String courseOfferingId, String canonicalFormatId, String termId, String formatName, String activityOfferingTypeKeys)
public static FormatOfferingInfo createFormatOffering(String courseOfferingId, String canonicalFormatId, String termId, String formatName, String[] activityOfferingTypeKeys)
courseOfferingId
- canonicalFormatId
- termId
- formatName
- public static TermInfo createTerm(String termName, String plainName) throws DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, ReadOnlyException
public static AcademicCalendarInfo createAcademicCalendar(String calendarName, String plainName)
public static OfferingInstructorInfo createInstructor(String personId, String personName, Float percentageEffort)
public static RegistrationGroupInfo createRegistrationGroup(String courseOfferingId, String formatOfferingId, String activityOfferingClusterId, String termId, List<String> activityOfferingIds, String name, String registrationCode, Integer maximumEnrollment)
public static RegistrationGroupInfo createRegistrationGroup(String courseOfferingId, String formatOfferingId, String termId, String activityOfferingClusterId, List<String> activityOfferingIds, String name, String registrationCode, boolean generated, Boolean honorsOffering, Integer maximumEnrollment, String registrationGroupStateKey)
public static String createCanonicalActivityId(String formatId, String activityTypeKey)
public static CourseOfferingInfo createCourseOffering(CourseInfo canonicalCourse, String termId, String courseOfferingStateKey)
public static CourseOfferingInfo createCourseOffering(CourseInfo canonicalCourse, String termId, String courseOfferingStateKey, Integer maximumEnrollment, Integer minimumEnrollment)
public static CourseOfferingInfo createCourseOffering(CourseInfo canonicalCourse, String termId)
public static CourseOfferingInfo createCourseOffering(CourseInfo canonicalCourse, String termId, Integer maximumEnrollment, Integer minimumEnrollment)
public static SeatPoolDefinitionInfo createSeatPoolDefinition(String populationId, String name, String expirationMilestoneTypeKey, Boolean percentage, Integer seatLimit, Integer processingPriority)
Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.