public class UniversalOverride extends Reservation
| Modifier and Type | Class and Description |
|---|---|
static class |
UniversalOverride.StudentMatcher
Student matcher matching the student's area, classification, major, minor, group, accommodation, campus,
advisor or student external id, or status.
|
Reservation.ReservationContext| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEFAULT_ALLOW_OVERLAP
Overlaps are not allowed for group reservation overrides by default.
|
static boolean |
DEFAULT_CAN_ASSIGN_OVER_LIMIT
Reservation override cannot be assigned over the limit by default.
|
static boolean |
DEFAULT_MUST_BE_USED
Reservation override does not need to be used by default
|
static int |
DEFAULT_PRIORITY
Reservation priority (lower than individual and group reservations)
|
sMaxSize| Constructor and Description |
|---|
UniversalOverride(long id,
boolean override,
double limit,
Offering offering,
String filter) |
| Modifier and Type | Method and Description |
|---|---|
String |
getFilter()
Student filter
|
double |
getReservationLimit()
Reservation limit (-1 for unlimited)
|
Query |
getStudentQuery() |
boolean |
isApplicable(Student student)
Check the area, classifications and majors
|
boolean |
isOverride() |
boolean |
mustBeUsed()
If true, student must use the reservation (if applicable).
|
void |
setReservationLimit(double limit)
Set reservation limit (-1 for unlimited)
|
addConfig, 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, 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 UniversalOverride(long id, boolean override, double limit, Offering offering, String filter)
public boolean mustBeUsed()
ReservationmustBeUsed in class Reservationpublic double getReservationLimit()
getReservationLimit in class Reservationpublic void setReservationLimit(double limit)
limit - reservation limit, -1 for unlimitedpublic boolean isOverride()
public boolean isApplicable(Student student)
isApplicable in class Reservationstudent - a studentpublic Query getStudentQuery()