|
||||||||||
| 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.test.JNDIRepositoryStub
public class JNDIRepositoryStub
Implements the abstract class RepositoryStub and uses JNDI
to obtain a javax.jcr.Repository instance.
| Field Summary | |
|---|---|
static java.lang.String |
REPOSITORY_LOOKUP_PROP
|
| Constructor Summary | |
|---|---|
JNDIRepositoryStub(java.util.Properties env)
|
|
| Method Summary | |
|---|---|
java.security.Principal |
getKnownPrincipal(Session session)
Returns a Principal identifiying a known user (not group) |
Repository |
getRepository()
Returns a reference to the Repository provided by this
RepositoryStub. |
java.security.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 java.lang.String REPOSITORY_LOOKUP_PROP
| Constructor Detail |
|---|
public JNDIRepositoryStub(java.util.Properties env)
| Method Detail |
|---|
public Repository getRepository()
throws RepositoryStubException
Repository provided by this
RepositoryStub.
getRepository in class RepositoryStubRepositoryStubException
public java.security.Principal getKnownPrincipal(Session session)
throws RepositoryException
RepositoryStubPrincipal identifiying a known user (not group)
getKnownPrincipal in class RepositoryStubRepositoryException
public java.security.Principal getUnknownPrincipal(Session session)
throws RepositoryException,
NotExecutableException
RepositoryStubPrincipal identifiying an unknown user.
getUnknownPrincipal in class RepositoryStubNotExecutableException - 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 | |||||||||