public class ObjectReferentialRepository extends Object
| Constructor and Description |
|---|
ObjectReferentialRepository(com.mongodb.client.MongoCollection<org.bson.Document> collection) |
| Modifier and Type | Method and Description |
|---|---|
List<TapeObjectReferentialEntity> |
bulkFind(String containerName,
Set<String> objectNames) |
boolean |
delete(TapeLibraryObjectReferentialId tapeLibraryObjectReferentialId) |
Optional<TapeObjectReferentialEntity> |
find(String containerName,
String objectName) |
void |
insertOrUpdate(TapeObjectReferentialEntity tapeObjectReferentialEntity) |
void |
updateStorageLocation(String containerName,
String objectName,
String storageId,
TapeLibraryTarObjectStorageLocation tapeLibraryTarStorageLocation) |
public ObjectReferentialRepository(com.mongodb.client.MongoCollection<org.bson.Document> collection)
public void insertOrUpdate(TapeObjectReferentialEntity tapeObjectReferentialEntity) throws ObjectReferentialException
ObjectReferentialExceptionpublic Optional<TapeObjectReferentialEntity> find(String containerName, String objectName) throws ObjectReferentialException
ObjectReferentialExceptionpublic List<TapeObjectReferentialEntity> bulkFind(String containerName, Set<String> objectNames) throws ObjectReferentialException
ObjectReferentialExceptionpublic void updateStorageLocation(String containerName, String objectName, String storageId, TapeLibraryTarObjectStorageLocation tapeLibraryTarStorageLocation) throws ObjectReferentialException
ObjectReferentialExceptionpublic boolean delete(TapeLibraryObjectReferentialId tapeLibraryObjectReferentialId) throws ObjectReferentialException
ObjectReferentialExceptionCopyright © 2019 Vitam. All rights reserved.