@Override
    public List<PlanVersionSummaryBean> listPlanVersions(String organizationId, String planId)
        throws PlanNotFoundException, NotAuthorizedException {
        if (securityContext.hasPermission(PermissionType.planView, organizationId)) {
            return planService.listPlanVersions(organizationId, planId);
        } else {
            return planService.listPlanVersions(organizationId, planId).stream()
                    .filter(pvb -> securityContext.isDiscoverable(EntityType.PLAN, organizationId, planId, pvb.getVersion()))
                    .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