Class PrefillData


  • public class PrefillData
    extends java.lang.Object
    The PrefillData captures the set of parameters returned by the FormDataProviderRegistry. The following options are supported currently contentType : content type of the data. inputStream : input stream of the service.
    • Constructor Detail

      • PrefillData

        public PrefillData()
      • PrefillData

        public PrefillData​(java.io.InputStream inputStream,
                           ContentType contentType)
      • PrefillData

        public PrefillData​(java.io.InputStream inputStream,
                           ContentType contentType,
                           java.util.Map<java.lang.String,​java.lang.String> fileAttachmentMap,
                           java.util.Map<java.lang.String,​java.lang.String> customContext)
        Deprecated.
        Prefill data of the form
        Parameters:
        inputStream - input stream representing form data
        contentType - content type ContentType of the prefill data
        fileAttachmentMap - map containing file attachment som expression and its value
        customContext - any custom context required during form prefill
      • PrefillData

        public PrefillData​(java.io.InputStream inputStream,
                           ContentType contentType,
                           java.util.List<FileAttachmentWrapper> fileAttachmentWrappers,
                           java.util.Map<java.lang.String,​java.lang.String> metaData)
        Prefill data of the form
        Parameters:
        inputStream - input stream representing form data
        contentType - content type ContentType of the prefill data
        fileAttachmentWrappers - reference to the file attachment wrapper object FileAttachmentWrapper
        metaData - any custom metadata required during form prefill
    • Method Detail

      • getContentType

        public ContentType getContentType()
        Returns the content type
        Returns:
        content type
      • getInputStream

        public java.io.InputStream getInputStream()
        Returns the input stream
        Returns:
        input stream
      • getFileAttachmentMap

        public java.util.Map<java.lang.String,​java.lang.String> getFileAttachmentMap()
        Deprecated.
        Returns the file attachment map. This map contains key as som expression (which uniquely identifies each form object) and value as file name
        Returns:
      • getCustomContext

        public java.util.Map<java.lang.String,​java.lang.String> getCustomContext()
        Returns metadata required during form prefill
        Returns:
        {String} meta data