com.stratelia.webactiv.quizz
Class QuestionHelper

java.lang.Object
  extended by com.stratelia.webactiv.quizz.QuestionHelper

public class QuestionHelper
extends Object

Author:
ehugonnet

Constructor Summary
QuestionHelper()
           
 
Method Summary
protected static void addImageToAnswer(com.stratelia.webactiv.util.answer.model.Answer answer, org.apache.commons.fileupload.FileItem item, QuestionForm form, String componentId, String subdir)
           
static List<com.stratelia.webactiv.util.answer.model.Answer> extractAnswer(List<org.apache.commons.fileupload.FileItem> items, QuestionForm form, String componentId, String subdir)
           
static boolean isCorrectFile(org.apache.commons.fileupload.FileItem filePart)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuestionHelper

public QuestionHelper()
Method Detail

isCorrectFile

public static boolean isCorrectFile(org.apache.commons.fileupload.FileItem filePart)

extractAnswer

public static List<com.stratelia.webactiv.util.answer.model.Answer> extractAnswer(List<org.apache.commons.fileupload.FileItem> items,
                                                                                  QuestionForm form,
                                                                                  String componentId,
                                                                                  String subdir)
                                                                           throws IOException
Throws:
IOException

addImageToAnswer

protected static void addImageToAnswer(com.stratelia.webactiv.util.answer.model.Answer answer,
                                       org.apache.commons.fileupload.FileItem item,
                                       QuestionForm form,
                                       String componentId,
                                       String subdir)
                                throws IOException
Throws:
IOException


Copyright © 2016 Silverpeas. All Rights Reserved.