Author: sascharodekamp
Date: Mon Nov 28 10:42:46 2011
New Revision: 1207058
URL:
http://svn.apache.org/viewvc?rev=1207058&view=revLog:
change to an interface in the API Classes for the JCR Accessor
Modified:
ofbiz/branches/jackrabbit20100709/framework/jcr/src/org/ofbiz/jcr/access/JcrRepositoryAccessor.java
ofbiz/branches/jackrabbit20100709/framework/jcr/src/org/ofbiz/jcr/api/AbstractJcrHelper.java
Modified: ofbiz/branches/jackrabbit20100709/framework/jcr/src/org/ofbiz/jcr/access/JcrRepositoryAccessor.java
URL:
http://svn.apache.org/viewvc/ofbiz/branches/jackrabbit20100709/framework/jcr/src/org/ofbiz/jcr/access/JcrRepositoryAccessor.java?rev=1207058&r1=1207057&r2=1207058&view=diff==============================================================================
--- ofbiz/branches/jackrabbit20100709/framework/jcr/src/org/ofbiz/jcr/access/JcrRepositoryAccessor.java (original)
+++ ofbiz/branches/jackrabbit20100709/framework/jcr/src/org/ofbiz/jcr/access/JcrRepositoryAccessor.java Mon Nov 28 10:42:46 2011
@@ -4,6 +4,7 @@ import java.util.List;
import javax.jcr.ItemExistsException;
import javax.jcr.RepositoryException;
+import javax.jcr.Session;
import javax.jcr.query.QueryResult;
import net.sf.json.JSONArray;
@@ -121,4 +122,11 @@ public interface JcrRepositoryAccessor {
* @return
*/
public QueryResult queryForRepositoryData(String query) throws RepositoryException;
+
+ /**
+ * Returns a JCR Session object
+ *
+ * @return
+ */
+ public Session getSession();
}
Modified: ofbiz/branches/jackrabbit20100709/framework/jcr/src/org/ofbiz/jcr/api/AbstractJcrHelper.java
URL:
http://svn.apache.org/viewvc/ofbiz/branches/jackrabbit20100709/framework/jcr/src/org/ofbiz/jcr/api/AbstractJcrHelper.java?rev=1207058&r1=1207057&r2=1207058&view=diff==============================================================================
--- ofbiz/branches/jackrabbit20100709/framework/jcr/src/org/ofbiz/jcr/api/AbstractJcrHelper.java (original)
+++ ofbiz/branches/jackrabbit20100709/framework/jcr/src/org/ofbiz/jcr/api/AbstractJcrHelper.java Mon Nov 28 10:42:46 2011
@@ -1,10 +1,10 @@
package org.ofbiz.jcr.api;
-import org.ofbiz.jcr.access.jackrabbit.JackrabbitRepositoryAccessor;
+import org.ofbiz.jcr.access.JcrRepositoryAccessor;
public abstract class AbstractJcrHelper {
- protected static JackrabbitRepositoryAccessor access = null;
+ protected static JcrRepositoryAccessor access = null;
/**
* This will close the connection to the content repository and make sure