/** * Returns the list of {@link ParameterValue} with given node and project. * * @param node * The node identifier subscribed. * @param project * Project identifier * @param parameter * The id of the parameter. * @param criteria * the optional criteria used to check name (CN). * @return The list of object containing for each entry the {@link Subscription} and its associated * {@link ParameterValue} */ @GET @Path("{project}/{parameter}/{node}/{criteria}") public Collection<ParameterValueVo> findAll(@PathParam("project") final int project, @PathParam("parameter") final String parameter, @PathParam("node") final String node, @PathParam("criteria") final String criteria) { subscriptionResource.checkVisibleProject(project); return repository.findAll(node, parameter, project, criteria).stream() .map(this::toVo).collect(Collectors.toList()); } }
final Project project = checkVisibleProject(vo.getProject()); checkManagedProject(vo.getProject()); final Node node = checkManagedNodeForSubscription(vo.getNode());