public class LearningCommunityReservation extends GroupReservation
GroupReservation
and CourseReservation. Space is reserved for students of a group but only when
they enroll into the offering through the given course.
Reservation.ReservationContext| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEFAULT_ALLOW_OVERLAP
Overlaps are not allowed for Learning Community reservations.
|
static boolean |
DEFAULT_CAN_ASSIGN_OVER_LIMIT
Learning Community reservations cannot be assigned over the limit.
|
static boolean |
DEFAULT_MUST_BE_USED
Learning Community reservation must be used (unless it is expired)
|
static int |
DEFAULT_PRIORITY
Learning Community reservations are just a below student group reservations.
|
sMaxSize| Constructor and Description |
|---|
LearningCommunityReservation(long id,
double limit,
Course course,
Collection<Long> studentIds)
Constructor
|
LearningCommunityReservation(long id,
double limit,
Course course,
Long... studentIds)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
Course |
getCourse()
Course offering
|
double |
getReservationLimit()
Reservation limit (-1 for unlimited)
|
boolean |
isApplicable(Student student)
Check the student group and the course
|
setReservationLimitgetStudentIdsaddConfig, addSection, addSection, areRestrictionsInclusive, canAssignOverLimit, canBatchAssignOverLimit, canBreakLinkedSections, canEnroll, compareTo, compareTo, createAssignmentContext, getConfigs, getEnrollments, getId, getLimit, getLimit, getLimitCap, getLimitCap, getModel, getOffering, getPriority, getReservedAvailableSpace, getReservedAvailableSpace, getRestrictivity, getSections, getSections, inheritAssignmentContext, isAllowDisabled, isAllowOverlap, isExpired, isIncluded, mustBeUsed, mustBeUsedIgnoreExpiration, neverIncluded, setAllowDisabled, setAllowOverlap, setBreakLinkedSections, setCanAssignOverLimit, setExpired, setMustBeUsed, setNeverIncluded, setPrioritygetAssignmentContextReference, getContext, getContext, setAssignmentContextReferencepublic static final int DEFAULT_PRIORITY
public static final boolean DEFAULT_MUST_BE_USED
public static final boolean DEFAULT_CAN_ASSIGN_OVER_LIMIT
public static final boolean DEFAULT_ALLOW_OVERLAP
public LearningCommunityReservation(long id, double limit, Course course, Long... studentIds)
id - unique idlimit - reservation limit (-1 for unlimited)course - course offering for which the reservation isstudentIds - one or more studentspublic LearningCommunityReservation(long id, double limit, Course course, Collection<Long> studentIds)
id - unique idlimit - reservation limit (-1 for unlimited)course - course offering for which the reservation isstudentIds - one or more studentspublic double getReservationLimit()
getReservationLimit in class GroupReservationpublic boolean isApplicable(Student student)
isApplicable in class IndividualReservationstudent - a student