|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jackrabbit.test.RepositoryStub
org.apache.jackrabbit.core.JackrabbitRepositoryStub
public class JackrabbitRepositoryStub
RepositoryStub implementation for Apache Jackrabbit.
Field Summary | |
---|---|
static String |
PROP_REPOSITORY_CONFIG
Property for the repository configuration file. |
static String |
PROP_REPOSITORY_HOME
Property for the repository home directory. |
Constructor Summary | |
---|---|
JackrabbitRepositoryStub(Properties settings)
Constructor as required by the JCR TCK. |
Method Summary | |
---|---|
protected Repository |
createRepository(String dir,
String xml)
|
Principal |
getKnownPrincipal(Session session)
Returns a Principal identifiying a known user (not group) |
protected Repository |
getOrCreateRepository(String dir,
String xml)
|
Repository |
getRepository()
Returns the configured repository instance. |
Principal |
getUnknownPrincipal(Session session)
Returns a Principal identifiying an unknown user. |
Methods inherited from class org.apache.jackrabbit.test.RepositoryStub |
---|
getInstance, getProperty, getReadOnlyCredentials, getReadWriteCredentials, getSuperuserCredentials |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String PROP_REPOSITORY_CONFIG
public static final String PROP_REPOSITORY_HOME
Constructor Detail |
---|
public JackrabbitRepositoryStub(Properties settings)
settings
- repository settingsMethod Detail |
---|
public Repository getRepository() throws RepositoryStubException
getRepository
in class RepositoryStub
RepositoryStubException
- if an error occurs while
obtaining the repository instance.protected Repository createRepository(String dir, String xml) throws Exception
Exception
protected Repository getOrCreateRepository(String dir, String xml) throws Exception
Exception
public Principal getKnownPrincipal(Session session) throws RepositoryException
RepositoryStub
Principal
identifiying a known user (not group)
getKnownPrincipal
in class RepositoryStub
RepositoryException
public Principal getUnknownPrincipal(Session session) throws RepositoryException, NotExecutableException
RepositoryStub
Principal
identifiying an unknown user.
getUnknownPrincipal
in class RepositoryStub
NotExecutableException
- if the implementation can not provide an
instance of Principal for unkwnown users
RepositoryException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |