Adapt to changes in Argeo Commons
[gpl/argeo-suite.git] / org.argeo.support.odk / src / org / argeo / support / odk / servlet / OdkSubmissionServlet.java
index 70a80c0cdb7e67732f5fa37ea17364bc1c761783..4e56367a791e88c29f495d776d0f5bda6349b040 100644 (file)
@@ -23,8 +23,8 @@ import javax.servlet.http.Part;
 
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
-import org.argeo.api.NodeUtils;
 import org.argeo.cms.auth.CmsSession;
+import org.argeo.cms.jcr.CmsJcrUtils;
 import org.argeo.cms.servlet.ServletAuthUtils;
 import org.argeo.jcr.Jcr;
 import org.argeo.jcr.JcrUtils;
@@ -65,7 +65,7 @@ public class OdkSubmissionServlet extends HttpServlet {
                        Session adminSession = null;
                        try {
                                // TODO centralise at a deeper level
-                               adminSession = NodeUtils.openDataAdminSession(repository, null);
+                               adminSession = CmsJcrUtils.openDataAdminSession(repository, null);
                                SuiteUtils.getOrCreateCmsSessionNode(adminSession, cmsSession);
                        } finally {
                                Jcr.logout(adminSession);