public class DuraStoreRetrievalSource extends Object implements RetrievalSource
Modifier and Type | Field and Description |
---|---|
protected ContentStore |
contentStore |
protected Iterator<String> |
currentContentList |
protected String |
currentSpaceId |
protected Iterator<String> |
spaceIds |
Constructor and Description |
---|
DuraStoreRetrievalSource(ContentStore store,
List<String> spaces,
boolean allSpaces) |
Modifier and Type | Method and Description |
---|---|
protected Content |
doGetContent(ContentItem contentItem) |
ContentItem |
getNextContentItem()
Provides the next content item to be processed, cycles through all spaces
as necessary.
|
protected void |
getNextSpace() |
String |
getSourceChecksum(ContentItem contentItem)
Provides the checksum of the specified source file based on the file's
properties.
|
ContentStream |
getSourceContent(ContentItem contentItem)
Gets the actual content, including the stream and the checksum.
|
Map<String,String> |
getSourceProperties(ContentItem contentItem)
Retrieves the Duracloud properties for the specified ContentItem.
|
protected ContentStore contentStore
protected String currentSpaceId
public DuraStoreRetrievalSource(ContentStore store, List<String> spaces, boolean allSpaces)
public ContentItem getNextContentItem()
RetrievalSource
getNextContentItem
in interface RetrievalSource
protected void getNextSpace()
public Map<String,String> getSourceProperties(ContentItem contentItem)
RetrievalSource
getSourceProperties
in interface RetrievalSource
contentItem
- the file whose properties to retrievepublic String getSourceChecksum(ContentItem contentItem)
RetrievalSource
getSourceChecksum
in interface RetrievalSource
contentItem
- the file to considerpublic ContentStream getSourceContent(ContentItem contentItem)
RetrievalSource
getSourceContent
in interface RetrievalSource
contentItem
- the file to retrieveprotected Content doGetContent(ContentItem contentItem)
Copyright © 2009–2014 DuraSpace. All rights reserved.