logger.error("Problem retrieving ctx resource with id '"+id+"': "
+e.getMessage(), e);
return Response.status(Response.Status.NOT_FOUND).build();
}
ContextBrokerResourceImpl brokerResource = (ContextBrokerResourceImpl) resource;
final String creatorDn = brokerResource.getCreatorDN();
if (creatorDn == null || !creatorDn.equals(callerDn)) {
return Response.status(Response.Status.FORBIDDEN).build();
}
try {
final Blackboard blackboard = brokerResource.getBlackboard();
final CtxStatus status = blackboard.getStatus();
final List<NodeStatus> identities = blackboard.identities(true, null, null);
final ContextStatus responseStatus = new ContextStatus();
responseStatus.setAllOk(status.isAllOk());