public class ClientRepository extends 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 |
|---|---|
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. |
public ClientRepository(RemoteRepository remote, LocalAdapterFactory factory)
remote - remote repositoryfactory - local adapter factorypublic Value getDescriptorValue(String key)
public Value[] getDescriptorValues(String key)
public String[] getDescriptorKeys()
public boolean isSingleValueDescriptor(String key)
public Session login(Credentials credentials,
String workspace)
throws RepositoryException
RepositoryExceptionpublic boolean isStandardDescriptor(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(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 - 2017 Adobe Systems Incorporated. All Rights Reserved"