public class ServiceRegistryProviderService extends Object implements ServiceProviderService, IdentityProviderService
| Constructor and Description |
|---|
ServiceRegistryProviderService() |
| Modifier and Type | Method and Description |
|---|---|
static IdentityProvider |
buildIdentityProviderByMetadata(nl.surfnet.coin.janus.domain.EntityMetadata metadata)
Create a IdentityProvider and inflate it with the given metadata
attributes.
|
static ServiceProvider |
buildServiceProviderByMetadata(nl.surfnet.coin.janus.domain.EntityMetadata metadata)
Create a ServiceProvider and inflate it with the given metadata attributes.
|
static ContactPersonType |
contactPersonTypeByJanusContactType(nl.surfnet.coin.janus.domain.Contact.Type contactType)
Convert a Janus contact type to a ServiceProvider's ContactPersonType.
|
List<IdentityProvider> |
getAllIdentityProviders()
Get a list of all idps
|
List<ServiceProvider> |
getAllServiceProviders()
Get a list of all available Service Providers (IDP independent).
|
List<ServiceProvider> |
getAllServiceProviders(String idpId)
Get a list of all available Service Providers for the given idpId.
|
IdentityProvider |
getIdentityProvider(String idpEntityId)
Get an identity provider by its id.
|
List<IdentityProvider> |
getInstituteIdentityProviders(String instituteId)
Get a list of all idps that have the same instituteId as the given one.
|
List<String> |
getLinkedServiceProviderIDs(String idpId) |
List<ServiceProvider> |
getLinkedServiceProviders(String idpId)
It's "cheaper" to get all SPs from ServiceRegistry and iterate over them
than to retrieve the list of all linked entity id's and then get their
individual metadata.
|
ServiceProvider |
getServiceProvider(String spEntityId)
Get a
ServiceProvider by its entity ID, without a idpEntityId |
ServiceProvider |
getServiceProvider(String spEntityId,
String idpEntityId)
Get a
ServiceProvider by its entity ID. |
@Cacheable(value="selfserviceDefault") public List<ServiceProvider> getAllServiceProviders(String idpId)
ServiceProviderServicegetAllServiceProviders in interface ServiceProviderServiceidpId - the IDP entity ID to filter onServiceProvider@Cacheable(value="selfserviceDefault") public List<ServiceProvider> getAllServiceProviders()
ServiceProviderServicegetAllServiceProviders in interface ServiceProviderServiceServiceProviderpublic List<ServiceProvider> getLinkedServiceProviders(String idpId)
getLinkedServiceProviders in interface ServiceProviderServiceidpId - the entity id of the IdentityProviderServiceProvider's@Cacheable(value="selfserviceDefault") public List<String> getLinkedServiceProviderIDs(String idpId)
@Cacheable(value="selfserviceDefault") public ServiceProvider getServiceProvider(String spEntityId, String idpEntityId)
ServiceProviderServiceServiceProvider by its entity ID.getServiceProvider in interface ServiceProviderServicespEntityId - the entity id of the ServiceProvideridpEntityId - the entity id of the Identity Provider.ServiceProvider object.@Cacheable(value="selfserviceDefault") public ServiceProvider getServiceProvider(String spEntityId)
ServiceProviderServiceServiceProvider by its entity ID, without a idpEntityIdgetServiceProvider in interface ServiceProviderServicespEntityId - the entity id of the ServiceProviderServiceProvider object.public static ServiceProvider buildServiceProviderByMetadata(nl.surfnet.coin.janus.domain.EntityMetadata metadata)
metadata - Janus metadataServiceProviderpublic static IdentityProvider buildIdentityProviderByMetadata(nl.surfnet.coin.janus.domain.EntityMetadata metadata)
metadata - Janus metadataIdentityProviderpublic static ContactPersonType contactPersonTypeByJanusContactType(nl.surfnet.coin.janus.domain.Contact.Type contactType)
contactType - the Janus typeContactPersonTypeIllegalArgumentException - in case no match can be made.@Cacheable(value="selfserviceDefault") public IdentityProvider getIdentityProvider(String idpEntityId)
IdentityProviderServicegetIdentityProvider in interface IdentityProviderServiceidpEntityId - the id.@Cacheable(value="selfserviceDefault") public List<IdentityProvider> getInstituteIdentityProviders(String instituteId)
IdentityProviderServicegetInstituteIdentityProviders in interface IdentityProviderServiceinstituteId - the instituteId@Cacheable(value="selfserviceDefault") public List<IdentityProvider> getAllIdentityProviders()
IdentityProviderServicegetAllIdentityProviders in interface IdentityProviderServiceCopyright © 2012-2013 SURFnet bv, The Netherlands. All Rights Reserved.