[jboss-svn-commits] JBL Code SVN: r26821 - labs/jbossrules/trunk/drools-repository/src/main/java/org/drools/repository.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Wed Jun 3 18:38:32 EDT 2009


Author: mrhoden-famc
Date: 2009-06-03 18:38:32 -0400 (Wed, 03 Jun 2009)
New Revision: 26821

Modified:
   labs/jbossrules/trunk/drools-repository/src/main/java/org/drools/repository/AssetItem.java
Log:
jpa hooks for guvnor

Modified: labs/jbossrules/trunk/drools-repository/src/main/java/org/drools/repository/AssetItem.java
===================================================================
--- labs/jbossrules/trunk/drools-repository/src/main/java/org/drools/repository/AssetItem.java	2009-06-03 21:54:30 UTC (rev 26820)
+++ labs/jbossrules/trunk/drools-repository/src/main/java/org/drools/repository/AssetItem.java	2009-06-03 22:38:32 UTC (rev 26821)
@@ -82,9 +82,18 @@
      * If this is a binary asset, this will return null (use getBinaryContent instead).
      */
     public String getContent() throws RulesRepositoryException {
+    	return getContent(false);
+    }
+    /**
+     * Only for use in the StorageEventManager, for passing the fromRepo parameter
+     * 
+     * returns the string contents of the rule node.
+     * If this is a binary asset, this will return null (use getBinaryContent instead).
+     */
+    public String getContent(Boolean fromRepo) throws RulesRepositoryException {
         try {
 
-            if (StorageEventManager.hasLoadEvent()) {
+            if (StorageEventManager.hasLoadEvent() && !fromRepo) {
                 return IOUtils.toString(StorageEventManager.getLoadEvent().loadContent(this));
             }
 




More information about the jboss-svn-commits mailing list