|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jackrabbit.rmi.client.ClientRepository
public class ClientRepository
Local adapter for the JCR-RMI
RemoteRepository
interface. This class makes a remote repository locally available using
the JCR Repository
interface.
Repository
,
RemoteRepository
Field Summary |
---|
Constructor Summary | |
---|---|
ClientRepository(RemoteRepository remote,
LocalAdapterFactory factory)
Creates a client adapter for the given remote repository. |
Method Summary | |
---|---|
String |
getDescriptor(String name)
|
String[] |
getDescriptorKeys()
|
Value |
getDescriptorValue(String key)
|
Value[] |
getDescriptorValues(String key)
|
boolean |
isSingleValueDescriptor(String key)
|
boolean |
isStandardDescriptor(String key)
Returns true if the given key identifies a standard descriptor. |
Session |
login()
Calls Repository.login(Credentials, String) with
null arguments. |
Session |
login(Credentials credentials)
Calls Repository.login(Credentials, String) with
the given credentials and a null workspace name. |
Session |
login(Credentials credentials,
String workspace)
|
Session |
login(String workspace)
Calls Repository.login(Credentials, String) with
null credentials and the given workspace name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClientRepository(RemoteRepository remote, LocalAdapterFactory factory)
remote
- remote repositoryfactory
- local adapter factoryMethod Detail |
---|
public String getDescriptor(String name)
getDescriptor
in interface Repository
public Value getDescriptorValue(String key)
getDescriptorValue
in interface Repository
public Value[] getDescriptorValues(String key)
getDescriptorValues
in interface Repository
public String[] getDescriptorKeys()
getDescriptorKeys
in interface Repository
public boolean isSingleValueDescriptor(String key)
isSingleValueDescriptor
in interface Repository
public Session login(Credentials credentials, String workspace) throws RepositoryException
login
in interface Repository
RepositoryException
public boolean isStandardDescriptor(String key)
isStandardDescriptor
in interface Repository
key
- descriptor key
true
if the key identifies a standard descriptor,
false
otherwisepublic Session login() throws RepositoryException
Repository.login(Credentials, String)
with
null
arguments.
login
in interface Repository
RepositoryException
- if an error occurspublic Session login(Credentials credentials) throws RepositoryException
Repository.login(Credentials, String)
with
the given credentials and a null
workspace name.
login
in interface Repository
credentials
- login credentials
RepositoryException
- if an error occurspublic Session login(String workspace) throws RepositoryException
Repository.login(Credentials, String)
with
null
credentials and the given workspace name.
login
in interface Repository
workspace
- workspace name
RepositoryException
- if an error occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |