package org.argeo.app.xforms;
-import javax.jcr.Node;
-import javax.jcr.RepositoryException;
+import org.argeo.api.acr.Content;
/** Called when a user has received a new form submission. */
public interface FormSubmissionListener {
- /** Called after a form submission has been stored in the user area. */
- void formSubmissionReceived(Node node) throws RepositoryException;
+ final static String XML_SUBMISSION_FILE = "xml_submission_file";
+
+ /**
+ * Called after a form submission has been stored in the user area. The
+ * submission will be deleted if any exception is thrown.
+ */
+ void formSubmissionReceived(Content content, boolean isIncomplete);
}