nl.surfnet.coin.csa.dao.impl
Class LmngIdentifierDaoImpl

java.lang.Object
  extended by nl.surfnet.coin.csa.dao.impl.LmngIdentifierDaoImpl
All Implemented Interfaces:
LmngIdentifierDao

@Repository
public class LmngIdentifierDaoImpl
extends Object
implements LmngIdentifierDao

Implementation for the DAO that stores identifiers for identityproviders for both local and LMNG scope.


Constructor Summary
LmngIdentifierDaoImpl()
           
 
Method Summary
 String getLmngIdForIdentityProviderId(String identityProviderId)
          Method that returns a identifier for the IdP in LMNG belonging to the given IdP-Id
 String getLmngIdForServiceProviderId(String spId)
          Method that returns a identifier for the SP in LMNG belonging to the given SP-Id
 void saveOrUpdateLmngIdForIdentityProviderId(String idpId, String lmngId)
          Save or update an lmngId for the identityProvider with the given ID
 void saveOrUpdateLmngIdForServiceProviderId(String spId, String lmngId)
          Save or update an lmngId for the serviceprovider with the given ID
 void setDataSource(DataSource dataSource)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LmngIdentifierDaoImpl

public LmngIdentifierDaoImpl()
Method Detail

setDataSource

public void setDataSource(DataSource dataSource)

getLmngIdForIdentityProviderId

public String getLmngIdForIdentityProviderId(String identityProviderId)
Description copied from interface: LmngIdentifierDao
Method that returns a identifier for the IdP in LMNG belonging to the given IdP-Id

Specified by:
getLmngIdForIdentityProviderId in interface LmngIdentifierDao
Parameters:
identityProviderId - the identifier as used in this project for an IdP
Returns:
the identifier as used in LMNG for an IdP

getLmngIdForServiceProviderId

public String getLmngIdForServiceProviderId(String spId)
Description copied from interface: LmngIdentifierDao
Method that returns a identifier for the SP in LMNG belonging to the given SP-Id

Specified by:
getLmngIdForServiceProviderId in interface LmngIdentifierDao
Parameters:
spId - the identifier as used in this project for an SP
Returns:
the identifier as used in LMNG for an SP

saveOrUpdateLmngIdForServiceProviderId

public void saveOrUpdateLmngIdForServiceProviderId(String spId,
                                                   String lmngId)
Description copied from interface: LmngIdentifierDao
Save or update an lmngId for the serviceprovider with the given ID

Specified by:
saveOrUpdateLmngIdForServiceProviderId in interface LmngIdentifierDao
Parameters:
spId - the id of the serviceprovider
lmngId - the lmng corresponding identifier

saveOrUpdateLmngIdForIdentityProviderId

public void saveOrUpdateLmngIdForIdentityProviderId(String idpId,
                                                    String lmngId)
Description copied from interface: LmngIdentifierDao
Save or update an lmngId for the identityProvider with the given ID

Specified by:
saveOrUpdateLmngIdForIdentityProviderId in interface LmngIdentifierDao
Parameters:
idpId - the id of the identityProvider
lmngId - the lmng corresponding identifier


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