Package org.openurp.edu.clazz.service
Interface CourseLimitService
- All Known Implementing Classes:
CourseLimitServiceImpl
public interface CourseLimitService
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()获得构建器builder(Enrollment teachclass) 获得默认条件组的构建器extractAttendDeparts(Enrollment teachclass) 提取教学班中的上课院系extractDirections(Enrollment teachclass) 提取教学班中的方向extractEducations(Enrollment teachclass) 提交培养层次extractGender(ClazzRestriction group) Deprecated.extractGender(Enrollment teachclass) Deprecated.extractGrade(ClazzRestriction group) extractGrade(Enrollment teachclass) 提交教学班中的年级extractLonelyTakers(Enrollment teachclass) 获得教学任务中不属于任务中任何一个行政班的选课记录extractMajors(ClazzRestriction group) extractMajors(Enrollment teachclass) 提取教学班中的专业extractPossibleCourseTakers(Clazz clazz) 如果教学任务已经有人选了,则直接返回已经选课的人
如果没有人选,那么返回所有行政班中的人extractSquades(ClazzRestriction group) extractSquades(Enrollment teachclass) 提取教学任务中的行政班extractStdTypes(ClazzRestriction group) extractStdTypes(Enrollment teachclass) 提取教学班中的学生类别booleanisAutoName(Clazz clazz) 判断教学班名称是否自动命名voidlimitEnrollment(boolean operator, Enrollment teachclass, String... grades) <T extends org.beangle.commons.entity.Entity<?>>
voidlimitEnrollment(boolean operator, Enrollment teachclass, T... entities) voidmerge(Long mergeType, Enrollment target, Enrollment source) Deprecated.voidmergeAll(Enrollment target, Enrollment source) Deprecated.org.beangle.commons.lang.tuple.Pair<Boolean, List<Department>> Map<ClazzRestriction, org.beangle.commons.lang.tuple.Pair<Boolean, List<Department>>> xtractAttendDepartLimit(Enrollment teachclass) Map<ClazzRestriction, org.beangle.commons.lang.tuple.Pair<Boolean, List<Direction>>> xtractDirectionLimit(Enrollment teachclass) org.beangle.commons.lang.tuple.Pair<Boolean, List<EducationLevel>> Map<ClazzRestriction, org.beangle.commons.lang.tuple.Pair<Boolean, List<EducationLevel>>> xtractEducationLimit(Enrollment teachclass) xtractGradeLimit(ClazzRestriction group) Map<ClazzRestriction, org.beangle.commons.lang.tuple.Pair<Boolean, List<String>>> xtractGradeLimit(Enrollment teachclass) xtractLimitGroup(ClazzRestriction group) xtractMajorLimit(ClazzRestriction group) Map<ClazzRestriction, org.beangle.commons.lang.tuple.Pair<Boolean, List<Major>>> xtractMajorLimit(Enrollment teachclass) xtractSquadLimit(ClazzRestriction group) Map<ClazzRestriction, org.beangle.commons.lang.tuple.Pair<Boolean, List<Squad>>> xtractSquadLimit(Enrollment teachclass) Map<ClazzRestriction, org.beangle.commons.lang.tuple.Pair<Boolean, List<StdType>>> xtractStdTypeLimit(Enrollment teachclass)
-
Method Details
-
mergeAll
Deprecated.source中的restrictions统统合并到target中- Parameters:
target-source-
-
merge
Deprecated.source中的某个restriction合并到target中- Parameters:
mergeType-target-source-
-
xtractEducationLimit
Map<ClazzRestriction,org.beangle.commons.lang.tuple.Pair<Boolean, xtractEducationLimitList<EducationLevel>>> (Enrollment teachclass) -
xtractEducationLimit
org.beangle.commons.lang.tuple.Pair<Boolean,List<EducationLevel>> xtractEducationLimit(ClazzRestriction group) -
xtractSquadLimit
Map<ClazzRestriction,org.beangle.commons.lang.tuple.Pair<Boolean, xtractSquadLimitList<Squad>>> (Enrollment teachclass) -
xtractSquadLimit
-
xtractGradeLimit
Map<ClazzRestriction,org.beangle.commons.lang.tuple.Pair<Boolean, xtractGradeLimitList<String>>> (Enrollment teachclass) -
xtractGradeLimit
-
xtractStdTypeLimit
Map<ClazzRestriction,org.beangle.commons.lang.tuple.Pair<Boolean, xtractStdTypeLimitList<StdType>>> (Enrollment teachclass) -
xtractStdTypeLimit
org.beangle.commons.lang.tuple.Pair<Boolean,List<StdType>> xtractStdTypeLimit(ClazzRestriction group) -
xtractAttendDepartLimit
Map<ClazzRestriction,org.beangle.commons.lang.tuple.Pair<Boolean, xtractAttendDepartLimitList<Department>>> (Enrollment teachclass) -
xtractAttendDepartLimit
org.beangle.commons.lang.tuple.Pair<Boolean,List<Department>> xtractAttendDepartLimit(ClazzRestriction group) -
xtractMajorLimit
Map<ClazzRestriction,org.beangle.commons.lang.tuple.Pair<Boolean, xtractMajorLimitList<Major>>> (Enrollment teachclass) -
xtractMajorLimit
-
xtractDirectionLimit
Map<ClazzRestriction,org.beangle.commons.lang.tuple.Pair<Boolean, xtractDirectionLimitList<Direction>>> (Enrollment teachclass) -
xtractDirectionLimit
org.beangle.commons.lang.tuple.Pair<Boolean,List<Direction>> xtractDirectionLimit(ClazzRestriction group) -
limitEnrollment
-
limitEnrollment
<T extends org.beangle.commons.entity.Entity<?>> void limitEnrollment(boolean operator, Enrollment teachclass, T... entities) -
extractEducations
提交培养层次- Parameters:
teachclass-- Returns:
-
extractEducations
-
extractSquades
提取教学任务中的行政班- Parameters:
teachclass-- Returns:
-
extractSquades
-
extractGrade
提交教学班中的年级- Parameters:
teachclass-- Returns:
-
extractGrade
-
extractStdTypes
提取教学班中的学生类别- Parameters:
teachclass-- Returns:
-
extractStdTypes
-
extractMajors
提取教学班中的专业- Parameters:
teachclass-- Returns:
-
extractMajors
-
extractDirections
提取教学班中的方向- Parameters:
teachclass-- Returns:
-
extractDirections
-
extractAttendDeparts
提取教学班中的上课院系- Parameters:
teachclass-- Returns:
-
extractAttendDeparts
-
extractGender
Deprecated.提取教学班中的性别- Parameters:
teachclass-- Returns:
-
extractGender
Deprecated. -
builder
RestrictionBuilder builder()获得构建器- Returns:
-
builder
获得默认条件组的构建器- Returns:
-
extractLonelyTakers
获得教学任务中不属于任务中任何一个行政班的选课记录- Parameters:
teachclass-- Returns:
-
extractPossibleCourseTakers
如果教学任务已经有人选了,则直接返回已经选课的人
如果没有人选,那么返回所有行政班中的人- Parameters:
teachclass-- Returns:
-
isAutoName
判断教学班名称是否自动命名- Parameters:
clazz-- Returns:
-
xtractLimitGroup
-