Package org.duracloud.mill.manifest.jpa
Class JpaManifestStore
java.lang.Object
org.duracloud.mill.manifest.jpa.JpaManifestStore
- All Implemented Interfaces:
ManifestStore
- Author:
- Daniel Bernstein
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddUpdate(String account, String storeId, String spaceId, String contentId, String contentChecksum, String contentMimetype, String contentSize, Date eventTimestamp) 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)
-
Constructor Details
-
JpaManifestStore
-
-
Method Details
-
addUpdate
@Transactional(value="millJpaRepoTransactionManager", propagation=REQUIRES_NEW) public boolean addUpdate(String account, String storeId, String spaceId, String contentId, String contentChecksum, String contentMimetype, String contentSize, Date eventTimestamp) throws ManifestItemWriteException - Specified by:
addUpdatein interfaceManifestStore- Returns:
- true if the store was updated; false if it was not (due to the update being out of order).
- Throws:
ManifestItemWriteException
-
flagAsDeleted
@Transactional(value="millJpaRepoTransactionManager", propagation=REQUIRES_NEW) public boolean flagAsDeleted(String account, String storeId, String spaceId, String contentId, Date eventTimestamp) throws ManifestItemWriteException - Specified by:
flagAsDeletedin interfaceManifestStore- Returns:
- true if the store was updated; false if it was not (due to the update being out of order).
- Throws:
ManifestItemWriteException
-
getItems
- Specified by:
getItemsin interfaceManifestStore- Returns:
-
getItems
public Iterator<ManifestItem> getItems(String account, String storeId, String spaceId, boolean ordered) Description copied from interface:ManifestStoreProvides a method or ordering the results- Specified by:
getItemsin interfaceManifestStore- Returns:
-
getItem
public ManifestItem getItem(String account, String storeId, String spaceId, String contentId) throws NotFoundException - Specified by:
getItemin interfaceManifestStore- Returns:
- Throws:
NotFoundException
-
purgeDeletedItemsBefore
@Transactional(value="millJpaRepoTransactionManager", propagation=REQUIRES_NEW) public int purgeDeletedItemsBefore(Date expiration) - Specified by:
purgeDeletedItemsBeforein interfaceManifestStore- Returns:
- Count of items deleted.
-
updateMissingFromStorageProviderFlag
@Transactional(value="millJpaRepoTransactionManager", propagation=REQUIRES_NEW) public void updateMissingFromStorageProviderFlag(String account, String storeId, String spaceId, String contentId, boolean flag) throws ManifestItemWriteException - Specified by:
updateMissingFromStorageProviderFlagin interfaceManifestStore- Throws:
ManifestItemWriteException
-
delete
@Transactional(value="millJpaRepoTransactionManager", propagation=REQUIRES_NEW) public void delete(String account, String storeId, String spaceId) throws ManifestItemWriteException - Specified by:
deletein interfaceManifestStore- Throws:
ManifestItemWriteException
-