Search in sources :

Example 1 with EvaluationFormsModule

use of org.olat.modules.forms.EvaluationFormsModule in project OpenOLAT by OpenOLAT.

the class FileUploadHandler method createPageElement.

@Override
public PageElement createPageElement(Locale locale) {
    EvaluationFormsModule evaluationFormModule = CoreSpringFactory.getImpl(EvaluationFormsModule.class);
    FileUpload part = new FileUpload();
    part.setId(UUID.randomUUID().toString());
    part.setMaxUploadSizeKB(evaluationFormModule.getMaxFileUploadLimitKB());
    return part;
}
Also used : EvaluationFormsModule(org.olat.modules.forms.EvaluationFormsModule) FileUpload(org.olat.modules.forms.model.xml.FileUpload)

Example 2 with EvaluationFormsModule

use of org.olat.modules.forms.EvaluationFormsModule in project openolat by klemens.

the class FileUploadHandler method createPageElement.

@Override
public PageElement createPageElement(Locale locale) {
    EvaluationFormsModule evaluationFormModule = CoreSpringFactory.getImpl(EvaluationFormsModule.class);
    FileUpload part = new FileUpload();
    part.setId(UUID.randomUUID().toString());
    part.setMaxUploadSizeKB(evaluationFormModule.getMaxFileUploadLimitKB());
    return part;
}
Also used : EvaluationFormsModule(org.olat.modules.forms.EvaluationFormsModule) FileUpload(org.olat.modules.forms.model.xml.FileUpload)

Aggregations

EvaluationFormsModule (org.olat.modules.forms.EvaluationFormsModule)2 FileUpload (org.olat.modules.forms.model.xml.FileUpload)2