public class JpaManifestStore extends Object implements ManifestStore
| Constructor and Description |
|---|
JpaManifestStore(JpaManifestItemRepo manifestItemRepo) |
| Modifier and Type | Method and Description |
|---|---|
void |
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) |
void |
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) |
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 void 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 void flagAsDeleted(String account,
String storeId,
String spaceId,
String contentId,
Date eventTimestamp)
throws ManifestItemWriteException
flagAsDeleted in interface ManifestStoreManifestItemWriteException@Transactional(readOnly=true,
value="millJpaRepoTransactionManager")
public Iterator<ManifestItem> getItems(String account,
String storeId,
String spaceId)
getItems in interface ManifestStorepublic ManifestItem getItem(String account, String storeId, String spaceId, String contentId) throws org.duracloud.error.NotFoundException
getItem in interface ManifestStoreorg.duracloud.error.NotFoundException@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 © 2009–2015 DuraSpace. All rights reserved.