public class JcrItemResourceFactory extends Object
Constructor and Description |
---|
JcrItemResourceFactory(javax.jcr.Session session,
HelperData helper) |
Modifier and Type | Method and Description |
---|---|
org.apache.sling.jcr.resource.internal.helper.jcr.JcrItemResource<?> |
createResource(org.apache.sling.api.resource.ResourceResolver resourceResolver,
String resourcePath,
org.apache.sling.api.resource.Resource parent,
Map<String,String> parameters)
Creates a
Resource instance for the item found at the
given path. |
public JcrItemResourceFactory(javax.jcr.Session session, HelperData helper)
public org.apache.sling.jcr.resource.internal.helper.jcr.JcrItemResource<?> createResource(org.apache.sling.api.resource.ResourceResolver resourceResolver, String resourcePath, org.apache.sling.api.resource.Resource parent, Map<String,String> parameters) throws javax.jcr.RepositoryException
Resource
instance for the item found at the
given path. If no item exists at that path or the item does not have
read-access for the session of this resolver, null
is
returned.resourcePath
- The absolute pathResource
for the item at the given path.javax.jcr.RepositoryException
- If an error occurrs accessing checking the
item in the repository.Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.