93949596979899100101
NetworkData data = networkService.findNetwork(getAuth(), id); if (data == null) { throw new WebApplicationException(Status.NOT_FOUND); } WrappedNetwork ret = new WrappedNetwork(); ret.network = toModel(data); return ret; }
110111112113114115116117118
NetworkData data = networkService.updateNetwork(getAuth(), id, b); if (data == null) { throw new WebApplicationException(Status.NOT_FOUND); } WrappedNetwork ret = new WrappedNetwork(); ret.network = toModel(data); return ret; }
138139140141142143144145146
NetworkData.Builder b = toBuilder(network); NetworkData data = networkService.createNetwork(getAuth(), b); WrappedNetwork ret = new WrappedNetwork(); ret.network = toModel(data); return ret; }