public interface Repository extends ConnectionFactory, RepositoryManagement
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the repository and release all resources.
|
Session |
getConnection()
Gets a new connection by logging in to the repository with default
credentials.
|
Session |
getConnection(ConnectionSpec connectionSpec)
Gets a new connection by logging in to the repository with given
connection information (credentials).
|
getMetaData, getRecordFactory
setReference
getReference
activateServer, cleanupDeletedDocuments, clearCaches, deactivateServer, getActiveSessionsCount, getBinaryGarbageCollector, getCachePristineSize, getCacheSelectionSize, getCacheSize, getClientInfos, getName, getServerURL, isServerActivated, markReferencedBinaries, processClusterInvalidationsNext
Session getConnection() throws StorageException
getConnection
in interface ConnectionFactory
StorageException
Session getConnection(ConnectionSpec connectionSpec) throws StorageException
getConnection
in interface ConnectionFactory
connectionSpec
- the parameters to use to connnectStorageException
void close() throws StorageException
StorageException
Copyright © 2013 Nuxeo SA. All Rights Reserved.