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
Methods inherited from class org.duracloud.client.ContentStoreImpl |
addContent, createSpace, deleteContent, deleteSpace, getBaseURL, getContent, getContentMetadata, getSpace, getSpaceAccess, getSpaceContents, getSpaceContents, getSpaceMetadata, getStorageProviderType, getStoreId, getSupportedTasks, performTask, setContentMetadata, setSpaceAccess, setSpaceMetadata, validateContentId, validateSpaceId |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CachingContentStoreImpl
public CachingContentStoreImpl(String baseURL,
StorageProviderType type,
String storeId,
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-2011 DuraSpace. All Rights Reserved.