org.duracloud.client.impl
Class CachingContentStoreImpl

java.lang.Object
  extended by org.duracloud.client.ContentStoreImpl
      extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.duracloud.client.ContentStore
ContentStore.AccessType
 
Field Summary
 
Fields inherited from interface org.duracloud.client.ContentStore
CONTENT_CHECKSUM, CONTENT_MIMETYPE, CONTENT_MODIFIED, CONTENT_SIZE, SPACE_ACCESS, SPACE_COUNT, SPACE_CREATED, SPACE_SIZE
 
Constructor Summary
CachingContentStoreImpl(String baseURL, StorageProviderType type, String storeId, RestHttpHelper restHelper)
           
 
Method Summary
 List<String> getSpaces()
          Provides a listing of all spaces IDs.
 
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
 

Constructor Detail

CachingContentStoreImpl

public CachingContentStoreImpl(String baseURL,
                               StorageProviderType type,
                               String storeId,
                               RestHttpHelper restHelper)
Method Detail

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.