|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xcmis.spi.CmisRegistry
public class CmisRegistry
xCMIS SPI entry point. Contains list of all known CMIS StorageProviders with convenience addStorage method for theirs initializing as well as the method getConnection for accessing data from concrete Storage (visible on top level as CMIS Repository)
| Field Summary | |
|---|---|
protected List<String> |
renditionProviders
|
protected Map<String,StorageProvider> |
storageProviders
|
| Constructor Summary | |
|---|---|
CmisRegistry()
Default constructor |
|
| Method Summary | |
|---|---|
void |
addRenditionProvider(String provider)
Adds an extra rendition provider . |
void |
addStorage(StorageProvider storageProvider)
Registers StorageProvider |
Connection |
getConnection(String storageId)
Create new connection. |
static CmisRegistry |
getInstance()
Singleton method for obtaining "current" CmisRegistry object stored in AtomicReference-ed CmisRegistryFactory. |
Set<RepositoryShortInfo> |
getStorageInfos()
Get id of all available storages. |
static void |
setFactory(CmisRegistryFactory factory)
Sets the "current" instance of CmisRegistryFactory |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected List<String> renditionProviders
protected Map<String,StorageProvider> storageProviders
| Constructor Detail |
|---|
public CmisRegistry()
| Method Detail |
|---|
public static CmisRegistry getInstance()
public static void setFactory(CmisRegistryFactory factory)
inst - public void addStorage(StorageProvider storageProvider)
storageProvider - to be registerdpublic Connection getConnection(String storageId)
storageId - storage id
InvalidArgumentException - if storage with specified id is not
registeredpublic Set<RepositoryShortInfo> getStorageInfos()
RepositoryShortInfo.
If no one storages configured than empty set should be returned (never null).public void addRenditionProvider(String provider)
provider - String FQN of provider to add.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||