Package org.duracloud.mill.manifest
Interface ManifestStore
- All Known Implementing Classes:
JpaManifestStore
public interface ManifestStore
- Author:
- Daniel Bernstein Date: Sep 2, 2014
-
Method Summary
Modifier and TypeMethodDescriptionbooleanaddUpdate(String account, String storeId, String spaceId, String contentId, String contentChecksum, String contentMimetype, String contentSize, Date timeStamp) voidbooleanflagAsDeleted(String account, String storeId, String spaceId, String contentId, Date eventTimestamp) Provides a method or ordering the resultsintpurgeDeletedItemsBefore(Date expiration) voidupdateMissingFromStorageProviderFlag(String account, String storeId, String spaceId, String contentId, boolean flag)
-
Method Details
-
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
- Parameters:
storeId-spaceId-- Returns:
-
getItems
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
- 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
- Parameters:
account-storeId-spaceId-- Throws:
ManifestItemWriteException
-