You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2017/11/07 09:35:38 UTC

[sling-org-apache-sling-fsresource] 18/25: SLING-1192 use nt:file and nt:folder for files and folders and drop the special resource super type

This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to annotated tag org.apache.sling.fsresource-1.0.0
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-fsresource.git

commit 3a95821654fc8c9c261fe61ed1a576c7726cffac
Author: Felix Meschberger <fm...@apache.org>
AuthorDate: Tue Nov 17 20:27:39 2009 +0000

    SLING-1192 use nt:file and nt:folder for files and folders and drop the special resource super type
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/extensions/fsresource@881492 13f79535-47bb-0310-9956-ffa450edef68
---
 .../apache/sling/fsprovider/internal/FsResource.java   | 18 +++++-------------
 1 file changed, 5 insertions(+), 13 deletions(-)

diff --git a/src/main/java/org/apache/sling/fsprovider/internal/FsResource.java b/src/main/java/org/apache/sling/fsprovider/internal/FsResource.java
index 6d2d424..4cdce18 100644
--- a/src/main/java/org/apache/sling/fsprovider/internal/FsResource.java
+++ b/src/main/java/org/apache/sling/fsprovider/internal/FsResource.java
@@ -38,25 +38,17 @@ import org.slf4j.LoggerFactory;
  */
 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 @@ public class FsResource extends SlingAdaptable implements Resource {
      * Returns {@link FsProviderConstants#RESOURCE_TYPE_ROOT}
      */
     public String getResourceSuperType() {
-        return RESOURCE_TYPE_ROOT;
+        return null;
     }
 
     /**

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.