public class JpaManifestStore extends Object implements ManifestStore
| Constructor and Description |
|---|
JpaManifestStore(JpaManifestItemRepo manifestItemRepo) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addUpdate(String account,
String storeId,
String spaceId,
String contentId,
String contentChecksum,
String contentMimetype,
String contentSize,
Date eventTimestamp) |
void |
delete(String account,
String storeId,
String spaceId) |
boolean |
flagAsDeleted(String account,
String storeId,
String spaceId,
String contentId,
Date eventTimestamp) |
ManifestItem |
getItem(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 results
|
Long |
purgeDeletedItemsBefore(Date expiration) |
void |
updateMissingFromStorageProviderFlag(String account,
String storeId,
String spaceId,
String contentId,
boolean flag) |
@Autowired public JpaManifestStore(JpaManifestItemRepo manifestItemRepo)
@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
addUpdate in interface ManifestStoreManifestItemWriteException@Transactional(value="millJpaRepoTransactionManager",
propagation=REQUIRES_NEW)
public boolean flagAsDeleted(String account,
String storeId,
String spaceId,
String contentId,
Date eventTimestamp)
throws ManifestItemWriteException
flagAsDeleted in interface ManifestStoreManifestItemWriteExceptionpublic Iterator<ManifestItem> getItems(String account, String storeId, String spaceId)
getItems in interface ManifestStorepublic Iterator<ManifestItem> getItems(String account, String storeId, String spaceId, boolean ordered)
ManifestStoregetItems in interface ManifestStorepublic ManifestItem getItem(String account, String storeId, String spaceId, String contentId) throws NotFoundException
getItem in interface ManifestStoreNotFoundException@Transactional(value="millJpaRepoTransactionManager",
propagation=REQUIRES_NEW)
public Long purgeDeletedItemsBefore(Date expiration)
purgeDeletedItemsBefore in interface ManifestStore@Transactional(value="millJpaRepoTransactionManager",
propagation=REQUIRES_NEW)
public void updateMissingFromStorageProviderFlag(String account,
String storeId,
String spaceId,
String contentId,
boolean flag)
throws ManifestItemWriteException
updateMissingFromStorageProviderFlag in interface ManifestStoreManifestItemWriteException@Transactional(value="millJpaRepoTransactionManager",
propagation=REQUIRES_NEW)
public void delete(String account,
String storeId,
String spaceId)
throws ManifestItemWriteException
delete in interface ManifestStoreManifestItemWriteExceptionCopyright © 2015–2016 DuraSpace. All rights reserved.