Class AccessRequestReferentialRepository
java.lang.Object
fr.gouv.vitam.storage.offers.tape.cas.AccessRequestReferentialRepository
-
Constructor Summary
ConstructorDescriptionAccessRequestReferentialRepository
(com.mongodb.client.MongoCollection<org.bson.Document> collection) -
Method Summary
Modifier and TypeMethodDescriptionlong
long
long
boolean
deleteAccessRequestById
(String accessRequestId) excludeArchiveIdsStillRequiredByAccessRequests
(Set<String> archiveIdsToCheck) findByRequestId
(String requestId) findByRequestIds
(Set<String> requestIds) findByUnavailableArchiveId
(String archiveId) void
insert
(TapeAccessRequestReferentialEntity accessRequestReferentialEntity) boolean
updateAccessRequest
(TapeAccessRequestReferentialEntity updatedAccessRequestEntity, int expectedVersion)
-
Constructor Details
-
AccessRequestReferentialRepository
public AccessRequestReferentialRepository(com.mongodb.client.MongoCollection<org.bson.Document> collection)
-
-
Method Details
-
insert
public void insert(TapeAccessRequestReferentialEntity accessRequestReferentialEntity) throws AccessRequestReferentialException -
findByRequestId
public Optional<TapeAccessRequestReferentialEntity> findByRequestId(String requestId) throws AccessRequestReferentialException -
findByRequestIds
public List<TapeAccessRequestReferentialEntity> findByRequestIds(Set<String> requestIds) throws AccessRequestReferentialException -
countNonReadyAccessRequests
-
countReadyAccessRequests
-
countExpiredAccessRequests
-
findNonReadyAccessRequests
public List<TapeAccessRequestReferentialEntity> findNonReadyAccessRequests() throws AccessRequestReferentialException -
deleteAccessRequestById
public boolean deleteAccessRequestById(String accessRequestId) throws AccessRequestReferentialException -
cleanupAndGetExpiredAccessRequests
public List<TapeAccessRequestReferentialEntity> cleanupAndGetExpiredAccessRequests() throws AccessRequestReferentialException -
excludeArchiveIdsStillRequiredByAccessRequests
-
updateAccessRequest
public boolean updateAccessRequest(TapeAccessRequestReferentialEntity updatedAccessRequestEntity, int expectedVersion) throws AccessRequestReferentialException -
listObjectIdsForActiveAccessRequests
public CloseableIterator<TapeLibraryObjectReferentialId> listObjectIdsForActiveAccessRequests() throws AccessRequestReferentialException
-