.setProjectKey(request.param(PARAM_PROJECT_KEY))
.setPage(request.mandatoryParamAsInt(Param.PAGE))
.setPageSize(request.mandatoryParamAsInt(Param.PAGE_SIZE))
.setQuery(request.param(Param.TEXT_QUERY));
}
<BUG>private void checkRequestAndPermissions(Request wsRequest) {

Optional<WsProjectRef> project = WsProjectRef.newOptionalWsProjectRef(wsRequest);
boolean hasProject = project.isPresent();</BUG>
boolean hasProjectUuid = hasProject && project.get().uuid() != null;

.setProjectKey(request.param(PARAM_PROJECT_KEY))
.setPage(request.mandatoryParamAsInt(Param.PAGE))
.setPageSize(request.mandatoryParamAsInt(Param.PAGE_SIZE))
.setQuery(request.param(Param.TEXT_QUERY));
}
private void checkRequestAndPermissions(SearchProjectPermissionsWsRequest request) {
Optional<WsProjectRef> project = newOptionalWsProjectRef(request.getProjectId(), request.getProjectKey());
boolean hasProject = project.isPresent();
boolean hasProjectUuid = hasProject && project.get().uuid() != null;
