public class JackrabbitRepositoryStub extends RepositoryStub
| Modifier and Type | Field and Description |
|---|---|
static String |
PROP_REPOSITORY_CONFIG
Property for the repository configuration file.
|
static String |
PROP_REPOSITORY_HOME
Property for the repository home directory.
|
environment, PROP_HOLD_NAME, PROP_LOCK_OWNER, PROP_LOCK_TIMEOUT, PROP_NAMESPACES, PROP_NODE_NAME1, PROP_NODE_NAME2, PROP_NODE_NAME3, PROP_NODE_NAME4, PROP_NODETYPE, PROP_NODETYPENOCHILDREN, PROP_NODETYPETESTROOT, PROP_PREFIX, PROP_PROP_NAME1, PROP_PROP_NAME2, PROP_PROP_TYPE1, PROP_PROP_TYPE2, PROP_PROP_VALUE1, PROP_PROP_VALUE2, PROP_READONLY_NAME, PROP_READONLY_PWD, PROP_READWRITE_NAME, PROP_READWRITE_PWD, PROP_STUB_IMPL_CLASS, PROP_SUPERUSER_NAME, PROP_SUPERUSER_PWD, PROP_TESTROOT, PROP_WORKSPACE_NAME, readonly, readwrite, REPOSITORY_FACTORY, RETENTION_POLICY_HOLDER, STUB_IMPL_PROPS, STUB_IMPL_SYS_PROPS, superuser| Constructor and Description |
|---|
JackrabbitRepositoryStub(Properties settings)
Constructor as required by the JCR TCK.
|
| Modifier and Type | Method and Description |
|---|---|
protected javax.jcr.Repository |
createRepository(String dir,
String xml) |
Principal |
getKnownPrincipal(javax.jcr.Session session) |
protected javax.jcr.Repository |
getOrCreateRepository(String dir,
String xml) |
javax.jcr.Repository |
getRepository()
Returns the configured repository instance.
|
static RepositoryContext |
getRepositoryContext(javax.jcr.Repository repository) |
Principal |
getUnknownPrincipal(javax.jcr.Session session) |
getInstance, getProperty, getReadOnlyCredentials, getReadWriteCredentials, getSuperuserCredentialspublic static final String PROP_REPOSITORY_CONFIG
public static final String PROP_REPOSITORY_HOME
public JackrabbitRepositoryStub(Properties settings)
settings - repository settingspublic static RepositoryContext getRepositoryContext(javax.jcr.Repository repository)
public javax.jcr.Repository getRepository()
throws RepositoryStubException
getRepository in class RepositoryStubRepositoryStubException - if an error occurs while
obtaining the repository instance.protected javax.jcr.Repository createRepository(String dir, String xml) throws Exception
Exceptionprotected javax.jcr.Repository getOrCreateRepository(String dir, String xml) throws Exception
Exceptionpublic Principal getKnownPrincipal(javax.jcr.Session session) throws javax.jcr.RepositoryException
getKnownPrincipal in class RepositoryStubjavax.jcr.RepositoryExceptionpublic Principal getUnknownPrincipal(javax.jcr.Session session) throws javax.jcr.RepositoryException, NotExecutableException
getUnknownPrincipal in class RepositoryStubjavax.jcr.RepositoryExceptionNotExecutableExceptionCopyright © 2004-2016 The Apache Software Foundation. All Rights Reserved.