org.apache.sling.testing.resourceresolver
Class MockResourceResolverFactory
java.lang.Object
org.apache.sling.testing.resourceresolver.MockResourceResolverFactory
- All Implemented Interfaces:
- org.apache.sling.api.resource.ResourceResolverFactory
public class MockResourceResolverFactory
- extends Object
- implements org.apache.sling.api.resource.ResourceResolverFactory
Simple resource resolver factory
| Fields inherited from interface org.apache.sling.api.resource.ResourceResolverFactory |
PASSWORD, SUBSERVICE, USER, USER_IMPERSONATION |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MockResourceResolverFactory
public MockResourceResolverFactory(org.osgi.service.event.EventAdmin eventAdmin)
- Create a new resource resolver factory
- Parameters:
eventAdmin - All resource events are sent to this event admin
MockResourceResolverFactory
public MockResourceResolverFactory()
- Create a new resource resolver factory.
MockResourceResolverFactory
public MockResourceResolverFactory(MockResourceResolverFactoryOptions options)
- Create a new resource resolver factory.
getResourceResolver
public org.apache.sling.api.resource.ResourceResolver getResourceResolver(Map<String,Object> authenticationInfo)
throws org.apache.sling.api.resource.LoginException
- Specified by:
getResourceResolver in interface org.apache.sling.api.resource.ResourceResolverFactory
- Throws:
org.apache.sling.api.resource.LoginException
getAdministrativeResourceResolver
public org.apache.sling.api.resource.ResourceResolver getAdministrativeResourceResolver(Map<String,Object> authenticationInfo)
throws org.apache.sling.api.resource.LoginException
- Specified by:
getAdministrativeResourceResolver in interface org.apache.sling.api.resource.ResourceResolverFactory
- Throws:
org.apache.sling.api.resource.LoginException
getServiceResourceResolver
public org.apache.sling.api.resource.ResourceResolver getServiceResourceResolver(Map<String,Object> authenticationInfo)
throws org.apache.sling.api.resource.LoginException
- Specified by:
getServiceResourceResolver in interface org.apache.sling.api.resource.ResourceResolverFactory
- Throws:
org.apache.sling.api.resource.LoginException
Copyright © 2007-2014 The Apache Software Foundation. All Rights Reserved.