|
||||||||||
| 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 | |
|---|---|
String |
getDescriptor(String key)
Returns null since this repository contains no descriptors. |
String[] |
getDescriptorKeys()
Returns an empty array since this repository contains no descriptors. |
Value |
getDescriptorValue(String key)
Returns null since this repository contains no descriptors. |
Value[] |
getDescriptorValues(String key)
Returns null since this repository contains no descriptors. |
boolean |
isSingleValueDescriptor(String key)
Returns false since this repository contains no descriptors. |
Session |
login(Credentials credentials,
String workspace)
Throws an exception since this repository contains no workspaces. |
| Methods inherited from class org.apache.jackrabbit.commons.AbstractRepository |
|---|
isStandardDescriptor, 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.
key - descriptor key
nullpublic Value getDescriptorValue(String key)
null since this repository contains no descriptors.
key - descriptor key
nullpublic Value[] getDescriptorValues(String key)
null since this repository contains no descriptors.
key - descriptor key
nullpublic boolean isSingleValueDescriptor(String key)
false since this repository contains no descriptors.
key - descriptor key
falsepublic String[] getDescriptorKeys()
public Session login(Credentials credentials,
String workspace)
throws NoSuchWorkspaceException
NoSuchWorkspaceException - always thrown
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||