public class LmngServiceImpl extends Object implements CrmService
| Constructor and Description |
|---|
LmngServiceImpl(LmngIdentifierDao lmngIdentifierDao,
String endpoint) |
| 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
|
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
|
String |
performQuery(String rawQuery)
Convenience method to run various queries
|
public LmngServiceImpl(LmngIdentifierDao lmngIdentifierDao, String endpoint)
@Cacheable(value="crm") public List<License> getLicensesForIdpAndSp(IdentityProvider identityProvider, String articleIdentifier)
CrmServicegetLicensesForIdpAndSp in interface CrmServiceidentityProvider - the identityProvider to get the licenses forarticleIdentifier - lmngIdentifier (belonging to SP's) where the licenses are for.@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 checkpublic String performQuery(String rawQuery)
CrmServiceperformQuery in interface CrmServicerawQuery - the fetch string@CacheEvict(value="crm",
allEntries=true)
public void evictCache()
evictCache in interface CrmServiceCopyright © 2012–2016 Pivotal Software, Inc.. All rights reserved.