incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fmesc...@apache.org
Subject svn commit: r881492 - /sling/trunk/bundles/extensions/fsresource/src/main/java/org/apache/sling/fsprovider/internal/FsResource.java
Date Tue, 17 Nov 2009 20:27:39 GMT
Author: fmeschbe
Date: Tue Nov 17 20:27:39 2009
New Revision: 881492

URL: http://svn.apache.org/viewvc?rev=881492&view=rev
Log:
SLING-1192 use nt:file and nt:folder for files and folders and drop the special resource super
type

Modified:
    sling/trunk/bundles/extensions/fsresource/src/main/java/org/apache/sling/fsprovider/internal/FsResource.java

Modified: sling/trunk/bundles/extensions/fsresource/src/main/java/org/apache/sling/fsprovider/internal/FsResource.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/extensions/fsresource/src/main/java/org/apache/sling/fsprovider/internal/FsResource.java?rev=881492&r1=881491&r2=881492&view=diff
==============================================================================
--- sling/trunk/bundles/extensions/fsresource/src/main/java/org/apache/sling/fsprovider/internal/FsResource.java
(original)
+++ sling/trunk/bundles/extensions/fsresource/src/main/java/org/apache/sling/fsprovider/internal/FsResource.java
Tue Nov 17 20:27:39 2009
@@ -38,25 +38,17 @@
  */
 public class FsResource extends SlingAdaptable implements Resource {
 
-
-    /**
-     * The common resource super type for files and folders mapped into the
-     * resource tree by the {@link FsResourceProvider} (value is
-     * "sling/fs/resource").
-     */
-    private static final String RESOURCE_TYPE_ROOT = "sling/fs/resource";
-
     /**
      * The resource type for file system files mapped into the resource tree by
-     * the {@link FsResourceProvider} (value is "sling/fs/file").
+     * the {@link FsResourceProvider} (value is "nt:file").
      */
-    private static final String RESOURCE_TYPE_FILE = "sling/fs/file";
+    private static final String RESOURCE_TYPE_FILE = "nt:file";
 
     /**
      * The resource type for file system folders mapped into the resource tree
-     * by the {@link FsResourceProvider} (value is "sling/fs/folder").
+     * by the {@link FsResourceProvider} (value is "nt:folder").
      */
-    private static final String RESOURCE_TYPE_FOLDER = "sling/fs/folder";
+    private static final String RESOURCE_TYPE_FOLDER = "nt:folder";
 
     // default log, assigned on demand
     private Logger log;
@@ -123,7 +115,7 @@
      * Returns {@link FsProviderConstants#RESOURCE_TYPE_ROOT}
      */
     public String getResourceSuperType() {
-        return RESOURCE_TYPE_ROOT;
+        return null;
     }
 
     /**



Mime
View raw message