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,
boolean writeResponseToFile)
Parse the result to an account(list)
|
List<Article> |
parseArticlesResult(String webserviceResult,
boolean writeResponseToFile)
Parse the result to an article(list)
|
List<License> |
parseLicensesResult(String webserviceResult,
boolean writeResponseToFile)
Parse the result to a license(list)
|
String |
parseResultInstitute(String webserviceResult,
boolean writeResponseToFile) |
void |
writeIO(String filename,
String content)
Write the given content to a file with the given filename (and add a
datetime prefix).
|
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, boolean writeResponseToFile) throws ParserConfigurationException, SAXException, IOException, ParseException
parseArticlesResult in interface CrmUtilParserConfigurationExceptionSAXExceptionIOExceptionParseExceptionpublic List<License> parseLicensesResult(String webserviceResult, boolean writeResponseToFile) throws ParserConfigurationException, SAXException, IOException, ParseException
parseLicensesResult in interface CrmUtilParserConfigurationExceptionSAXExceptionIOExceptionParseExceptionpublic List<Account> parseAccountsResult(String webserviceResult, boolean writeResponseToFile) throws ParserConfigurationException, SAXException, IOException, ParseException
parseAccountsResult in interface CrmUtilParserConfigurationExceptionSAXExceptionIOExceptionParseExceptionpublic String parseResultInstitute(String webserviceResult, boolean writeResponseToFile) throws ParserConfigurationException, SAXException, IOException, ParseException
parseResultInstitute in interface CrmUtilParserConfigurationExceptionSAXExceptionIOExceptionParseExceptionpublic void writeIO(String filename, String content)
public 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 © 2013–2014 SURFnet bv, The Netherlands. All rights reserved.