Package org.duracloud.mill.manifest
Interface ManifestStore
-
- All Known Implementing Classes:
JpaManifestStore
public interface ManifestStore- Author:
- Daniel Bernstein Date: Sep 2, 2014
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanaddUpdate(String account, String storeId, String spaceId, String contentId, String contentChecksum, String contentMimetype, String contentSize, Date timeStamp)voiddelete(String account, String storeId, String spaceId)booleanflagAsDeleted(String account, String storeId, String spaceId, String contentId, Date eventTimestamp)ManifestItemgetItem(String account, String storeId, String spaceId, String contentId)Iterator<ManifestItem>getItems(String account, String storeId, String spaceId)Iterator<ManifestItem>getItems(String account, String storeId, String spaceId, boolean ordered)Provides a method or ordering the resultsintpurgeDeletedItemsBefore(Date expiration)voidupdateMissingFromStorageProviderFlag(String account, String storeId, String spaceId, String contentId, boolean flag)
-
-
-
Method Detail
-
addUpdate
boolean addUpdate(String account, String storeId, String spaceId, String contentId, String contentChecksum, String contentMimetype, String contentSize, Date timeStamp) throws ManifestItemWriteException
- Parameters:
account-storeId-spaceId-contentId-contentChecksum-contentSize-contentMimetype-timeStamp-- Returns:
- true if the store was updated; false if it was not (due to the update being out of order).
- Throws:
ManifestItemWriteException
-
getItems
Iterator<ManifestItem> getItems(String account, String storeId, String spaceId)
- Parameters:
storeId-spaceId-- Returns:
-
getItems
Iterator<ManifestItem> getItems(String account, String storeId, String spaceId, boolean ordered)
Provides a method or ordering the results- Parameters:
account-storeId-spaceId-ordered-- Returns:
-
getItem
ManifestItem getItem(String account, String storeId, String spaceId, String contentId) throws NotFoundException
- Parameters:
account-storeId-spaceId-contentId-- Returns:
- Throws:
NotFoundException
-
flagAsDeleted
boolean flagAsDeleted(String account, String storeId, String spaceId, String contentId, Date eventTimestamp) throws ManifestItemWriteException
- Parameters:
account-storeId-spaceId-contentId-eventTimestamp-- Returns:
- true if the store was updated; false if it was not (due to the update being out of order).
- Throws:
ManifestItemWriteException
-
purgeDeletedItemsBefore
int purgeDeletedItemsBefore(Date expiration)
- Parameters:
expiration-- Returns:
- Count of items deleted.
-
updateMissingFromStorageProviderFlag
void updateMissingFromStorageProviderFlag(String account, String storeId, String spaceId, String contentId, boolean flag) throws ManifestItemWriteException
- Parameters:
account-storeId-spaceId-contentId-flag-- Throws:
ManifestItemWriteException
-
delete
void delete(String account, String storeId, String spaceId) throws ManifestItemWriteException
- Parameters:
account-storeId-spaceId-- Throws:
ManifestItemWriteException
-
-