Search in sources :

Example 6 with FilePersister

use of org.olat.ims.qti.process.FilePersister in project openolat by klemens.

the class OLATUpgrade_11_0_0 method iqTestPersisterExists.

private boolean iqTestPersisterExists(Identity assessedIdentity, IQTESTCourseNode cNode, ICourse course) {
    Long courseResourceableId = course.getResourceableId();
    String resourcePath = courseResourceableId + File.separator + cNode.getIdent();
    FilePersister qtiPersister = new FilePersister(assessedIdentity, resourcePath);
    return qtiPersister.exists();
}
Also used : FilePersister(org.olat.ims.qti.process.FilePersister)

Aggregations

FilePersister (org.olat.ims.qti.process.FilePersister)6 TransientIdentity (org.olat.admin.user.imp.TransientIdentity)2 Identity (org.olat.core.id.Identity)2 AssessmentEntryImpl (org.olat.modules.assessment.model.AssessmentEntryImpl)2