You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@roller.apache.org by sn...@apache.org on 2006/01/22 01:43:10 UTC

svn commit: r371159 - /incubator/roller/trunk/sandbox/atomprotocol/src/org/roller/presentation/atomapi/RollerAtomHandler.java

Author: snoopdave
Date: Sat Jan 21 16:43:08 2006
New Revision: 371159

URL: http://svn.apache.org/viewcvs?rev=371159&view=rev
Log:
Atom protocol was broken by my recent file manager changes

Modified:
    incubator/roller/trunk/sandbox/atomprotocol/src/org/roller/presentation/atomapi/RollerAtomHandler.java

Modified: incubator/roller/trunk/sandbox/atomprotocol/src/org/roller/presentation/atomapi/RollerAtomHandler.java
URL: http://svn.apache.org/viewcvs/incubator/roller/trunk/sandbox/atomprotocol/src/org/roller/presentation/atomapi/RollerAtomHandler.java?rev=371159&r1=371158&r2=371159&view=diff
==============================================================================
--- incubator/roller/trunk/sandbox/atomprotocol/src/org/roller/presentation/atomapi/RollerAtomHandler.java (original)
+++ incubator/roller/trunk/sandbox/atomprotocol/src/org/roller/presentation/atomapi/RollerAtomHandler.java Sat Jan 21 16:43:08 2006
@@ -254,7 +254,7 @@
         String absUrl = mRollerContext.getAbsoluteContextUrl(mRequest);
         WebsiteData website = mRoller.getUserManager().getWebsiteByHandle(handle);
         FileManager fmgr = mRoller.getFileManager();
-        File[] files = fmgr.getFiles(website);
+        File[] files = fmgr.getFiles(website.getHandle());
         if (canView(website)) {            
             Feed feed = new Feed();
             List atomEntries = new ArrayList();
@@ -418,10 +418,10 @@
                 fos.close();
                 
                 // If save is allowed by Roller system-wide policies
-                if (fmgr.canSave(website, name, tempFile.length(), msgs)) {
+                if (fmgr.canSave(website.getHandle(), name, tempFile.length(), msgs)) {
                     // Then save the file
                     FileInputStream fis = new FileInputStream(tempFile);
-                    fmgr.saveFile(website, name, tempFile.length(), fis);
+                    fmgr.saveFile(website.getHandle(), name, tempFile.length(), fis);
                     fis.close();
                     
                     File resource = new File(fmgr.getUploadDir() + File.separator + name);
@@ -474,7 +474,7 @@
         if (canEdit(website) && pathInfo.length > 1) {
             try {
                 FileManager fmgr = mRoller.getFileManager();
-                fmgr.deleteFile(website, pathInfo[2]);
+                fmgr.deleteFile(website.getHandle(), pathInfo[2]);
             } catch (Exception e) {
                 String msg = "ERROR in atom.deleteResource";
                 mLogger.error(msg,e);