nl.surfnet.coin.selfservice.service.impl
Class FederationProviderService

java.lang.Object
  extended by nl.surfnet.coin.selfservice.service.impl.FederationProviderService
All Implemented Interfaces:
IdentityProviderService, ServiceProviderService, SpringSchedulerLoadConfigurationService

public class FederationProviderService
extends Object
implements ServiceProviderService, IdentityProviderService, SpringSchedulerLoadConfigurationService

Provider Service seeded with xml config from federation.


Constructor Summary
FederationProviderService(String configurationLocation)
          Constructor
 
Method Summary
 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<ServiceProvider> getLinkedServiceProviders(String idpId)
          Get a list of all Service Providers that are linked to the given idpIdp
 ServiceProvider getServiceProvider(String spEntityId, String idpEntityId)
          Get a ServiceProvider by its entity ID.
 void loadConfiguration()
          (Scheduled) method that loads configuration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FederationProviderService

public FederationProviderService(String configurationLocation)
Constructor

Parameters:
configurationLocation - Location for the SURFfederatie configuration.
Method Detail

loadConfiguration

public void loadConfiguration()
Description copied from interface: SpringSchedulerLoadConfigurationService
(Scheduled) method that loads configuration. Spring needs an interface for this.

Specified by:
loadConfiguration in interface SpringSchedulerLoadConfigurationService

getAllServiceProviders

@Cacheable(value="sps-federation")
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

getLinkedServiceProviders

public List<ServiceProvider> getLinkedServiceProviders(String idpId)
Description copied from interface: ServiceProviderService
Get a list of all Service Providers that are linked to the given idpIdp

Specified by:
getLinkedServiceProviders in interface ServiceProviderService
Parameters:
idpId - the entity id of the IdentityProvider
Returns:
list of ServiceProvider's

getServiceProvider

@Cacheable(value="sps-federation")
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.

getIdentityProvider

@Cacheable(value="sps-federation")
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

@Cacheable(value="sps-federation")
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>


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