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
ObjectReferentialException
public Optional<TapeObjectReferentialEntity> find(String containerName, String objectName) throws ObjectReferentialException
ObjectReferentialException
public List<TapeObjectReferentialEntity> bulkFind(String containerName, Set<String> objectNames) throws ObjectReferentialException
ObjectReferentialException
public void updateStorageLocation(String containerName, String objectName, String storageId, TapeLibraryTarObjectStorageLocation tapeLibraryTarStorageLocation) throws ObjectReferentialException
ObjectReferentialException
public boolean delete(TapeLibraryObjectReferentialId tapeLibraryObjectReferentialId) throws ObjectReferentialException
ObjectReferentialException
Copyright © 2019 Vitam. All rights reserved.