use of org.folio.rest.core.models.RequestEntry in project mod-orders by folio-org.
the class RolloverRetrieveService method getRolloversProgress.
public CompletableFuture<List<LedgerFiscalYearRolloverProgress>> getRolloversProgress(String rolloverId, RequestContext requestContext) {
String query = "ledgerRolloverId==" + rolloverId;
RequestEntry requestEntry = new RequestEntry(LEDGER_ROLLOVERS_PROGRESS_ENDPOINT).withQuery(query).withOffset(0).withLimit(1);
return restClient.get(requestEntry, requestContext, LedgerFiscalYearRolloverProgressCollection.class).thenApply(LedgerFiscalYearRolloverProgressCollection::getLedgerFiscalYearRolloverProgresses);
}
use of org.folio.rest.core.models.RequestEntry in project mod-orders by folio-org.
the class RolloverRetrieveService method getLedgerFyRollovers.
public CompletableFuture<LedgerFiscalYearRolloverCollection> getLedgerFyRollovers(String fyId, String ledgerId, RequestContext requestContext) {
String query = "toFiscalYearId==" + fyId + AND + "ledgerId==" + ledgerId;
RequestEntry requestEntry = new RequestEntry(LEDGER_ROLLOVERS_ENDPOINT).withQuery(query).withOffset(0).withLimit(1);
return restClient.get(requestEntry, requestContext, LedgerFiscalYearRolloverCollection.class);
}
use of org.folio.rest.core.models.RequestEntry in project mod-orders by folio-org.
the class InvoiceService method getInvoicesChunkByInvoiceIds.
private CompletableFuture<InvoiceCollection> getInvoicesChunkByInvoiceIds(Collection<String> invoiceIds, RequestContext requestContext) {
String query = convertIdsToCqlQuery(invoiceIds);
RequestEntry requestEntry = new RequestEntry(INVOICE_ENDPOINT).withQuery(query).withOffset(0).withLimit(Integer.MAX_VALUE);
return restClient.get(requestEntry, requestContext, InvoiceCollection.class);
}
use of org.folio.rest.core.models.RequestEntry in project mod-orders by folio-org.
the class PurchaseOrderLineService method getOrderLinesChunk.
private CompletableFuture<List<PoLine>> getOrderLinesChunk(List<String> orderLineIds, RequestContext requestContext) {
String query = convertIdsToCqlQuery(orderLineIds);
RequestEntry requestEntry = new RequestEntry(ENDPOINT).withQuery(query).withOffset(0).withLimit(MAX_IDS_FOR_GET_RQ);
return restClient.get(requestEntry, requestContext, PoLineCollection.class).thenApply(PoLineCollection::getPoLines);
}
use of org.folio.rest.core.models.RequestEntry in project mod-orders by folio-org.
the class PurchaseOrderStorageService method getOrdersChunk.
private CompletableFuture<List<PurchaseOrder>> getOrdersChunk(List<String> orderIds, RequestContext requestContext) {
String query = convertIdsToCqlQuery(orderIds);
RequestEntry requestEntry = new RequestEntry(ENDPOINT).withQuery(query).withOffset(0).withLimit(MAX_IDS_FOR_GET_RQ);
return restClient.get(requestEntry, requestContext, PurchaseOrderCollection.class).thenApply(PurchaseOrderCollection::getPurchaseOrders);
}
Aggregations