roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agillil...@apache.org
Subject svn commit: r394800 - in /incubator/roller/branches/roller-newbackend: src/org/roller/business/hibernate/ src/org/roller/model/ src/org/roller/presentation/ src/org/roller/presentation/bookmarks/actions/ src/org/roller/presentation/pings/ src/org/rolle...
Date Mon, 17 Apr 2006 22:42:15 GMT
Author: agilliland
Date: Mon Apr 17 15:42:13 2006
New Revision: 394800

URL: http://svn.apache.org/viewcvs?rev=394800&view=rev
Log:
removing Roller.commit().


Modified:
    incubator/roller/branches/roller-newbackend/src/org/roller/business/hibernate/HibernateRollerImpl.java
    incubator/roller/branches/roller-newbackend/src/org/roller/model/Roller.java
    incubator/roller/branches/roller-newbackend/src/org/roller/presentation/RollerContext.java
    incubator/roller/branches/roller-newbackend/src/org/roller/presentation/TurnoverReferersTask.java
    incubator/roller/branches/roller-newbackend/src/org/roller/presentation/bookmarks/actions/BookmarkSaveAction.java
    incubator/roller/branches/roller-newbackend/src/org/roller/presentation/bookmarks/actions/BookmarksAction.java
    incubator/roller/branches/roller-newbackend/src/org/roller/presentation/bookmarks/actions/FolderSaveAction.java
    incubator/roller/branches/roller-newbackend/src/org/roller/presentation/bookmarks/actions/ImportBookmarksFormAction.java
    incubator/roller/branches/roller-newbackend/src/org/roller/presentation/pings/PingQueueTask.java
    incubator/roller/branches/roller-newbackend/src/org/roller/presentation/planet/PlanetConfigAction.java
    incubator/roller/branches/roller-newbackend/src/org/roller/presentation/planet/PlanetGroupsAction.java
    incubator/roller/branches/roller-newbackend/src/org/roller/presentation/planet/PlanetSubscriptionsAction.java
    incubator/roller/branches/roller-newbackend/src/org/roller/presentation/planet/RefreshEntriesTask.java
    incubator/roller/branches/roller-newbackend/src/org/roller/presentation/planet/SyncWebsitesTask.java
    incubator/roller/branches/roller-newbackend/src/org/roller/presentation/servlets/CommentServlet.java
    incubator/roller/branches/roller-newbackend/src/org/roller/presentation/servlets/TrackbackServlet.java
    incubator/roller/branches/roller-newbackend/src/org/roller/presentation/weblog/actions/BasePingTargetsAction.java
    incubator/roller/branches/roller-newbackend/src/org/roller/presentation/weblog/actions/CategoriesAction.java
    incubator/roller/branches/roller-newbackend/src/org/roller/presentation/weblog/actions/CategorySaveAction.java
    incubator/roller/branches/roller-newbackend/src/org/roller/presentation/weblog/actions/CommentManagementAction.java
    incubator/roller/branches/roller-newbackend/src/org/roller/presentation/weblog/actions/PingSetupAction.java
    incubator/roller/branches/roller-newbackend/src/org/roller/presentation/weblog/actions/ReferersAction.java
    incubator/roller/branches/roller-newbackend/src/org/roller/presentation/weblog/actions/ToggleLinkbackDisplayAction.java
    incubator/roller/branches/roller-newbackend/tests/org/roller/presentation/ArchiveParserTest.java

Modified: incubator/roller/branches/roller-newbackend/src/org/roller/business/hibernate/HibernateRollerImpl.java
URL: http://svn.apache.org/viewcvs/incubator/roller/branches/roller-newbackend/src/org/roller/business/hibernate/HibernateRollerImpl.java?rev=394800&r1=394799&r2=394800&view=diff
==============================================================================
--- incubator/roller/branches/roller-newbackend/src/org/roller/business/hibernate/HibernateRollerImpl.java
(original)
+++ incubator/roller/branches/roller-newbackend/src/org/roller/business/hibernate/HibernateRollerImpl.java
Mon Apr 17 15:42:13 2006
@@ -106,11 +106,6 @@
     }
     
     
-    public void commit() throws RollerException {
-        //strategy.commit();
-    }
-    
-    
     /**
      * @see org.roller.model.Roller#getUserManager()
      */

Modified: incubator/roller/branches/roller-newbackend/src/org/roller/model/Roller.java
URL: http://svn.apache.org/viewcvs/incubator/roller/branches/roller-newbackend/src/org/roller/model/Roller.java?rev=394800&r1=394799&r2=394800&view=diff
==============================================================================
--- incubator/roller/branches/roller-newbackend/src/org/roller/model/Roller.java (original)
+++ incubator/roller/branches/roller-newbackend/src/org/roller/model/Roller.java Mon Apr 17
15:42:13 2006
@@ -107,12 +107,6 @@
      * Get PagePluginManager associated with this Roller instance.
      */
     public PagePluginManager getPagePluginManager() throws RollerException;
-
-    
-    /** 
-     * Commit transaction for a thread.
-     */
-    public void commit() throws RollerException;
     
     
     /**

Modified: incubator/roller/branches/roller-newbackend/src/org/roller/presentation/RollerContext.java
URL: http://svn.apache.org/viewcvs/incubator/roller/branches/roller-newbackend/src/org/roller/presentation/RollerContext.java?rev=394800&r1=394799&r2=394800&view=diff
==============================================================================
--- incubator/roller/branches/roller-newbackend/src/org/roller/presentation/RollerContext.java
(original)
+++ incubator/roller/branches/roller-newbackend/src/org/roller/presentation/RollerContext.java
Mon Apr 17 15:42:13 2006
@@ -173,7 +173,6 @@
             setupScheduledTasks(mContext, roller);
             
             roller.flush();
-            roller.commit();
             roller.release();
             
         } catch (Throwable t) {

Modified: incubator/roller/branches/roller-newbackend/src/org/roller/presentation/TurnoverReferersTask.java
URL: http://svn.apache.org/viewcvs/incubator/roller/branches/roller-newbackend/src/org/roller/presentation/TurnoverReferersTask.java?rev=394800&r1=394799&r2=394800&view=diff
==============================================================================
--- incubator/roller/branches/roller-newbackend/src/org/roller/presentation/TurnoverReferersTask.java
(original)
+++ incubator/roller/branches/roller-newbackend/src/org/roller/presentation/TurnoverReferersTask.java
Mon Apr 17 15:42:13 2006
@@ -42,7 +42,6 @@
             Roller roller = RollerFactory.getRoller();
             roller.getRefererManager().clearReferrers();
             roller.flush();
-            roller.commit();
             roller.release();
             mLogger.info("task completed");   
             

Modified: incubator/roller/branches/roller-newbackend/src/org/roller/presentation/bookmarks/actions/BookmarkSaveAction.java
URL: http://svn.apache.org/viewcvs/incubator/roller/branches/roller-newbackend/src/org/roller/presentation/bookmarks/actions/BookmarkSaveAction.java?rev=394800&r1=394799&r2=394800&view=diff
==============================================================================
--- incubator/roller/branches/roller-newbackend/src/org/roller/presentation/bookmarks/actions/BookmarkSaveAction.java
(original)
+++ incubator/roller/branches/roller-newbackend/src/org/roller/presentation/bookmarks/actions/BookmarkSaveAction.java
Mon Apr 17 15:42:13 2006
@@ -62,7 +62,6 @@
             form.copyTo(bd, request.getLocale());
             bmgr.storeBookmark(bd);
             RollerFactory.getRoller().flush();
-            RollerFactory.getRoller().commit();
             
             CacheManager.invalidate(bd);
             

Modified: incubator/roller/branches/roller-newbackend/src/org/roller/presentation/bookmarks/actions/BookmarksAction.java
URL: http://svn.apache.org/viewcvs/incubator/roller/branches/roller-newbackend/src/org/roller/presentation/bookmarks/actions/BookmarksAction.java?rev=394800&r1=394799&r2=394800&view=diff
==============================================================================
--- incubator/roller/branches/roller-newbackend/src/org/roller/presentation/bookmarks/actions/BookmarksAction.java
(original)
+++ incubator/roller/branches/roller-newbackend/src/org/roller/presentation/bookmarks/actions/BookmarksAction.java
Mon Apr 17 15:42:13 2006
@@ -126,7 +126,6 @@
                 }
             }
             RollerFactory.getRoller().flush();
-            roller.commit();
                 
             CacheManager.invalidate(website);
 
@@ -213,7 +212,6 @@
                     }
                 }
                 RollerFactory.getRoller().flush();
-                roller.commit();
 
                 CacheManager.invalidate(website);
                 

Modified: incubator/roller/branches/roller-newbackend/src/org/roller/presentation/bookmarks/actions/FolderSaveAction.java
URL: http://svn.apache.org/viewcvs/incubator/roller/branches/roller-newbackend/src/org/roller/presentation/bookmarks/actions/FolderSaveAction.java?rev=394800&r1=394799&r2=394800&view=diff
==============================================================================
--- incubator/roller/branches/roller-newbackend/src/org/roller/presentation/bookmarks/actions/FolderSaveAction.java
(original)
+++ incubator/roller/branches/roller-newbackend/src/org/roller/presentation/bookmarks/actions/FolderSaveAction.java
Mon Apr 17 15:42:13 2006
@@ -68,7 +68,6 @@
             form.copyTo(fd, request.getLocale());
             bmgr.storeFolder(fd);
             RollerFactory.getRoller().flush();
-            RollerFactory.getRoller().commit();
             
             CacheManager.invalidate(fd);
         }

Modified: incubator/roller/branches/roller-newbackend/src/org/roller/presentation/bookmarks/actions/ImportBookmarksFormAction.java
URL: http://svn.apache.org/viewcvs/incubator/roller/branches/roller-newbackend/src/org/roller/presentation/bookmarks/actions/ImportBookmarksFormAction.java?rev=394800&r1=394799&r2=394800&view=diff
==============================================================================
--- incubator/roller/branches/roller-newbackend/src/org/roller/presentation/bookmarks/actions/ImportBookmarksFormAction.java
(original)
+++ incubator/roller/branches/roller-newbackend/src/org/roller/presentation/bookmarks/actions/ImportBookmarksFormAction.java
Mon Apr 17 15:42:13 2006
@@ -110,8 +110,8 @@
                         
                         // Use Roller BookmarkManager to import bookmarks
 
-                        bm.importBookmarks(website, folderName, data);                  
     
-                        RollerFactory.getRoller().commit();                        
+                        bm.importBookmarks(website, folderName, data);  
+                        RollerFactory.getRoller().flush();
                         CacheManager.invalidate(website);
                         
                         ActionMessages messages = new ActionMessages();

Modified: incubator/roller/branches/roller-newbackend/src/org/roller/presentation/pings/PingQueueTask.java
URL: http://svn.apache.org/viewcvs/incubator/roller/branches/roller-newbackend/src/org/roller/presentation/pings/PingQueueTask.java?rev=394800&r1=394799&r2=394800&view=diff
==============================================================================
--- incubator/roller/branches/roller-newbackend/src/org/roller/presentation/pings/PingQueueTask.java
(original)
+++ incubator/roller/branches/roller-newbackend/src/org/roller/presentation/pings/PingQueueTask.java
Mon Apr 17 15:42:13 2006
@@ -61,10 +61,8 @@
         try
         {
             roller = RollerFactory.getRoller();
-            //roller.begin();
             PingQueueProcessor.getInstance().processQueue();
             roller.flush();
-            roller.commit();
         }
         catch (RollerException e)
         {

Modified: incubator/roller/branches/roller-newbackend/src/org/roller/presentation/planet/PlanetConfigAction.java
URL: http://svn.apache.org/viewcvs/incubator/roller/branches/roller-newbackend/src/org/roller/presentation/planet/PlanetConfigAction.java?rev=394800&r1=394799&r2=394800&view=diff
==============================================================================
--- incubator/roller/branches/roller-newbackend/src/org/roller/presentation/planet/PlanetConfigAction.java
(original)
+++ incubator/roller/branches/roller-newbackend/src/org/roller/presentation/planet/PlanetConfigAction.java
Mon Apr 17 15:42:13 2006
@@ -136,7 +136,6 @@
                         planet.saveGroup(group);
                     }
                     roller.flush();
-                    roller.commit();
                     ActionMessages messages = new ActionMessages();
                     messages.add(null, new ActionMessage("planetConfig.success.saved"));
                     saveMessages(request, messages);

Modified: incubator/roller/branches/roller-newbackend/src/org/roller/presentation/planet/PlanetGroupsAction.java
URL: http://svn.apache.org/viewcvs/incubator/roller/branches/roller-newbackend/src/org/roller/presentation/planet/PlanetGroupsAction.java?rev=394800&r1=394799&r2=394800&view=diff
==============================================================================
--- incubator/roller/branches/roller-newbackend/src/org/roller/presentation/planet/PlanetGroupsAction.java
(original)
+++ incubator/roller/branches/roller-newbackend/src/org/roller/presentation/planet/PlanetGroupsAction.java
Mon Apr 17 15:42:13 2006
@@ -148,7 +148,7 @@
                     PlanetGroupData group = planet.getGroup(form.getHandle());
                     planet.deleteGroup(group);
                     roller.flush();
-                    roller.commit();
+                    // TODO: why release here?
                     roller.release();
                     
                     form.doReset(mapping, request);
@@ -205,7 +205,6 @@
                     form.copyTo(group, request.getLocale());
                     planet.saveGroup(group);  
                     roller.flush();
-                    roller.commit();
 
                     ActionMessages messages = new ActionMessages();
                     messages.add(null, 

Modified: incubator/roller/branches/roller-newbackend/src/org/roller/presentation/planet/PlanetSubscriptionsAction.java
URL: http://svn.apache.org/viewcvs/incubator/roller/branches/roller-newbackend/src/org/roller/presentation/planet/PlanetSubscriptionsAction.java?rev=394800&r1=394799&r2=394800&view=diff
==============================================================================
--- incubator/roller/branches/roller-newbackend/src/org/roller/presentation/planet/PlanetSubscriptionsAction.java
(original)
+++ incubator/roller/branches/roller-newbackend/src/org/roller/presentation/planet/PlanetSubscriptionsAction.java
Mon Apr 17 15:42:13 2006
@@ -156,7 +156,7 @@
                     targetGroup.removeSubscription(sub);
                     planet.deleteSubscription(sub);
                     roller.flush();
-                    roller.commit();
+                    // TODO: why release here?
                     roller.release();
                     
                     form.doReset(mapping, request);
@@ -230,7 +230,6 @@
                     planet.saveSubscription(sub);
                     planet.saveGroup(targetGroup);
                     roller.flush();
-                    roller.commit();
                     
                     messages.add(null,
                             new ActionMessage("planetSubscription.success.saved"));

Modified: incubator/roller/branches/roller-newbackend/src/org/roller/presentation/planet/RefreshEntriesTask.java
URL: http://svn.apache.org/viewcvs/incubator/roller/branches/roller-newbackend/src/org/roller/presentation/planet/RefreshEntriesTask.java?rev=394800&r1=394799&r2=394800&view=diff
==============================================================================
--- incubator/roller/branches/roller-newbackend/src/org/roller/presentation/planet/RefreshEntriesTask.java
(original)
+++ incubator/roller/branches/roller-newbackend/src/org/roller/presentation/planet/RefreshEntriesTask.java
Mon Apr 17 15:42:13 2006
@@ -40,7 +40,6 @@
         try {
             roller.getPlanetManager().refreshEntries();
             roller.flush();
-            roller.commit();
             roller.release();
         } catch (RollerException e) {
             logger.error("ERROR refreshing entries", e);

Modified: incubator/roller/branches/roller-newbackend/src/org/roller/presentation/planet/SyncWebsitesTask.java
URL: http://svn.apache.org/viewcvs/incubator/roller/branches/roller-newbackend/src/org/roller/presentation/planet/SyncWebsitesTask.java?rev=394800&r1=394799&r2=394800&view=diff
==============================================================================
--- incubator/roller/branches/roller-newbackend/src/org/roller/presentation/planet/SyncWebsitesTask.java
(original)
+++ incubator/roller/branches/roller-newbackend/src/org/roller/presentation/planet/SyncWebsitesTask.java
Mon Apr 17 15:42:13 2006
@@ -77,7 +77,6 @@
                     group.setTitle("all");
                     planet.saveGroup(group);
                     roller.flush();
-                    roller.commit();
                 }
                 try {
                     String baseFeedURL = baseURL + "/rss/";
@@ -119,7 +118,6 @@
                     }
                     planet.saveGroup(group);
                     roller.flush();
-                    roller.commit();
                     roller.release();
                     
                     // TODO: new planet manager method deleteSubs(list)
@@ -134,7 +132,6 @@
                         }
                     }
                     roller.flush();
-                    roller.commit();
                 } finally {
                     roller.release();
                 }
@@ -224,7 +221,6 @@
                     count++;
                 }
                 roller.flush();
-                roller.commit();
             } finally {
                 roller.release();
             }

Modified: incubator/roller/branches/roller-newbackend/src/org/roller/presentation/servlets/CommentServlet.java
URL: http://svn.apache.org/viewcvs/incubator/roller/branches/roller-newbackend/src/org/roller/presentation/servlets/CommentServlet.java?rev=394800&r1=394799&r2=394800&view=diff
==============================================================================
--- incubator/roller/branches/roller-newbackend/src/org/roller/presentation/servlets/CommentServlet.java
(original)
+++ incubator/roller/branches/roller-newbackend/src/org/roller/presentation/servlets/CommentServlet.java
Mon Apr 17 15:42:13 2006
@@ -209,7 +209,6 @@
                     
                     mgr.saveComment(comment);
                     RollerFactory.getRoller().flush();
-                    RollerFactory.getRoller().commit();
                     reindexEntry(entry);
                     
                     // Clear all caches associated with comment

Modified: incubator/roller/branches/roller-newbackend/src/org/roller/presentation/servlets/TrackbackServlet.java
URL: http://svn.apache.org/viewcvs/incubator/roller/branches/roller-newbackend/src/org/roller/presentation/servlets/TrackbackServlet.java?rev=394800&r1=394799&r2=394800&view=diff
==============================================================================
--- incubator/roller/branches/roller-newbackend/src/org/roller/presentation/servlets/TrackbackServlet.java
(original)
+++ incubator/roller/branches/roller-newbackend/src/org/roller/presentation/servlets/TrackbackServlet.java
Mon Apr 17 15:42:13 2006
@@ -189,7 +189,6 @@
                         WeblogManager mgr = RollerFactory.getRoller().getWeblogManager();
                         mgr.saveComment(comment);
                         RollerFactory.getRoller().flush();
-                        RollerFactory.getRoller().commit();
 
                         // Clear all caches associated with comment
                         CacheManager.invalidate(comment);

Modified: incubator/roller/branches/roller-newbackend/src/org/roller/presentation/weblog/actions/BasePingTargetsAction.java
URL: http://svn.apache.org/viewcvs/incubator/roller/branches/roller-newbackend/src/org/roller/presentation/weblog/actions/BasePingTargetsAction.java?rev=394800&r1=394799&r2=394800&view=diff
==============================================================================
--- incubator/roller/branches/roller-newbackend/src/org/roller/presentation/weblog/actions/BasePingTargetsAction.java
(original)
+++ incubator/roller/branches/roller-newbackend/src/org/roller/presentation/weblog/actions/BasePingTargetsAction.java
Mon Apr 17 15:42:13 2006
@@ -165,7 +165,6 @@
             // Save it, commit and return refreshed view of target list.
             pingTargetMgr.storePingTarget(pingTarget);
             RollerFactory.getRoller().flush();
-            RollerFactory.getRoller().commit();
             
             ActionMessages msgs = new ActionMessages();
             msgs.add(ActionMessages.GLOBAL_MESSAGE, 
@@ -303,7 +302,6 @@
             }
             pingTargetMgr.removePingTarget(pingTargetId);
             RollerFactory.getRoller().flush();
-            RollerFactory.getRoller().commit();
             return view(mapping, form, req, res);
         }
         catch (Exception e)

Modified: incubator/roller/branches/roller-newbackend/src/org/roller/presentation/weblog/actions/CategoriesAction.java
URL: http://svn.apache.org/viewcvs/incubator/roller/branches/roller-newbackend/src/org/roller/presentation/weblog/actions/CategoriesAction.java?rev=394800&r1=394799&r2=394800&view=diff
==============================================================================
--- incubator/roller/branches/roller-newbackend/src/org/roller/presentation/weblog/actions/CategoriesAction.java
(original)
+++ incubator/roller/branches/roller-newbackend/src/org/roller/presentation/weblog/actions/CategoriesAction.java
Mon Apr 17 15:42:13 2006
@@ -139,7 +139,6 @@
                 }    
                 // TODO: new manager method, moveCategory(cat, newPath)
                 RollerFactory.getRoller().flush();
-                RollerFactory.getRoller().commit();
                 saveMessages(request, messages);
             }
             catch (RollerException e)

Modified: incubator/roller/branches/roller-newbackend/src/org/roller/presentation/weblog/actions/CategorySaveAction.java
URL: http://svn.apache.org/viewcvs/incubator/roller/branches/roller-newbackend/src/org/roller/presentation/weblog/actions/CategorySaveAction.java?rev=394800&r1=394799&r2=394800&view=diff
==============================================================================
--- incubator/roller/branches/roller-newbackend/src/org/roller/presentation/weblog/actions/CategorySaveAction.java
(original)
+++ incubator/roller/branches/roller-newbackend/src/org/roller/presentation/weblog/actions/CategorySaveAction.java
Mon Apr 17 15:42:13 2006
@@ -62,7 +62,6 @@
             form.copyTo(cd, request.getLocale());
             wmgr.storeWeblogCategory(cd);
             RollerFactory.getRoller().flush();
-            RollerFactory.getRoller().commit();
             
             // notify caches of object invalidation
             CacheManager.invalidate(cd);

Modified: incubator/roller/branches/roller-newbackend/src/org/roller/presentation/weblog/actions/CommentManagementAction.java
URL: http://svn.apache.org/viewcvs/incubator/roller/branches/roller-newbackend/src/org/roller/presentation/weblog/actions/CommentManagementAction.java?rev=394800&r1=394799&r2=394800&view=diff
==============================================================================
--- incubator/roller/branches/roller-newbackend/src/org/roller/presentation/weblog/actions/CommentManagementAction.java
(original)
+++ incubator/roller/branches/roller-newbackend/src/org/roller/presentation/weblog/actions/CommentManagementAction.java
Mon Apr 17 15:42:13 2006
@@ -170,7 +170,6 @@
                 }
                 
                 RollerFactory.getRoller().flush();
-                RollerFactory.getRoller().commit();
                 for (Iterator comments=flushList.iterator(); comments.hasNext();) {
                     CacheManager.invalidate((CommentData)comments.next());
                 }

Modified: incubator/roller/branches/roller-newbackend/src/org/roller/presentation/weblog/actions/PingSetupAction.java
URL: http://svn.apache.org/viewcvs/incubator/roller/branches/roller-newbackend/src/org/roller/presentation/weblog/actions/PingSetupAction.java?rev=394800&r1=394799&r2=394800&view=diff
==============================================================================
--- incubator/roller/branches/roller-newbackend/src/org/roller/presentation/weblog/actions/PingSetupAction.java
(original)
+++ incubator/roller/branches/roller-newbackend/src/org/roller/presentation/weblog/actions/PingSetupAction.java
Mon Apr 17 15:42:13 2006
@@ -185,7 +185,6 @@
                     rreq.getWebsite());
             autoPingMgr.storeAutoPing(autoPing);
             RollerFactory.getRoller().flush();
-            RollerFactory.getRoller().commit();
 
             return view(mapping, form, req, res);
         }
@@ -214,7 +213,6 @@
             }
             autoPingMgr.removeAutoPing(pingTarget, rreq.getWebsite());
             RollerFactory.getRoller().flush();
-            RollerFactory.getRoller().commit();
         
             return view(mapping, form, req, res);
         }

Modified: incubator/roller/branches/roller-newbackend/src/org/roller/presentation/weblog/actions/ReferersAction.java
URL: http://svn.apache.org/viewcvs/incubator/roller/branches/roller-newbackend/src/org/roller/presentation/weblog/actions/ReferersAction.java?rev=394800&r1=394799&r2=394800&view=diff
==============================================================================
--- incubator/roller/branches/roller-newbackend/src/org/roller/presentation/weblog/actions/ReferersAction.java
(original)
+++ incubator/roller/branches/roller-newbackend/src/org/roller/presentation/weblog/actions/ReferersAction.java
Mon Apr 17 15:42:13 2006
@@ -103,7 +103,6 @@
                 WebsiteData website = rreq.getWebsite();
                 refmgr.clearReferrers(website);
                 RollerFactory.getRoller().flush();
-                RollerFactory.getRoller().commit();
                 
                 CacheManager.invalidate(website);
             }
@@ -141,7 +140,6 @@
                         refmgr.removeReferer(deleteIds[i]);
                     }
                     RollerFactory.getRoller().flush();
-                    RollerFactory.getRoller().commit();
                     
                     CacheManager.invalidate(website);
                     

Modified: incubator/roller/branches/roller-newbackend/src/org/roller/presentation/weblog/actions/ToggleLinkbackDisplayAction.java
URL: http://svn.apache.org/viewcvs/incubator/roller/branches/roller-newbackend/src/org/roller/presentation/weblog/actions/ToggleLinkbackDisplayAction.java?rev=394800&r1=394799&r2=394800&view=diff
==============================================================================
--- incubator/roller/branches/roller-newbackend/src/org/roller/presentation/weblog/actions/ToggleLinkbackDisplayAction.java
(original)
+++ incubator/roller/branches/roller-newbackend/src/org/roller/presentation/weblog/actions/ToggleLinkbackDisplayAction.java
Mon Apr 17 15:42:13 2006
@@ -57,7 +57,6 @@
                     refmgr.storeReferer(ref);
                     
                     RollerFactory.getRoller().flush();
-                    RollerFactory.getRoller().commit();
                     
                     //PageCacheFilter.removeFromCache( req, rreq.getWebsite() );
                     CacheManager.invalidate(rreq.getWebsite());

Modified: incubator/roller/branches/roller-newbackend/tests/org/roller/presentation/ArchiveParserTest.java
URL: http://svn.apache.org/viewcvs/incubator/roller/branches/roller-newbackend/tests/org/roller/presentation/ArchiveParserTest.java?rev=394800&r1=394799&r2=394800&view=diff
==============================================================================
--- incubator/roller/branches/roller-newbackend/tests/org/roller/presentation/ArchiveParserTest.java
(original)
+++ incubator/roller/branches/roller-newbackend/tests/org/roller/presentation/ArchiveParserTest.java
Mon Apr 17 15:42:13 2006
@@ -56,7 +56,7 @@
             //ArchiveParser parser = new ArchiveParser(getRoller(), mWebsite, archiveFile);
             //getRoller().begin(UserData.SYSTEM_USER);
             String result = null; // parser.parse();
-            getRoller().commit();
+            getRoller().flush();
             assertTrue(result.length() > 0);
             System.out.println(result);
         }



Mime
View raw message