Extract JCR in a separate bundle
[gpl/argeo-suite.git] / org.argeo.app.core / src / org / argeo / app / xforms / FormSubmissionListener.java
index 71228926d0bb075c70f2aa079f7435a628cce8f8..6fee2f96fefd53f7a36ca34264dc25a047de33cb 100644 (file)
@@ -1,10 +1,12 @@
 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;
+       /**
+        * 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);
 }