org.xcmis.spi
Class CmisRegistry
java.lang.Object
org.xcmis.spi.CmisRegistry
- Direct Known Subclasses:
- ExoContainerCmisRegistry
public class CmisRegistry
- extends Object
- Version:
- $Id:$
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
providers
protected List<String> providers
storageProviders
protected Map<String,StorageProvider> storageProviders
CmisRegistry
protected CmisRegistry()
getInstance
public static CmisRegistry getInstance()
setInstance
public static void setInstance(CmisRegistry inst)
addStorage
public final void addStorage(StorageProvider storageProvider)
getConnection
public final Connection getConnection(String storageId)
- Create new connection. Delegated to appropriate StorageProvider method
- Parameters:
storageId - storage id
- Returns:
- connection
- Throws:
InvalidArgumentException - if storage with specified id is not
registered
getStorageInfos
public final Set<RepositoryShortInfo> getStorageInfos()
- Get id of all available storages.
- Returns:
- storages iDs if no one storages configured than empty set returned
never null
addRenditionProvider
public void addRenditionProvider(String provider)
- Adds an extra rendition provider .
- Parameters:
provider - String FQN of provider to add.
Copyright © 2010 eXo Platform SAS. All Rights Reserved.