|
||||||||||
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.ProxyRepository
public class ProxyRepository
Repository that proxies all method calls to another repository.
The other repository is accessed lazily using a
repository factory
.
Field Summary |
---|
Constructor Summary | |
---|---|
ProxyRepository(RepositoryFactory factory)
Creates a proxy for the repository (or repositories) accessible through the given factory. |
Method Summary | |
---|---|
String |
getDescriptor(String key)
Returns the descriptor with the given key from the proxied repository. |
String[] |
getDescriptorKeys()
Returns the descriptor keys of the proxied repository, or an empty array if the proxied repository can not be accessed. |
Session |
login(Credentials credentials,
String workspace)
Logs in to the proxied repository and returns the resulting session. |
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 ProxyRepository(RepositoryFactory factory)
factory
- repository factoryMethod Detail |
---|
public String[] getDescriptorKeys()
public String getDescriptor(String key)
null
if the descriptor does not exist or if the
proxied repository can not be accessed.
null
public Session login(Credentials credentials, String workspace) throws RepositoryException
Note that the Session.getRepository()
method of the resulting
session will return the proxied repository, not this repository proxy!
RepositoryException
- if the proxied repository can not be
accessed, or if the login in the proxied
repository fails
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |