@Service(value=org.apache.sling.api.resource.ResourceProviderFactory.class)
@Properties(value={@Property(name="required",boolValue=true,propertyPrivate=true),@Property(name="provider.roots",value="/",propertyPrivate=true),@Property(name="service.description",value="Apache Sling JCR Resource Provider Factory"),@Property(name="service.vendor",value="The Apache Software Foundation"),@Property(name="provider.query.languages",value={"xpath","sql","JCR-SQL2"},propertyPrivate=true)})
public class JcrResourceProviderFactory
extends Object
implements org.apache.sling.api.resource.ResourceProviderFactory
JcrResourceProviderFactory creates
resource providers based on JCR.| Constructor and Description |
|---|
JcrResourceProviderFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
activate(org.osgi.service.component.ComponentContext context) |
protected void |
deactivate() |
org.apache.sling.api.resource.ResourceProvider |
getAdministrativeResourceProvider(Map<String,Object> authenticationInfo) |
org.apache.sling.api.resource.ResourceProvider |
getResourceProvider(Map<String,Object> authenticationInfo) |
static boolean |
isAttributeVisible(String name)
Returns
true unless the name is
user.jcr.credentials (
JcrResourceConstants.AUTHENTICATION_INFO_CREDENTIALS) or contains
the string password as in user.password (
ResourceResolverFactory.PASSWORD) |
@Activate
protected void activate(org.osgi.service.component.ComponentContext context)
throws javax.jcr.RepositoryException
javax.jcr.RepositoryException@Deactivate protected void deactivate()
public org.apache.sling.api.resource.ResourceProvider getResourceProvider(Map<String,Object> authenticationInfo) throws org.apache.sling.api.resource.LoginException
getResourceProvider in interface org.apache.sling.api.resource.ResourceProviderFactoryorg.apache.sling.api.resource.LoginExceptionResourceProviderFactory.getResourceProvider(java.util.Map)public org.apache.sling.api.resource.ResourceProvider getAdministrativeResourceProvider(Map<String,Object> authenticationInfo) throws org.apache.sling.api.resource.LoginException
getAdministrativeResourceProvider in interface org.apache.sling.api.resource.ResourceProviderFactoryorg.apache.sling.api.resource.LoginExceptionResourceProviderFactory.getAdministrativeResourceProvider(java.util.Map)public static boolean isAttributeVisible(String name)
true unless the name is
user.jcr.credentials (
JcrResourceConstants.AUTHENTICATION_INFO_CREDENTIALS) or contains
the string password as in user.password (
ResourceResolverFactory.PASSWORD)name - The name to check whether it is visible or nottrue if the name is assumed visibleNullPointerException - if name is nullCopyright © 2007–2014 The Apache Software Foundation. All rights reserved.