|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnl.surfnet.coin.selfservice.service.impl.ServiceRegistryProviderService
public class ServiceRegistryProviderService
| Constructor Summary | |
|---|---|
ServiceRegistryProviderService()
|
|
| Method Summary | |
|---|---|
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<ServiceProvider> |
getAllServiceProviders(String idpId)
Get a list of all available Service Providers for the given idpId. |
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,
String idpEntityId)
Get a ServiceProvider by its entity ID. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServiceRegistryProviderService()
| Method Detail |
|---|
@Cacheable(value="sps-janus") public List<ServiceProvider> getAllServiceProviders(String idpId)
ServiceProviderService
getAllServiceProviders in interface ServiceProviderServiceidpId - the IDP entity ID to filter on
ServiceProviderpublic List<ServiceProvider> getLinkedServiceProviders(String idpId)
getLinkedServiceProviders in interface ServiceProviderServiceidpId - the entity id of the IdentityProvider
ServiceProvider's@Cacheable(value="sps-janus") public List<String> getLinkedServiceProviderIDs(String idpId)
@Cacheable(value="sps-janus")
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.public static ServiceProvider buildServiceProviderByMetadata(nl.surfnet.coin.janus.domain.EntityMetadata metadata)
metadata - Janus metadata
ServiceProviderpublic static ContactPersonType contactPersonTypeByJanusContactType(nl.surfnet.coin.janus.domain.Contact.Type contactType)
contactType - the Janus type
ContactPersonType
IllegalArgumentException - in case no match can be made.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||