public class LmngServiceMock extends Object implements LmngService
| Constructor and Description |
|---|
LmngServiceMock() |
| Modifier and Type | Method and Description |
|---|---|
List<Article> |
getArticlesForServiceProviders(List<String> serviceProviderEntityIds)
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 lmngId)
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 |
setTrustStore(KeyStore trustStore) |
public void setDebug(boolean debug)
public void setEndpoint(String endpoint)
public void setKeyStore(KeyStore keyStore)
public void setTrustStore(KeyStore trustStore)
public void setKeystorePassword(String keystorePassword)
public void setActiveMode(boolean activeMode)
public boolean isActiveMode()
LmngServiceisActiveMode in interface LmngServicepublic String getInstitutionName(String guid)
LmngServicegetInstitutionName in interface LmngServiceguid - guid of the IDP to checkpublic String getServiceName(String lmngId)
LmngServicegetServiceName in interface LmngServicepublic List<License> getLicensesForIdpAndSp(IdentityProvider identityProvider, String articleIdentifier, Date validOn)
LmngServicegetLicensesForIdpAndSp in interface LmngServiceidentityProvider - the identityProvider to get the licenses forvalidOn - Date on which the license should be validpublic List<Article> getArticlesForServiceProviders(List<String> serviceProviderEntityIds)
LmngServicegetArticlesForServiceProviders in interface LmngServiceserviceProviderEntityIds - list of ID's of serviceproviders to get the lmng article forCopyright © 2012-2013 SURFnet bv, The Netherlands. All Rights Reserved.