public class LmngServiceImpl extends Object implements LmngService
| Constructor and Description |
|---|
LmngServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
List<Article> |
getArticlesForServiceProviders(List<String> serviceProvidersEntityIds)
Get articles for the given serviceProviders.
|
String |
getInstitutionName(String guid)
Get the name of the institution in LMNG belonging to given GUID
|
List<License> |
getLicensesForIdpAndSp(IdentityProvider identityProvider,
String articleIdentifier,
Date validOn)
Gets a list with Licenses for the given
identityProvider and services (lmngIdentifiers) which are valid on the given day
|
String |
getServiceName(String guid)
Get the name of the service/product in LMNG belonging to given GUID
|
boolean |
isActiveMode()
Is the LMNG service active? If not then no calls should be made and the
entire distribution channel runs without license / article information from
LMNG.
|
void |
setActiveMode(boolean activeMode) |
void |
setDebug(boolean debug) |
void |
setEndpoint(String endpoint) |
void |
setKeyStore(KeyStore keyStore) |
void |
setKeystorePassword(String keystorePassword) |
void |
setLmngIdentifierDao(LmngIdentifierDao lmngIdentifierDao) |
void |
setTrustStore(KeyStore trustStore) |
public List<License> getLicensesForIdpAndSp(IdentityProvider identityProvider, String articleIdentifier, Date validOn) throws LmngException
LmngServicegetLicensesForIdpAndSp in interface LmngServiceidentityProvider - the identityProvider to get the licenses forvalidOn - Date on which the license should be validLmngException - If connection or call fails (rethrows all exceptions)public List<Article> getArticlesForServiceProviders(List<String> serviceProvidersEntityIds) throws LmngException
LmngServicegetArticlesForServiceProviders in interface LmngServiceserviceProvidersEntityIds - list of ID's of serviceproviders to get the lmng article forLmngExceptionpublic String getServiceName(String guid)
LmngServicegetServiceName in interface LmngServicepublic String getInstitutionName(String guid)
LmngServicegetInstitutionName in interface LmngServiceguid - guid of the IDP to checkpublic void setEndpoint(String endpoint)
public void setDebug(boolean debug)
public void setKeyStore(KeyStore keyStore)
public void setKeystorePassword(String keystorePassword)
public void setTrustStore(KeyStore trustStore)
public void setLmngIdentifierDao(LmngIdentifierDao lmngIdentifierDao)
public void setActiveMode(boolean activeMode)
public boolean isActiveMode()
LmngServiceisActiveMode in interface LmngServiceCopyright © 2012-2013 SURFnet bv, The Netherlands. All Rights Reserved.