Class PdfSurveyServices


  • public class PdfSurveyServices
    extends java.lang.Object
    PdfSurveyServices Class
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String module  
      static java.lang.String resource  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.Map<java.lang.String,​java.lang.Object> buildPdfFromSurveyResponse​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> rcontext)  
      static java.util.Map<java.lang.String,​java.lang.Object> buildSurveyFromPdf​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)  
      static java.util.Map<java.lang.String,​java.lang.Object> buildSurveyQuestionsAndAnswers​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      Returns list of maps with "question" -> SurveyQuestion and "response" -> SurveyResponseAnswer
      static java.util.Map<java.lang.String,​java.lang.Object> buildSurveyResponseFromPdf​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)  
      static java.util.Map<java.lang.String,​java.lang.Object> getAcroFieldsFromPdf​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)  
      static java.nio.ByteBuffer getInputByteBuffer​(java.util.Map<java.lang.String,​? extends java.lang.Object> context, Delegator delegator)  
      static java.util.Map<java.lang.String,​java.lang.Object> setAcroFields​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)  
      static java.util.Map<java.lang.String,​java.lang.Object> setAcroFieldsFromSurveyResponse​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • module

        public static final java.lang.String module
    • Constructor Detail

      • PdfSurveyServices

        public PdfSurveyServices()
    • Method Detail

      • buildSurveyFromPdf

        public static java.util.Map<java.lang.String,​java.lang.Object> buildSurveyFromPdf​(DispatchContext dctx,
                                                                                                java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      • buildSurveyResponseFromPdf

        public static java.util.Map<java.lang.String,​java.lang.Object> buildSurveyResponseFromPdf​(DispatchContext dctx,
                                                                                                        java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      • getAcroFieldsFromPdf

        public static java.util.Map<java.lang.String,​java.lang.Object> getAcroFieldsFromPdf​(DispatchContext dctx,
                                                                                                  java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      • setAcroFields

        public static java.util.Map<java.lang.String,​java.lang.Object> setAcroFields​(DispatchContext dctx,
                                                                                           java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      • buildPdfFromSurveyResponse

        public static java.util.Map<java.lang.String,​java.lang.Object> buildPdfFromSurveyResponse​(DispatchContext dctx,
                                                                                                        java.util.Map<java.lang.String,​? extends java.lang.Object> rcontext)
      • buildSurveyQuestionsAndAnswers

        public static java.util.Map<java.lang.String,​java.lang.Object> buildSurveyQuestionsAndAnswers​(DispatchContext dctx,
                                                                                                            java.util.Map<java.lang.String,​? extends java.lang.Object> context)
        Returns list of maps with "question" -> SurveyQuestion and "response" -> SurveyResponseAnswer
      • setAcroFieldsFromSurveyResponse

        public static java.util.Map<java.lang.String,​java.lang.Object> setAcroFieldsFromSurveyResponse​(DispatchContext dctx,
                                                                                                             java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      • getInputByteBuffer

        public static java.nio.ByteBuffer getInputByteBuffer​(java.util.Map<java.lang.String,​? extends java.lang.Object> context,
                                                             Delegator delegator)
                                                      throws GeneralException
        Throws:
        GeneralException