public class ScheduleBuildStrategyMockTest extends Object implements ScheduleBuildStrategy
| Constructor and Description |
|---|
ScheduleBuildStrategyMockTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
createReservedTime(String requestedLearningPlanId,
ReservedTime reservedTime)
Add a new reserved time on the current learning plan.
|
PossibleScheduleOption |
createSchedule(String requestedLearningPlanId,
PossibleScheduleOption schedule)
Add a new reserved time on the current learning plan.
|
void |
deleteReservedTime(String requestedLearningPlanId,
String reservedTimeId)
Add a new reserved time on the current learning plan.
|
void |
deleteSchedule(String requestedLearningPlanId,
String scheduleId)
Add a new saved schedule on the current learning plan.
|
ActivityOption |
getActivityOption(String termId,
String courseId,
String regCode)
Get a populated activity option for a given term, course, and
registration code.
|
List<CourseOption> |
getCourseOptions(List<String> courseIds,
String termId)
Load course options for a term from a list of course IDs.
|
List<CourseOption> |
getCourseOptions(String learningPlanId,
String termId)
Load the course options to use as inputs for generating schedules.
|
ScheduleBuildForm |
getInitialForm()
Get the initial schedule build form.
|
LearningPlan |
getLearningPlan(String requestedLearningPlanId)
Get the learning plan for schedule build to use as inputs.
|
List<ReservedTime> |
getReservedTimes(String requestedLearningPlanId)
Get reserved times related to the current learning plan.
|
List<PossibleScheduleOption> |
getSchedules(String requestedLearningPlanId)
Get saved schedules related to the current learning plan.
|
void |
updateReservedTime(String requestedLearningPlanId,
ReservedTime reservedTime)
Add a new reserved time on the current learning plan.
|
void |
updateSchedule(String requestedLearningPlanId,
PossibleScheduleOption schedule)
Add a new saved schedule on the current learning plan.
|
public ScheduleBuildStrategyMockTest()
public ScheduleBuildForm getInitialForm()
getInitialForm in interface ScheduleBuildStrategypublic List<CourseOption> getCourseOptions(List<String> courseIds, String termId)
getCourseOptions in interface ScheduleBuildStrategycourseIDs - Course IDs from the existing shopping cart.termId - The term to get options for.public List<CourseOption> getCourseOptions(String learningPlanId, String termId)
getCourseOptions in interface ScheduleBuildStrategylearningPlanId - The learning plan ID.termId - The term to get options for.public LearningPlan getLearningPlan(String requestedLearningPlanId) throws PermissionDeniedException
getLearningPlan in interface ScheduleBuildStrategyrequestedLearningPlanId - The requested learning plan ID. May be null to get the first
learning plan of type
AcademicPlanServiceConstants.LEARNING_PLAN_TYPE_PLAN for the student.PermissionDeniedException - If the current user does not have access to the requested
learning plan.public List<ReservedTime> getReservedTimes(String requestedLearningPlanId) throws PermissionDeniedException
getReservedTimes in interface ScheduleBuildStrategyrequestedLearningPlanId - See getLearningPlan(String).PermissionDeniedExceptionpublic void createReservedTime(String requestedLearningPlanId, ReservedTime reservedTime) throws PermissionDeniedException
createReservedTime in interface ScheduleBuildStrategyreservedTime - The reserved time to add.PermissionDeniedExceptionpublic void updateReservedTime(String requestedLearningPlanId, ReservedTime reservedTime) throws PermissionDeniedException
updateReservedTime in interface ScheduleBuildStrategyreservedTime - The reserved time to add.PermissionDeniedExceptionpublic void deleteReservedTime(String requestedLearningPlanId, String reservedTimeId) throws PermissionDeniedException
deleteReservedTime in interface ScheduleBuildStrategyreservedTimeId - The ID of the reserved time to delete.PermissionDeniedExceptionpublic List<PossibleScheduleOption> getSchedules(String requestedLearningPlanId) throws PermissionDeniedException
getSchedules in interface ScheduleBuildStrategyrequestedLearningPlanId - See getLearningPlan(String).PermissionDeniedExceptionpublic PossibleScheduleOption createSchedule(String requestedLearningPlanId, PossibleScheduleOption schedule) throws PermissionDeniedException
createSchedule in interface ScheduleBuildStrategyreservedTime - The reserved time to add.PermissionDeniedExceptionpublic void updateSchedule(String requestedLearningPlanId, PossibleScheduleOption schedule) throws PermissionDeniedException
updateSchedule in interface ScheduleBuildStrategyschedule - The schedule to add.PermissionDeniedExceptionpublic void deleteSchedule(String requestedLearningPlanId, String scheduleId) throws PermissionDeniedException
deleteSchedule in interface ScheduleBuildStrategyscheduleId - The ID of the schedule to delete.PermissionDeniedExceptionpublic ActivityOption getActivityOption(String termId, String courseId, String regCode)
getActivityOption in interface ScheduleBuildStrategytermId - The term ID.courseId - The course ID.regCode - The registration code.Copyright © 2004–2014 The Kuali Foundation. All rights reserved.