org.duracloud.client
Interface ContentStoreManager

All Superinterfaces:
org.duracloud.common.model.Securable
All Known Implementing Classes:
CachingContentStoreManagerImpl, ContentStoreManagerImpl

public interface ContentStoreManager
extends org.duracloud.common.model.Securable

Provides facilities for connecting to a set of content stores

Author:
Bill Branan

Method Summary
 ContentStore getContentStore(java.lang.String storeID)
          getContentStore
 java.util.Map<java.lang.String,ContentStore> getContentStores()
          getContentStores
 ContentStore getPrimaryContentStore()
          getPrimaryContentStore
 ContentStore getPrimaryContentStoreAsAnonymous()
          Provides access to the primary content store without requiring login().
 void reinitialize(java.lang.String host, java.lang.String port, java.lang.String context)
          reconfigure
 
Methods inherited from interface org.duracloud.common.model.Securable
login, logout
 

Method Detail

getContentStores

java.util.Map<java.lang.String,ContentStore> getContentStores()
                                                              throws ContentStoreException

getContentStores

Returns:
a map of content stores to content store IDs
Throws:
ContentStoreException - if the content store list cannot be retrieved

getContentStore

ContentStore getContentStore(java.lang.String storeID)
                             throws ContentStoreException

getContentStore

Parameters:
storeID - the ID of a particular content store
Returns:
the ContentStore mapped to storeID
Throws:
ContentStoreException - if the content store cannot be retrieved

getPrimaryContentStore

ContentStore getPrimaryContentStore()
                                    throws ContentStoreException

getPrimaryContentStore

Returns:
the primary ContentStore
Throws:
if - the content store cannot be retrieved
ContentStoreException

getPrimaryContentStoreAsAnonymous

ContentStore getPrimaryContentStoreAsAnonymous()
                                               throws ContentStoreException
Provides access to the primary content store without requiring login(). Only certain ContentStore activities are permitted to anonymous users, primarily getting content from open spaces.

getPrimaryContentStoreAsAnonymous

Returns:
the primary ContentStore
Throws:
if - the content store cannot be retrieved
ContentStoreException

reinitialize

void reinitialize(java.lang.String host,
                  java.lang.String port,
                  java.lang.String context)
                  throws ContentStoreException

reconfigure

Parameters:
host - of durastore
port - of durastore
context - of durastore
Throws:
ContentStoreException


Copyright © 2009-2011 DuraSpace. All Rights Reserved.