@Override public List<AssessmentMode> getAssessmentModeFor(IdentityRef identity) { List<AssessmentMode> currentModes = getAssessmentModes(new Date()); List<AssessmentMode> myModes = null; if (currentModes.size() > 0) { // check permissions, groups, areas, course myModes = assessmentModeDao.loadAssessmentModeFor(identity, currentModes); } return myModes == null ? Collections.<AssessmentMode>emptyList() : myModes; }
@Override public boolean isNodeInUse(RepositoryEntryRef entry, CourseNode node) { return assessmentModeDao.isNodeInUse(entry, node); }
@Override public boolean isInAssessmentMode(RepositoryEntryRef entry, Date date) { return assessmentModeDao.isInAssessmentMode(entry, date); }
@Override public List<AssessmentMode> getAssessmentModes(Date now) { return assessmentModeDao.getAssessmentModes(now); }
@Override public List<AssessmentMode> getAssessmentModeFor(RepositoryEntryRef entry) { return assessmentModeDao.getAssessmentModeFor(entry); }
@Override public List<AssessmentMode> findAssessmentMode(SearchAssessmentModeParams params) { return assessmentModeDao.findAssessmentMode(params); }
@Override public AssessmentMode getAssessmentModeById(Long key) { return assessmentModeDao.getAssessmentModeById(key); }
@Override public void delete(AssessmentMode assessmentMode) { assessmentModeDao.delete(assessmentMode); }