public class IndividualRestriction extends Restriction
Constructor and Description |
---|
IndividualRestriction(long id,
Offering offering,
Collection<Long> studentIds)
Constructor
|
IndividualRestriction(long id,
Offering offering,
Long... studentIds)
Constructor
|
Modifier and Type | Method and Description |
---|---|
Set<Long> |
getStudentIds()
Students in the restriction
|
boolean |
isApplicable(Student student)
Restriction is applicable for all students in the restriction
|
addConfig, addSection, getConfigs, getId, getOffering, getSections, getSections, isIncluded, isIncluded, isIncluded
public IndividualRestriction(long id, Offering offering, Long... studentIds)
id
- restriction unique idoffering
- instructional offering on which the restriction is setstudentIds
- one or more studentspublic IndividualRestriction(long id, Offering offering, Collection<Long> studentIds)
id
- restriction unique idoffering
- instructional offering on which the restriction is setstudentIds
- one or more studentspublic boolean isApplicable(Student student)
isApplicable
in class Restriction
student
- a studentpublic Set<Long> getStudentIds()