|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnl.surfnet.coin.csa.service.impl.LmngServiceImpl
public class LmngServiceImpl
Implementation of a licensing service that get's it information from a webservice interface on LMNG
| Constructor Summary | |
|---|---|
LmngServiceImpl()
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LmngServiceImpl()
| Method Detail |
|---|
@Cacheable(value="crm")
public List<License> getLicensesForIdpAndSp(IdentityProvider identityProvider,
String articleIdentifier)
throws LmngException
CrmService
getLicensesForIdpAndSp 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
CrmService
getArticlesForServiceProviders in interface CrmServiceserviceProvidersEntityIds - list of ID's of serviceproviders to get the lmng article for
LmngException@Cacheable(value="crm") public String getServiceName(String guid)
CrmService
getServiceName in interface CrmService@Cacheable(value="crm") public Article getService(String guid)
CrmService
getService in interface CrmServiceguid - guid of the article
public List<Account> getAccounts(boolean isInstitution)
CrmService
getAccounts in interface CrmService@Cacheable(value="crm") public String getInstitutionName(String guid)
CrmService
getInstitutionName in interface CrmServiceguid - guid of the IDP to check
protected String getWebServiceResult(String soapRequest)
throws IOException,
KeyManagementException,
UnrecoverableKeyException,
NoSuchAlgorithmException,
KeyStoreException
soapRequest - A string representation of the soap request
IOException
KeyStoreException
NoSuchAlgorithmException
UnrecoverableKeyException
KeyManagementExceptionpublic void setEndpoint(String endpoint)
public void setDebug(boolean debug)
public void setLmngIdentifierDao(LmngIdentifierDao lmngIdentifierDao)
public String performQuery(String rawQuery)
CrmService
performQuery in interface CrmServicerawQuery - the fetch string
@CacheEvict(value="crm",
allEntries=true)
public void evictCache()
evictCache in interface CrmServicepublic void setLmngUtil(CrmUtil lmngUtil)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||