|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jackrabbit.commons.AbstractRepository
org.apache.jackrabbit.commons.repository.EmptyRepository
public class EmptyRepository
An empty repository with no descriptors and no workspaces. This class can be used as a dummy sentinel in cases where a proper content repository is not available.
Field Summary |
---|
Fields inherited from interface javax.jcr.Repository |
---|
LEVEL_1_SUPPORTED, LEVEL_2_SUPPORTED, OPTION_LOCKING_SUPPORTED, OPTION_OBSERVATION_SUPPORTED, OPTION_QUERY_SQL_SUPPORTED, OPTION_TRANSACTIONS_SUPPORTED, OPTION_VERSIONING_SUPPORTED, QUERY_XPATH_DOC_ORDER, QUERY_XPATH_POS_INDEX, REP_NAME_DESC, REP_VENDOR_DESC, REP_VENDOR_URL_DESC, REP_VERSION_DESC, SPEC_NAME_DESC, SPEC_VERSION_DESC |
Constructor Summary | |
---|---|
EmptyRepository()
|
Method Summary | |
---|---|
String |
getDescriptor(String key)
Returns null since this repository contains no descriptors. |
String[] |
getDescriptorKeys()
Returns an empty array since this repository contains no descriptors. |
javax.jcr.Session |
login(javax.jcr.Credentials credentials,
String workspace)
Throws an exception since this repository contains no workspaces. |
Methods inherited from class org.apache.jackrabbit.commons.AbstractRepository |
---|
login, login, login |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EmptyRepository()
Method Detail |
---|
public String getDescriptor(String key)
null
since this repository contains no descriptors.
null
public String[] getDescriptorKeys()
public javax.jcr.Session login(javax.jcr.Credentials credentials, String workspace) throws javax.jcr.NoSuchWorkspaceException
javax.jcr.NoSuchWorkspaceException
- always thrown
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |