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:50 UTC
[sling-org-apache-sling-resourceresolver] 20/47: SLING-2530 :
Implement CRUD based on resources
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 eec4a6166d5272b8abf9ee2a2cdecf6911299d21
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Fri Jul 27 12:30:18 2012 +0000
SLING-2530 : Implement CRUD based on resources
git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/resourceresolver@1366366 13f79535-47bb-0310-9956-ffa450edef68
---
.../org/apache/sling/resourceresolver/impl/ResourceResolverImpl.java | 4 ++--
.../sling/resourceresolver/impl/tree/ResourceProviderEntryTest.java | 3 +--
2 files changed, 3 insertions(+), 4 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 6f51254..f9b8d46 100644
--- a/src/main/java/org/apache/sling/resourceresolver/impl/ResourceResolverImpl.java
+++ b/src/main/java/org/apache/sling/resourceresolver/impl/ResourceResolverImpl.java
@@ -1014,9 +1014,9 @@ public class ResourceResolverImpl extends SlingAdaptable implements ResourceReso
}
/**
- * @see org.apache.sling.api.resource.ResourceResolver#addChild(org.apache.sling.api.resource.Resource, java.lang.String, org.apache.sling.api.resource.ValueMap)
+ * @see org.apache.sling.api.resource.ResourceResolver#addChild(org.apache.sling.api.resource.Resource, java.lang.String, Map)
*/
- public Resource addChild(final Resource parent, final String name, final ValueMap properties)
+ public Resource addChild(final Resource parent, final String name, final Map<String, Object> properties)
throws PersistenceException {
// if parent or name is null, we get an NPE as stated in the API
if ( name == null ) {
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 fd37941..74593ba 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
@@ -34,7 +34,6 @@ import org.apache.sling.api.resource.Resource;
import org.apache.sling.api.resource.ResourceMetadata;
import org.apache.sling.api.resource.ResourceProvider;
import org.apache.sling.api.resource.ResourceResolver;
-import org.apache.sling.api.resource.ValueMap;
import org.junit.Before;
import org.junit.Test;
import org.osgi.framework.Constants;
@@ -304,7 +303,7 @@ public class ResourceProviderEntryTest {
// TODO Auto-generated method stub
}
- public Resource addChild(Resource parent, String name, ValueMap properties) {
+ public Resource addChild(Resource parent, String name, Map<String, Object> properties) {
// TODO Auto-generated method stub
return null;
}
--
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.