|
||||||||||
| 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 |
|---|
| Constructor Summary | |
|---|---|
EmptyRepository()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getDescriptor(java.lang.String key)
Returns null since this repository contains no descriptors. |
java.lang.String[] |
getDescriptorKeys()
Returns an empty array since this repository contains no descriptors. |
Session |
login(Credentials credentials,
java.lang.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 java.lang.String getDescriptor(java.lang.String key)
null since this repository contains no descriptors.
nullpublic java.lang.String[] getDescriptorKeys()
public Session login(Credentials credentials,
java.lang.String workspace)
throws NoSuchWorkspaceException
NoSuchWorkspaceException - always thrown
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||