public class LmngUtil extends Object implements CrmUtil
LmngServiceImplCrmUtil.LicenseRetrievalAttempt| Modifier and Type | Field and Description |
|---|---|
static String |
ENDPOINT_PLACEHOLDER |
static String |
INSTITUTION_IDENTIFIER_PLACEHOLDER |
static String |
QUERY_PLACEHOLDER |
static String |
UID_PLACEHOLDER |
| Constructor and Description |
|---|
LmngUtil() |
| Modifier and Type | Method and Description |
|---|---|
String |
getLmngRequestEnvelope() |
String |
getLmngSoapRequestForAllAccount(boolean isInstitution,
String endpoint) |
String |
getLmngSoapRequestForIdpAndSp(String institutionId,
List<String> serviceIds,
Date validOn,
String endpoint,
CrmUtil.LicenseRetrievalAttempt licenseRetrievalAttempt) |
String |
getLmngSoapRequestForSps(Collection<String> serviceIds,
String endpoint) |
boolean |
isValidGuid(String guid) |
List<Account> |
parseAccountsResult(String webserviceResult)
Parse the result to an account(list)
|
List<Article> |
parseArticlesResult(String webserviceResult)
Parse the result to an article(list)
|
List<License> |
parseLicensesResult(String webserviceResult)
Parse the result to a license(list)
|
String |
parseResultInstitute(String webserviceResult) |
public static final String ENDPOINT_PLACEHOLDER
public static final String UID_PLACEHOLDER
public static final String QUERY_PLACEHOLDER
public static final String INSTITUTION_IDENTIFIER_PLACEHOLDER
public List<Article> parseArticlesResult(String webserviceResult) throws ParserConfigurationException, SAXException, IOException
parseArticlesResult in interface CrmUtilParserConfigurationExceptionSAXExceptionIOExceptionpublic List<License> parseLicensesResult(String webserviceResult) throws ParserConfigurationException, SAXException, IOException
parseLicensesResult in interface CrmUtilParserConfigurationExceptionSAXExceptionIOExceptionpublic List<Account> parseAccountsResult(String webserviceResult) throws ParserConfigurationException, SAXException, IOException
parseAccountsResult in interface CrmUtilParserConfigurationExceptionSAXExceptionIOExceptionpublic String parseResultInstitute(String webserviceResult) throws ParserConfigurationException, SAXException, IOException
parseResultInstitute in interface CrmUtilParserConfigurationExceptionSAXExceptionIOExceptionpublic boolean isValidGuid(String guid)
public String getLmngSoapRequestForIdpAndSp(String institutionId, List<String> serviceIds, Date validOn, String endpoint, CrmUtil.LicenseRetrievalAttempt licenseRetrievalAttempt) throws IOException
getLmngSoapRequestForIdpAndSp in interface CrmUtilIOExceptionpublic String getLmngSoapRequestForSps(Collection<String> serviceIds, String endpoint) throws IOException
getLmngSoapRequestForSps in interface CrmUtilIOExceptionpublic String getLmngSoapRequestForAllAccount(boolean isInstitution, String endpoint) throws IOException
getLmngSoapRequestForAllAccount in interface CrmUtilIOExceptionpublic String getLmngRequestEnvelope() throws IOException
getLmngRequestEnvelope in interface CrmUtilIOExceptionCopyright © 2012–2016 Pivotal Software, Inc.. All rights reserved.