nl.surfnet.coin.csa.service.impl
Class ServiceRegistryProviderService

java.lang.Object
  extended by nl.surfnet.coin.csa.service.impl.ServiceRegistryProviderService
All Implemented Interfaces:
IdentityProviderService, ServiceProviderService

public class ServiceRegistryProviderService
extends Object
implements ServiceProviderService, IdentityProviderService


Constructor Summary
ServiceRegistryProviderService()
           
 
Method Summary
static IdentityProvider buildIdentityProviderByMetadata(nl.surfnet.coin.janus.domain.EntityMetadata metadata)
          Create a IdentityProvider and inflate it with the given metadata attributes.
 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)
          Get a list of all SP identifiers linked to the Idp
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceRegistryProviderService

public ServiceRegistryProviderService()
Method Detail

getAllServiceProviders

public List<ServiceProvider> getAllServiceProviders(String idpId)
Description copied from interface: ServiceProviderService
Get a list of all available Service Providers for the given idpId.

Specified by:
getAllServiceProviders in interface ServiceProviderService
Parameters:
idpId - the IDP entity ID to filter on
Returns:
list of ServiceProvider

getAllServiceProviders

public List<ServiceProvider> getAllServiceProviders()
Description copied from interface: ServiceProviderService
Get a list of all available Service Providers (IDP independent).

Specified by:
getAllServiceProviders in interface ServiceProviderService
Returns:
list of ServiceProvider

getLinkedServiceProviderIDs

public List<String> getLinkedServiceProviderIDs(String idpId)
Description copied from interface: IdentityProviderService
Get a list of all SP identifiers linked to the Idp

Specified by:
getLinkedServiceProviderIDs in interface IdentityProviderService
Returns:
List<String>

getServiceProvider

public ServiceProvider getServiceProvider(String spEntityId,
                                          String idpEntityId)
Description copied from interface: ServiceProviderService
Get a ServiceProvider by its entity ID.

Specified by:
getServiceProvider in interface ServiceProviderService
Parameters:
spEntityId - the entity id of the ServiceProvider
idpEntityId - the entity id of the Identity Provider.
Returns:
the ServiceProvider object.

getServiceProvider

public ServiceProvider getServiceProvider(String spEntityId)
Description copied from interface: ServiceProviderService
Get a ServiceProvider by its entity ID, without a idpEntityId

Specified by:
getServiceProvider in interface ServiceProviderService
Parameters:
spEntityId - the entity id of the ServiceProvider
Returns:
the ServiceProvider object.

buildServiceProviderByMetadata

public ServiceProvider buildServiceProviderByMetadata(nl.surfnet.coin.janus.domain.EntityMetadata metadata)
Create a ServiceProvider and inflate it with the given metadata attributes.

Parameters:
metadata - Janus metadata
Returns:
ServiceProvider

buildIdentityProviderByMetadata

public static IdentityProvider buildIdentityProviderByMetadata(nl.surfnet.coin.janus.domain.EntityMetadata metadata)
Create a IdentityProvider and inflate it with the given metadata attributes.

Parameters:
metadata - Janus metadata
Returns:
IdentityProvider

contactPersonTypeByJanusContactType

public static ContactPersonType contactPersonTypeByJanusContactType(nl.surfnet.coin.janus.domain.Contact.Type contactType)
Convert a Janus contact type to a ServiceProvider's ContactPersonType.

Parameters:
contactType - the Janus type
Returns:
the ContactPersonType
Throws:
IllegalArgumentException - in case no match can be made.

getIdentityProvider

public IdentityProvider getIdentityProvider(String idpEntityId)
Description copied from interface: IdentityProviderService
Get an identity provider by its id.

Specified by:
getIdentityProvider in interface IdentityProviderService
Parameters:
idpEntityId - the id.
Returns:
IdentityProvider

getInstituteIdentityProviders

public List<IdentityProvider> getInstituteIdentityProviders(String instituteId)
Description copied from interface: IdentityProviderService
Get a list of all idps that have the same instituteId as the given one.

Specified by:
getInstituteIdentityProviders in interface IdentityProviderService
Parameters:
instituteId - the instituteId
Returns:
List<IdentityProvider>

getAllIdentityProviders

public List<IdentityProvider> getAllIdentityProviders()
Description copied from interface: IdentityProviderService
Get a list of all idps

Specified by:
getAllIdentityProviders in interface IdentityProviderService
Returns:
List<IdentityProvider>


Copyright © 2013 SURFnet bv, The Netherlands. All Rights Reserved.