public interface FormsetService
Modifier and Type | Method and Description |
---|---|
String |
getDataXML(org.apache.sling.api.resource.Resource formset,
org.apache.sling.commons.json.JSONObject oFormsetState,
boolean bKeepSubmittedFormNumber)
Returns the data xml for the formset.
|
ArrayList<com.adobe.aemds.formset.common.SubmittedForm> |
getFormsetSubmissionInfo(org.apache.sling.api.resource.Resource formset,
String xml)
Takes the Data XML after the formset submission and breaks it down for each Form.
|
String |
getPrefillJsonFromUrl(org.apache.sling.api.resource.Resource formset,
int formNumber,
String dataRef)
Returns the PrefillJSON of a particular form (represented by formNumber) in a formset (represented by its
formset Resource).
|
String |
getTemplateJson(String formUid,
com.adobe.aemds.formset.common.FormsetResource formsetResource)
Returns the Stringified TemplateJSON of a particular form (represented by form Uid) in a formset (represented by its
Formset Resource)
|
String |
listForms(org.apache.sling.api.resource.Resource formset,
String dataRef)
Lists all the Forms that are present inside a Formset.
|
String getTemplateJson(String formUid, com.adobe.aemds.formset.common.FormsetResource formsetResource) throws FormsetException, DoRTemplateParsingException
formUid
- formsetResource
- FormsetException
DoRTemplateParsingException
String listForms(org.apache.sling.api.resource.Resource formset, String dataRef) throws FormsetException
formset
- FormsetException
String getPrefillJsonFromUrl(org.apache.sling.api.resource.Resource formset, int formNumber, String dataRef) throws FormsetException
formset
- formNumber
- dataRef
- URL where the xml data is presentFormsetException
String getDataXML(org.apache.sling.api.resource.Resource formset, org.apache.sling.commons.json.JSONObject oFormsetState, boolean bKeepSubmittedFormNumber) throws FormsetException
formset
- oFormsetState
- bKeepSubmittedFormNumber
- FormsetException
ArrayList<com.adobe.aemds.formset.common.SubmittedForm> getFormsetSubmissionInfo(org.apache.sling.api.resource.Resource formset, String xml) throws FormsetException
formset
- CRX resource pointing to the Formsetxml
- Submitted Data XMLFormsetException
SubmittedForm
Copyright © 1982–2023 Adobe Systems Incorporated. All rights reserved.