String compositeComponentLink = retrieveLink(state); if (compositeComponentLink == null) { return; } else if (op.getAction() == Action.DELETE) { ResourceState state = service.getState(op); String compositeComponentLink = retrieveLink(state); CompositeComponentNotifier.notifyCompositionComponent(service, state, compositeComponentLink, op.getAction()); ResourceState state = service.getState(op); ResourceState put = extractState(op); String compositeComponentLink = retrieveLink(state); String putComponentLink = retrieveLink(put); ResourceState state = service.getState(op); String compositeComponentLink = retrieveLink(state); String patchComponentLink = retrieveLink(patch); o.complete();
public static DeferredResult<Void> handleFactoryPost(Service service, Operation op) { if (op.getAction() == Action.POST) { op.nestCompletion((o, e) -> { if (e != null) { op.fail(e); return; } o.complete(); if (!o.hasBody()) { return; } ResourceState state = extractState(o); String compositeComponentLink = retrieveLink(state); if (compositeComponentLink == null) { return; } CompositeComponentNotifier.notifyCompositionComponent(service, state, compositeComponentLink, op.getAction()); }); } return null; }