X-Git-Url: https://git.argeo.org/?a=blobdiff_plain;ds=sidebyside;f=org.argeo.app.core%2Fsrc%2Forg%2Fargeo%2Fapp%2Fxforms%2FFormSubmissionListener.java;h=feea106b01b2bc4e29c1f600489868550df1fbe1;hb=ee238f9b4c51d5a7e372441d680c75931694569f;hp=71228926d0bb075c70f2aa079f7435a628cce8f8;hpb=6e56ffa34cb02ab04d028423aea342e3dfed4358;p=gpl%2Fargeo-suite.git diff --git a/org.argeo.app.core/src/org/argeo/app/xforms/FormSubmissionListener.java b/org.argeo.app.core/src/org/argeo/app/xforms/FormSubmissionListener.java index 7122892..feea106 100644 --- a/org.argeo.app.core/src/org/argeo/app/xforms/FormSubmissionListener.java +++ b/org.argeo.app.core/src/org/argeo/app/xforms/FormSubmissionListener.java @@ -1,10 +1,14 @@ 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); }