Class QuestionHelper


  • public class QuestionHelper
    extends Object
    Author:
    ehugonnet
    • Constructor Detail

      • QuestionHelper

        public QuestionHelper()
    • Method Detail

      • isCorrectFile

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

        protected static void addImageToAnswer​(org.silverpeas.core.questioncontainer.answer.model.Answer answer,
                                               org.apache.commons.fileupload.FileItem item,
                                               QuestionForm form,
                                               String componentId,
                                               String subdir)
                                        throws IOException
        Throws:
        IOException