@Test public void testServiceProvidersByInstitutionId() { Set<EntityMetaData> surfnetSps = manage.serviceProvidersByInstitutionId("surfconext"); assertEquals(1, surfnetSps.size()); assertEquals(1, surfnetSps.stream().filter(sp -> sp.isPolicyEnforcementDecisionRequired()).count()); }
@Override public Set<EntityMetaData> serviceProvidersByInstitutionId(String institutionId) { if (StringUtils.isEmpty(institutionId)) { return Collections.emptySet(); } return serviceProviders().stream().filter(sp -> institutionId.equals(sp.getInstitutionId())).collect(toSet()); }
ClassPathResourceManage implements Manage { @Override public Set<EntityMetaData> serviceProvidersByInstitutionId(String institutionId) { if (StringUtils.isEmpty(institutionId)) { return Collections.emptySet(); } return serviceProviders().stream().filter(sp -> institutionId.equals(sp.getInstitutionId())).collect(toSet()); } }
ClassPathResourceManage implements Manage { @Override public Set<EntityMetaData> serviceProvidersByInstitutionId(String institutionId) { if (StringUtils.isEmpty(institutionId)) { return Collections.emptySet(); } return serviceProviders().stream().filter(sp -> institutionId.equals(sp.getInstitutionId())).collect(toSet()); } ClassPathResourceManage(); }
ClassPathResourceManage implements Manage { @Override public Set<EntityMetaData> serviceProvidersByInstitutionId(String institutionId) { if (StringUtils.isEmpty(institutionId)) { return Collections.emptySet(); } return serviceProviders().stream().filter(sp -> institutionId.equals(sp.getInstitutionId())).collect(toSet()); } ClassPathResourceManage(); @Override List<EntityMetaData> serviceProviders(); @Override List<EntityMetaData> identityProviders(); @Override Set<EntityMetaData> identityProvidersByAuthenticatingAuthority(String authenticatingAuthority); @Override Set<EntityMetaData> serviceProvidersByInstitutionId(String institutionId); @Override Optional<EntityMetaData> serviceProviderOptionalByEntityId(String entityId); @Override Optional<EntityMetaData> identityProviderOptionalByEntityId(String entityId); @Override Map<String, EntityMetaData> identityProvidersByEntityIds(Collection<String> entityIds); @Override Map<String, EntityMetaData> serviceProvidersByEntityIds(Collection<String> entityIds); @Override EntityMetaData serviceProviderByEntityId(String entityId); @Override EntityMetaData identityProviderByEntityId(String entityId); void allowAll(boolean allowAll); }
ClassPathResourceManage implements Manage { @Override public Set<EntityMetaData> serviceProvidersByInstitutionId(String institutionId) { if (StringUtils.isEmpty(institutionId)) { return Collections.emptySet(); } return serviceProviders().stream().filter(sp -> institutionId.equals(sp.getInstitutionId())).collect(toSet()); } ClassPathResourceManage(); @Override List<EntityMetaData> serviceProviders(); @Override List<EntityMetaData> identityProviders(); @Override Set<EntityMetaData> identityProvidersByAuthenticatingAuthority(String authenticatingAuthority); @Override Set<EntityMetaData> serviceProvidersByInstitutionId(String institutionId); @Override Optional<EntityMetaData> serviceProviderOptionalByEntityId(String entityId); @Override Optional<EntityMetaData> identityProviderOptionalByEntityId(String entityId); @Override Map<String, EntityMetaData> identityProvidersByEntityIds(Collection<String> entityIds); @Override Map<String, EntityMetaData> serviceProvidersByEntityIds(Collection<String> entityIds); @Override EntityMetaData serviceProviderByEntityId(String entityId); @Override EntityMetaData identityProviderByEntityId(String entityId); void allowAll(boolean allowAll);  }