org.duracloud.client.impl
Class CachingContentStoreImpl
java.lang.Object
org.duracloud.client.ContentStoreImpl
org.duracloud.client.impl.CachingContentStoreImpl
- All Implemented Interfaces:
- ContentStore
public class CachingContentStoreImpl
- extends ContentStoreImpl
This class retains the results of the initial call to:
getSpaces()
and returns this cached value on subsequent calls.
- Author:
- Andrew Woods
Date: Nov 30, 2010
Constructor Summary |
CachingContentStoreImpl(String baseURL,
org.duracloud.storage.domain.StorageProviderType type,
String storeId,
org.duracloud.common.web.RestHttpHelper restHelper)
|
Methods inherited from class org.duracloud.client.ContentStoreImpl |
addContent, copyContent, copyContent, createSpace, deleteContent, deleteSpace, getBaseURL, getContent, getContentProperties, getSpace, getSpaceACLs, getSpaceContents, getSpaceContents, getSpaceProperties, getStorageProviderType, getStoreId, getSupportedTasks, moveContent, moveContent, performTask, setContentProperties, setSpaceACLs, setSpaceProperties, validateContentId, validateSpaceId, validateStoreId |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CachingContentStoreImpl
public CachingContentStoreImpl(String baseURL,
org.duracloud.storage.domain.StorageProviderType type,
String storeId,
org.duracloud.common.web.RestHttpHelper restHelper)
getSpaces
public List<String> getSpaces()
throws ContentStoreException
- Description copied from class:
ContentStoreImpl
- Provides a listing of all spaces IDs.
- Specified by:
getSpaces
in interface ContentStore
- Overrides:
getSpaces
in class ContentStoreImpl
- Returns:
- Iterator listing spaceIds
- Throws:
ContentStoreException
- if an error occurs
Copyright © 2009-2012 DuraSpace. All Rights Reserved.