jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r619439 - in /jackrabbit/trunk/jackrabbit-jcr-server/src/main/java/org/apache/jackrabbit/server/io: DirListingExportHandler.java PropertyManagerImpl.java
Date Thu, 07 Feb 2008 15:17:46 GMT
Author: angela
Date: Thu Feb  7 07:17:45 2008
New Revision: 619439

URL: http://svn.apache.org/viewvc?rev=619439&view=rev
Log:
JCR-1364

Modified:
    jackrabbit/trunk/jackrabbit-jcr-server/src/main/java/org/apache/jackrabbit/server/io/DirListingExportHandler.java
    jackrabbit/trunk/jackrabbit-jcr-server/src/main/java/org/apache/jackrabbit/server/io/PropertyManagerImpl.java

Modified: jackrabbit/trunk/jackrabbit-jcr-server/src/main/java/org/apache/jackrabbit/server/io/DirListingExportHandler.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-server/src/main/java/org/apache/jackrabbit/server/io/DirListingExportHandler.java?rev=619439&r1=619438&r2=619439&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-server/src/main/java/org/apache/jackrabbit/server/io/DirListingExportHandler.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-server/src/main/java/org/apache/jackrabbit/server/io/DirListingExportHandler.java
Thu Feb  7 07:17:45 2008
@@ -267,22 +267,22 @@
     }
 
     //----------------------------------------------------< PropertyHandler >---
-
+    /**
+     * Always returns false.
+     * @param context
+     * @param isCollection
+     * @return always returns false.
+     */
     public boolean canExport(PropertyExportContext context, boolean isCollection) {
-        return canExport((ExportContext)context, isCollection);
+        return false;
     }
 
     /**
      * @see PropertyHandler#exportProperties(PropertyExportContext, boolean)
      */
     public boolean exportProperties(PropertyExportContext exportContext, boolean isCollection)
throws RepositoryException {
-        if (!canExport(exportContext, isCollection)) {
-            throw new RepositoryException(getName() + ": Cannot export properties for context
" + exportContext);
-        }
-        exportContext.setModificationTime(new Date().getTime());
-        exportContext.setContentType("text/html", "UTF-8");
-        exportContext.setETag("");
-        return true;
+        // export-content facility only... no responsible for propfind.
+        throw new RepositoryException(getName() + ": Cannot export properties for context
" + exportContext);
     }
 
     public boolean canImport(PropertyImportContext context, boolean isCollection) {

Modified: jackrabbit/trunk/jackrabbit-jcr-server/src/main/java/org/apache/jackrabbit/server/io/PropertyManagerImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-server/src/main/java/org/apache/jackrabbit/server/io/PropertyManagerImpl.java?rev=619439&r1=619438&r2=619439&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-server/src/main/java/org/apache/jackrabbit/server/io/PropertyManagerImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-server/src/main/java/org/apache/jackrabbit/server/io/PropertyManagerImpl.java
Thu Feb  7 07:17:45 2008
@@ -108,7 +108,6 @@
             DEFAULT_MANAGER = new PropertyManagerImpl();
             DEFAULT_MANAGER.addPropertyHandler(new ZipHandler());
             DEFAULT_MANAGER.addPropertyHandler(new XmlHandler());
-            DEFAULT_MANAGER.addPropertyHandler(new DirListingExportHandler());
             DEFAULT_MANAGER.addPropertyHandler(new DefaultHandler());
         }
         return DEFAULT_MANAGER;



Mime
View raw message