public class LmngServiceImpl extends Object implements CrmService
| Constructor and Description |
|---|
LmngServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
evictCache() |
List<Account> |
getAccounts(boolean isInstitution)
Get all institutions
|
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)
Gets a list with Licenses for the given
identityProvider and services (lmngIdentifiers) which are valid on the given day
|
List<License> |
getLicensesForIdpAndSps(IdentityProvider identityProvider,
List<String> articleIdentifiers) |
Article |
getService(String guid)
Get LMNG article by article ID
|
String |
getServiceName(String guid)
Get the name of the service/product in LMNG belonging to given GUID
|
protected String |
getWebServiceResult(String soapRequest)
Get the response from the webservice call (using credentials and endpoint
address from this class settings) after execututing the given soapRequest
string.
|
String |
performQuery(String rawQuery)
Convenience method to run various queries
|
void |
setDebug(boolean debug) |
void |
setEndpoint(String endpoint) |
void |
setLmngIdentifierDao(LmngIdentifierDao lmngIdentifierDao) |
void |
setLmngUtil(CrmUtil lmngUtil) |
@Cacheable(value="crm") public List<License> getLicensesForIdpAndSp(IdentityProvider identityProvider, String articleIdentifier) throws LmngException
CrmServicegetLicensesForIdpAndSp in interface CrmServiceidentityProvider - the identityProvider to get the licenses forarticleIdentifier - lmngIdentifier (belonging to SP's) where the licenses are for.LmngException - If connection or call fails (rethrows all exceptions)@Cacheable(value="crm") public List<License> getLicensesForIdpAndSps(IdentityProvider identityProvider, List<String> articleIdentifiers) throws LmngException
getLicensesForIdpAndSps in interface CrmServiceLmngException@Cacheable(value="crm") public List<Article> getArticlesForServiceProviders(List<String> serviceProvidersEntityIds) throws LmngException
CrmServicegetArticlesForServiceProviders in interface CrmServiceserviceProvidersEntityIds - list of ID's of serviceproviders to get the lmng article forLmngException@Cacheable(value="crm") public String getServiceName(String guid)
CrmServicegetServiceName in interface CrmService@Cacheable(value="crm") public Article getService(String guid)
CrmServicegetService in interface CrmServiceguid - guid of the articlepublic List<Account> getAccounts(boolean isInstitution)
CrmServicegetAccounts in interface CrmService@Cacheable(value="crm") public String getInstitutionName(String guid)
CrmServicegetInstitutionName in interface CrmServiceguid - guid of the IDP to checkprotected String getWebServiceResult(String soapRequest) throws IOException, KeyManagementException, UnrecoverableKeyException, NoSuchAlgorithmException, KeyStoreException
soapRequest - A string representation of the soap requestIOExceptionKeyStoreExceptionNoSuchAlgorithmExceptionUnrecoverableKeyExceptionKeyManagementExceptionpublic void setEndpoint(String endpoint)
public void setDebug(boolean debug)
public void setLmngIdentifierDao(LmngIdentifierDao lmngIdentifierDao)
public String performQuery(String rawQuery)
CrmServiceperformQuery in interface CrmServicerawQuery - the fetch string@CacheEvict(value="crm",
allEntries=true)
public void evictCache()
evictCache in interface CrmServicepublic void setLmngUtil(CrmUtil lmngUtil)
Copyright © 2013–2014 SURFnet bv, The Netherlands. All rights reserved.