IGroupEnrolmentStrategyFactory enrolmentGroupPolicyStrategyFactory = GroupEnrolmentStrategyFactory.getInstance();
IGroupEnrolmentStrategy strategy =
enrolmentGroupPolicyStrategyFactory.getGroupEnrolmentStrategyInstance(grouping);
if (strategy.checkEnrolmentDate(grouping, Calendar.getInstance())
&& strategy.checkStudentInGrouping(grouping, userName)) {
InfoGrouping infoGroupProperties = InfoGroupingWithExportGrouping.newInfoFromDomain(grouping);
infoGroupPropertiesList.add(infoGroupProperties);
}
}
infoSiteProjects.setInfoGroupPropertiesList(infoGroupPropertiesList);
}