public interface SubmitMetadataService
Modifier and Type | Method and Description |
---|---|
String |
addComment(String submitID,
String commentContent,
String owner) |
boolean |
deleteMetadata(String submitID) |
boolean |
deleteProperty(String submitID,
String propertyName) |
org.apache.sling.commons.json.JSONArray |
getAllComments(String submitID) |
org.apache.sling.commons.json.JSONArray |
getFormsForSubmissionReview() |
String[] |
getProperty(String submitID,
String propertyName) |
org.apache.sling.commons.json.JSONArray |
getSubmissions(String cutPoints) |
org.apache.sling.commons.json.JSONObject |
getSubmissionsOfAllUsers(String formPath,
String cutPoints,
Map<String,String> searchOptions) |
org.apache.sling.commons.json.JSONObject |
submitMetadata(Map<String,Object> submittedMetaPropMap) |
org.apache.sling.commons.json.JSONObject |
submitMetadataAsynchronously(Map<String,Object> submittedMetaPropMap)
Saves the metadata asynchronously with owner info being passed in the map itself
|
org.apache.sling.commons.json.JSONObject submitMetadata(Map<String,Object> submittedMetaPropMap) throws FormsPortalException
submittedMetaPropMap:
- consists of all the metadata information regarding this form submission instanceFormsPortalException
org.apache.sling.commons.json.JSONObject submitMetadataAsynchronously(Map<String,Object> submittedMetaPropMap) throws FormsPortalException
submittedMetaPropMap
- consists of all the metadata information regarding this form submission instanceFormsPortalException
boolean deleteMetadata(String submitID) throws FormsPortalException
submitID:
- metadata identifier associated with this submissionFormsPortalException
org.apache.sling.commons.json.JSONArray getSubmissions(String cutPoints) throws FormsPortalException
cutPoints:
- comma separated string of cutPoints that tells about what set of properties of a submission is expected in the responseFormsPortalException
String[] getProperty(String submitID, String propertyName) throws FormsPortalException
submitID:
- identifier associated with this submissionpropertyName:
- name of the metadata property queried to getFormsPortalException
boolean deleteProperty(String submitID, String propertyName) throws FormsPortalException
submitID:
- identifier associated with this submissionpropertyName:
- name of the metadata property queried for deletionFormsPortalException
org.apache.sling.commons.json.JSONObject getSubmissionsOfAllUsers(String formPath, String cutPoints, Map<String,String> searchOptions) throws FormsPortalException
formPath:
- Path of the form, whose submissions you want to get listed. Path is the unique identifier of a formcutPoints:
- What set of properties you'd want to get listed of submissionssearchOptions:
- This would contain 4 keys basically.
1. limit: Page size i.e. total number of results a page can show
2. offset: Start index in total results set
3. orderby: Sorting submissions list based on this property
4. sort: Ascending or descending orderFormsPortalException
String addComment(String submitID, String commentContent, String owner) throws FormsPortalException
submitID:
- Identification number of this submission instance (basically metadata id of this submission)commentContent:
- content of the commentowner:
- Principal Name of the person who made this comment. If owner information is null, please get this information from current session objectFormsPortalException
org.apache.sling.commons.json.JSONArray getFormsForSubmissionReview() throws FormsPortalException
FormsPortalException
org.apache.sling.commons.json.JSONArray getAllComments(String submitID) throws FormsPortalException
submitID:
- metadata ID of submission whose review comments are requestedFormsPortalException
Copyright © 1982–2023 Adobe Systems Incorporated. All rights reserved.