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:59:43 UTC

[sling-org-apache-sling-resourceresolver] 13/47: SLING-2530 : Implement CRUD based on resources (WiP)

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

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

commit e6a6beef6a5ed69cef63955640195a7f5eb96faf
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Fri Jul 13 12:28:55 2012 +0000

    SLING-2530 : Implement CRUD based on resources (WiP)
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/resourceresolver@1361182 13f79535-47bb-0310-9956-ffa450edef68
---
 .../sling/resourceresolver/impl/ResourceResolverImpl.java  | 14 --------------
 .../impl/tree/ResourceProviderEntryTest.java               |  5 -----
 2 files changed, 19 deletions(-)

diff --git a/src/main/java/org/apache/sling/resourceresolver/impl/ResourceResolverImpl.java b/src/main/java/org/apache/sling/resourceresolver/impl/ResourceResolverImpl.java
index 597284c..c446441 100644
--- a/src/main/java/org/apache/sling/resourceresolver/impl/ResourceResolverImpl.java
+++ b/src/main/java/org/apache/sling/resourceresolver/impl/ResourceResolverImpl.java
@@ -37,7 +37,6 @@ import org.apache.sling.adapter.annotations.Adapter;
 import org.apache.sling.api.SlingException;
 import org.apache.sling.api.adapter.SlingAdaptable;
 import org.apache.sling.api.resource.LoginException;
-import org.apache.sling.api.resource.ModifiableValueMap;
 import org.apache.sling.api.resource.ModifyingResourceProvider;
 import org.apache.sling.api.resource.NonExistingResource;
 import org.apache.sling.api.resource.PersistenceException;
@@ -1028,19 +1027,6 @@ public class ResourceResolverImpl extends SlingAdaptable implements ResourceReso
     }
 
     /**
-     * @see org.apache.sling.api.resource.ResourceResolver#update(org.apache.sling.api.resource.Resource, org.apache.sling.api.resource.ModifiableValueMap)
-     */
-    public void update(final Resource resource, final ModifiableValueMap properties)
-    throws PersistenceException {
-        // if resource is null, we get an NPE as stated in the API
-        final String path = resource.getPath();
-        final ModifyingResourceProvider mrp = this.factory.getRootProviderEntry().getModifyingProvider(this.context,
-                        this,
-                        path);
-        mrp.update(this, path, properties);
-    }
-
-    /**
      * @see org.apache.sling.api.resource.ResourceResolver#revert()
      */
     public void revert() throws PersistenceException {
diff --git a/src/test/java/org/apache/sling/resourceresolver/impl/tree/ResourceProviderEntryTest.java b/src/test/java/org/apache/sling/resourceresolver/impl/tree/ResourceProviderEntryTest.java
index a2ca942..fd37941 100644
--- a/src/test/java/org/apache/sling/resourceresolver/impl/tree/ResourceProviderEntryTest.java
+++ b/src/test/java/org/apache/sling/resourceresolver/impl/tree/ResourceProviderEntryTest.java
@@ -30,7 +30,6 @@ import java.util.Map;
 import javax.servlet.http.HttpServletRequest;
 
 import org.apache.sling.api.resource.AbstractResource;
-import org.apache.sling.api.resource.ModifiableValueMap;
 import org.apache.sling.api.resource.Resource;
 import org.apache.sling.api.resource.ResourceMetadata;
 import org.apache.sling.api.resource.ResourceProvider;
@@ -310,10 +309,6 @@ public class ResourceProviderEntryTest {
             return null;
         }
 
-        public void update(Resource resource, ModifiableValueMap properties) {
-            // TODO Auto-generated method stub
-        }
-
         public void revert() {
             // TODO Auto-generated method stub
 

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