Search in sources :

Example 1 with Nullable

use of com.sun.istack.Nullable in project ddf by codice.

the class RemoteDeleteOperations method performRemoteDelete.

@Nullable
public DeleteResponse performRemoteDelete(DeleteRequest deleteRequest, @Nullable DeleteResponse deleteResponse) {
    if (!opsCatStoreSupport.isCatalogStoreRequest(deleteRequest)) {
        return deleteResponse;
    }
    DeleteResponse remoteDeleteResponse = doRemoteDelete(deleteRequest);
    if (deleteResponse == null) {
        deleteResponse = remoteDeleteResponse;
        deleteResponse = injectAttributes(deleteResponse);
    } else {
        deleteResponse.getProperties().putAll(remoteDeleteResponse.getProperties());
        deleteResponse.getProcessingErrors().addAll(remoteDeleteResponse.getProcessingErrors());
    }
    return deleteResponse;
}
Also used : DeleteResponse(ddf.catalog.operation.DeleteResponse) Nullable(com.sun.istack.Nullable)

Aggregations

Nullable (com.sun.istack.Nullable)1 DeleteResponse (ddf.catalog.operation.DeleteResponse)1