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 ScheduleBuildStrategy
public List<CourseOption> getCourseOptions(List<String> courseIds, String termId)
getCourseOptions
in interface ScheduleBuildStrategy
courseIDs
- 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 ScheduleBuildStrategy
learningPlanId
- The learning plan ID.termId
- The term to get options for.public LearningPlan getLearningPlan(String requestedLearningPlanId) throws PermissionDeniedException
getLearningPlan
in interface ScheduleBuildStrategy
requestedLearningPlanId
- 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 ScheduleBuildStrategy
requestedLearningPlanId
- See getLearningPlan(String)
.PermissionDeniedException
public void createReservedTime(String requestedLearningPlanId, ReservedTime reservedTime) throws PermissionDeniedException
createReservedTime
in interface ScheduleBuildStrategy
reservedTime
- The reserved time to add.PermissionDeniedException
public void updateReservedTime(String requestedLearningPlanId, ReservedTime reservedTime) throws PermissionDeniedException
updateReservedTime
in interface ScheduleBuildStrategy
reservedTime
- The reserved time to add.PermissionDeniedException
public void deleteReservedTime(String requestedLearningPlanId, String reservedTimeId) throws PermissionDeniedException
deleteReservedTime
in interface ScheduleBuildStrategy
reservedTimeId
- The ID of the reserved time to delete.PermissionDeniedException
public List<PossibleScheduleOption> getSchedules(String requestedLearningPlanId) throws PermissionDeniedException
getSchedules
in interface ScheduleBuildStrategy
requestedLearningPlanId
- See getLearningPlan(String)
.PermissionDeniedException
public PossibleScheduleOption createSchedule(String requestedLearningPlanId, PossibleScheduleOption schedule) throws PermissionDeniedException
createSchedule
in interface ScheduleBuildStrategy
reservedTime
- The reserved time to add.PermissionDeniedException
public void updateSchedule(String requestedLearningPlanId, PossibleScheduleOption schedule) throws PermissionDeniedException
updateSchedule
in interface ScheduleBuildStrategy
schedule
- The schedule to add.PermissionDeniedException
public void deleteSchedule(String requestedLearningPlanId, String scheduleId) throws PermissionDeniedException
deleteSchedule
in interface ScheduleBuildStrategy
scheduleId
- The ID of the schedule to delete.PermissionDeniedException
public ActivityOption getActivityOption(String termId, String courseId, String regCode)
getActivityOption
in interface ScheduleBuildStrategy
termId
- The term ID.courseId
- The course ID.regCode
- The registration code.Copyright © 2004–2014 The Kuali Foundation. All rights reserved.