public class ReservationOverride extends IndividualReservation
IndividualReservation
for a particular student (or students) that allows for defining whether
it must be used, whether time conflicts are allowed, and whether it
is allowed to assign the student over the limit. This class is intended to be used
to model student overrides.
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 |
---|
ReservationOverride(long id,
Offering offering,
Collection<Long> studentIds)
Constructor
|
ReservationOverride(long id,
Offering offering,
Long... studentIds)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
mustBeUsed()
If true, student must use the reservation (if applicable).
|
getReservationLimit, getStudentIds, isApplicable
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, setPriority
getAssignmentContextReference, getContext, getContext, setAssignmentContextReference
public 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 ReservationOverride(long id, Offering offering, Long... studentIds)
id
- unique idoffering
- offering for which the reservation isstudentIds
- one or more studentspublic ReservationOverride(long id, Offering offering, Collection<Long> studentIds)
id
- unique idoffering
- offering for which the reservation isstudentIds
- one or more studentspublic boolean mustBeUsed()
Reservation
mustBeUsed
in class Reservation