public class ContentStoreManagerImpl extends Object implements ContentStoreManager, org.duracloud.common.model.Securable
| Constructor and Description |
|---|
ContentStoreManagerImpl(String host,
String port)
Constructor for ContentStoreManagerImpl.
|
ContentStoreManagerImpl(String host,
String port,
String context)
Constructor for ContentStoreManagerImpl.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
getBaseURL() |
ContentStore |
getContentStore(String storeID)
getContentStore
|
Map<String,ContentStore> |
getContentStores()
getContentStores
|
ContentStore |
getPrimaryContentStore()
getPrimaryContentStore
|
ContentStore |
getPrimaryContentStoreAsAnonymous()
Provides access to the primary content store without requiring login().
|
protected org.duracloud.common.web.RestHttpHelper |
getRestHelper() |
void |
login(org.duracloud.common.model.Credential appCred) |
void |
logout() |
protected ContentStore |
newContentStoreImpl(org.duracloud.storage.domain.StorageAccount acct) |
void |
reinitialize(String host,
String port,
String context)
reconfigure
|
protected void |
setRestHelper(org.duracloud.common.web.RestHttpHelper restHelper) |
public ContentStoreManagerImpl(String host, String port)
Constructor for ContentStoreManagerImpl.
public ContentStoreManagerImpl(String host, String port, String context)
Constructor for ContentStoreManagerImpl.
host - the host name on which DuraStore can be accessedport - the port on which DuraStore can be accessedcontext - the application context by which DuraStore can be accessedpublic void reinitialize(String host, String port, String context) throws ContentStoreException
ContentStoreManagerreconfigure
reinitialize in interface ContentStoreManagerhost - of durastoreport - of durastorecontext - of durastoreContentStoreExceptionpublic Map<String,ContentStore> getContentStores() throws ContentStoreException
getContentStores
getContentStores in interface ContentStoreManagerContentStoreException - if the content store list cannot be retrievedpublic ContentStore getContentStore(String storeID) throws ContentStoreException
getContentStore
getContentStore in interface ContentStoreManagerstoreID - the ID of a particular content storeContentStoreException - if the content store cannot be retrievedpublic ContentStore getPrimaryContentStore() throws ContentStoreException
getPrimaryContentStore
getPrimaryContentStore in interface ContentStoreManagerContentStoreExceptionpublic ContentStore getPrimaryContentStoreAsAnonymous() throws ContentStoreException
getPrimaryContentStoreAsAnonymous
getPrimaryContentStoreAsAnonymous in interface ContentStoreManagerContentStoreExceptionpublic void login(org.duracloud.common.model.Credential appCred)
login in interface org.duracloud.common.model.Securablepublic void logout()
logout in interface org.duracloud.common.model.Securableprotected ContentStore newContentStoreImpl(org.duracloud.storage.domain.StorageAccount acct)
protected String getBaseURL()
protected org.duracloud.common.web.RestHttpHelper getRestHelper()
protected void setRestHelper(org.duracloud.common.web.RestHttpHelper restHelper)
Copyright © 2009-2012 DuraSpace. All Rights Reserved.