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