@Override
    public List<ApiSummaryBean> listApis(String organizationId) throws OrganizationNotFoundException {
        if (securityContext.hasAllPermissions(Set.of(PermissionType.orgView, PermissionType.apiView), organizationId)) {
            return apiService.listApis(organizationId);
        } else {
            return apiService.listApis(organizationId)
                    .stream()
                    .filter(api -> securityContext.isDiscoverable(API, organizationId, api.getId()))
                    .collect(Collectors.toList());
        }
    }
REST layer for Organization

TODO(msavy): split this into multiple interfaces & impls (ApiResource, ClientAppResource, etc).

@author eric.wittmann@redhat.com
@author marc@blackparrotlabs.io
manager/api/rest-impl/src/main/java/io/apiman/manager/api/rest/impl/OrganizationResourceImpl.java