Package com.adobe.fd.fp.api.service
Interface SubmitService
-
@ProviderType public interface SubmitServiceInterface exposing the Submission Model SPI's in Forms Portal
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleandeleteSubmission(java.lang.String submissionId)java.util.List<SubmitModel>getAllSubmission(Query query)Method returns the list of all submission models presentSubmitModelgetSubmission(java.lang.String submissionId)Method returns the submit model against the provided submissionIdSubmitModelgetSubmission(java.lang.String submissionId, Query query)Method returns the submit model against the provided submissionId and queryjava.lang.StringsaveSubmission(SubmitModel submissionModel)Saves theSubmitModelinto the storage
-
-
-
Method Detail
-
saveSubmission
java.lang.String saveSubmission(SubmitModel submissionModel) throws FormsPortalException
Saves theSubmitModelinto the storage- Parameters:
submissionModel-SubmitModelto be persisted- Returns:
- uniqueID generated corresponding to the model. Can be re-used while fetching the same
- Throws:
FormsPortalException
-
getSubmission
SubmitModel getSubmission(java.lang.String submissionId) throws FormsPortalException
Method returns the submit model against the provided submissionId- Parameters:
submissionId- submissionId against which submit model needs to be fetched- Returns:
SubmitModelas per the provided submissionId- Throws:
FormsPortalException
-
getSubmission
SubmitModel getSubmission(java.lang.String submissionId, Query query) throws FormsPortalException
Method returns the submit model against the provided submissionId and query- Parameters:
submissionId- submissionId against which submit model needs to be fetchedquery-Queryto define cut points, filtering etc- Returns:
SubmitModelas per the provided submissionId and query filter- Throws:
FormsPortalException
-
getAllSubmission
java.util.List<SubmitModel> getAllSubmission(Query query) throws FormsPortalException
Method returns the list of all submission models present- Parameters:
query-Queryto define cut points, filtering etc- Returns:
- list of
SubmitModel - Throws:
FormsPortalException
-
deleteSubmission
boolean deleteSubmission(java.lang.String submissionId) throws FormsPortalException- Parameters:
submissionId- submissionId of the submit model that needs to be deleted- Returns:
- True if update was successful, else false
- Throws:
FormsPortalException
-
-