Class ObjectReferentialRepository
java.lang.Object
fr.gouv.vitam.storage.offers.tape.cas.ObjectReferentialRepository
-
Constructor Summary
ConstructorsConstructorDescriptionObjectReferentialRepository
(com.mongodb.client.MongoCollection<org.bson.Document> collection) -
Method Summary
Modifier and TypeMethodDescriptionboolean
delete
(TapeLibraryObjectReferentialId tapeLibraryObjectReferentialId) void
insertOrUpdate
(TapeObjectReferentialEntity tapeObjectReferentialEntity) listContainerObjectEntries
(String containerName) selectArchiveIdsByObjectIds
(Iterator<TapeLibraryObjectReferentialId> objectIdIterator) void
updateStorageLocation
(String containerName, String objectName, String storageId, TapeLibraryTarObjectStorageLocation tapeLibraryTarStorageLocation)
-
Constructor Details
-
ObjectReferentialRepository
public ObjectReferentialRepository(com.mongodb.client.MongoCollection<org.bson.Document> collection)
-
-
Method Details
-
insertOrUpdate
public void insertOrUpdate(TapeObjectReferentialEntity tapeObjectReferentialEntity) throws ObjectReferentialException - Throws:
ObjectReferentialException
-
find
public Optional<TapeObjectReferentialEntity> find(String containerName, String objectName) throws ObjectReferentialException - Throws:
ObjectReferentialException
-
bulkFind
public List<TapeObjectReferentialEntity> bulkFind(String containerName, Set<String> objectNames) throws ObjectReferentialException - Throws:
ObjectReferentialException
-
updateStorageLocation
public void updateStorageLocation(String containerName, String objectName, String storageId, TapeLibraryTarObjectStorageLocation tapeLibraryTarStorageLocation) throws ObjectReferentialException - Throws:
ObjectReferentialException
-
delete
public boolean delete(TapeLibraryObjectReferentialId tapeLibraryObjectReferentialId) throws ObjectReferentialException - Throws:
ObjectReferentialException
-
selectArchiveIdsByObjectIds
public Set<String> selectArchiveIdsByObjectIds(Iterator<TapeLibraryObjectReferentialId> objectIdIterator) throws ObjectReferentialException - Throws:
ObjectReferentialException
-
listContainerObjectEntries
public CloseableIterator<ObjectEntry> listContainerObjectEntries(String containerName) throws ObjectReferentialException - Throws:
ObjectReferentialException
-