public class ClientRepository
extends java.lang.Object
RemoteRepository
interface. This class makes a remote repository locally available using
the JCR Repository interface.javax.jcr.Repository,
RemoteRepository| Constructor and Description |
|---|
ClientRepository(RemoteRepository remote,
LocalAdapterFactory factory)
Creates a client adapter for the given remote repository.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDescriptor(java.lang.String name) |
java.lang.String[] |
getDescriptorKeys() |
Value |
getDescriptorValue(java.lang.String key) |
Value[] |
getDescriptorValues(java.lang.String key) |
boolean |
isSingleValueDescriptor(java.lang.String key) |
boolean |
isStandardDescriptor(java.lang.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,
java.lang.String workspace) |
Session |
login(java.lang.String workspace)
Calls
Repository#login(Credentials, String) with
null credentials and the given workspace name. |
public ClientRepository(RemoteRepository remote, LocalAdapterFactory factory)
remote - remote repositoryfactory - local adapter factorypublic java.lang.String getDescriptor(java.lang.String name)
public Value getDescriptorValue(java.lang.String key)
public Value[] getDescriptorValues(java.lang.String key)
public java.lang.String[] getDescriptorKeys()
public boolean isSingleValueDescriptor(java.lang.String key)
public Session login(Credentials credentials,
java.lang.String workspace)
throws RepositoryException
RepositoryExceptionpublic boolean isStandardDescriptor(java.lang.String key)
key - descriptor keytrue if the key identifies a standard descriptor,
false otherwisepublic Session login()
throws RepositoryException
Repository#login(Credentials, String) with
null arguments.RepositoryException - if an error occurspublic Session login(Credentials credentials)
throws RepositoryException
Repository#login(Credentials, String) with
the given credentials and a null workspace name.credentials - login credentialsRepositoryException - if an error occurspublic Session login(java.lang.String workspace)
throws RepositoryException
Repository#login(Credentials, String) with
null credentials and the given workspace name.workspace - workspace nameRepositoryException - if an error occurs"Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"