Search in sources :

Example 1 with ProcessCreateItemImpl

use of org.codice.ddf.catalog.async.data.impl.ProcessCreateItemImpl in project ddf by codice.

the class ProcessingPostIngestPlugin method createCreateRequest.

private ProcessRequest<ProcessCreateItem> createCreateRequest(CreateResponse createResponse) {
    List<ProcessCreateItem> processCreateItems;
    processCreateItems = createResponse.getCreatedMetacards().stream().map(metacard -> new ProcessCreateItemImpl(getProcessResource(metacard, getSubject(createResponse)), metacard, false)).collect(Collectors.toList());
    return new ProcessRequestImpl(processCreateItems, putPostProcessCompleteFlagAndGet(createResponse.getProperties()));
}
Also used : ProcessRequestImpl(org.codice.ddf.catalog.async.data.impl.ProcessRequestImpl) ProcessCreateItem(org.codice.ddf.catalog.async.data.api.internal.ProcessCreateItem) ProcessCreateItemImpl(org.codice.ddf.catalog.async.data.impl.ProcessCreateItemImpl)

Aggregations

ProcessCreateItem (org.codice.ddf.catalog.async.data.api.internal.ProcessCreateItem)1 ProcessCreateItemImpl (org.codice.ddf.catalog.async.data.impl.ProcessCreateItemImpl)1 ProcessRequestImpl (org.codice.ddf.catalog.async.data.impl.ProcessRequestImpl)1