|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnl.surfnet.coin.csa.service.impl.LmngUtil
public class LmngUtil
Utility class for LMNG. This class contains some static methods used in the
LmngServiceImpl
| Field Summary | |
|---|---|
static String |
ENDPOINT_PLACEHOLDER
|
static String |
INSTITUTION_IDENTIFIER_PLACEHOLDER
|
static String |
QUERY_PLACEHOLDER
|
static String |
UID_PLACEHOLDER
|
| Constructor Summary | |
|---|---|
LmngUtil()
|
|
| Method Summary | |
|---|---|
String |
getLmngRequestEnvelope()
|
String |
getLmngSoapRequestForAllAccount(boolean isInstitution,
String endpoint)
|
String |
getLmngSoapRequestForIdpAndSp(String institutionId,
List<String> serviceIds,
Date validOn,
String endpoint)
|
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). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public LmngUtil()
| Method Detail |
|---|
public List<Article> parseArticlesResult(String webserviceResult,
boolean writeResponseToFile)
throws ParserConfigurationException,
SAXException,
IOException,
ParseException
parseArticlesResult in interface CrmUtilParserConfigurationException
SAXException
IOException
ParseException
public List<License> parseLicensesResult(String webserviceResult,
boolean writeResponseToFile)
throws ParserConfigurationException,
SAXException,
IOException,
ParseException
parseLicensesResult in interface CrmUtilParserConfigurationException
SAXException
IOException
ParseException
public List<Account> parseAccountsResult(String webserviceResult,
boolean writeResponseToFile)
throws ParserConfigurationException,
SAXException,
IOException,
ParseException
parseAccountsResult in interface CrmUtilParserConfigurationException
SAXException
IOException
ParseException
public String parseResultInstitute(String webserviceResult,
boolean writeResponseToFile)
throws ParserConfigurationException,
SAXException,
IOException,
ParseException
parseResultInstitute in interface CrmUtilParserConfigurationException
SAXException
IOException
ParseException
public void writeIO(String filename,
String content)
writeIO in interface CrmUtilfilename - content - public boolean isValidGuid(String guid)
isValidGuid in interface CrmUtil
public String getLmngSoapRequestForIdpAndSp(String institutionId,
List<String> serviceIds,
Date validOn,
String endpoint)
throws IOException
getLmngSoapRequestForIdpAndSp in interface CrmUtilIOException
public String getLmngSoapRequestForSps(Collection<String> serviceIds,
String endpoint)
throws IOException
getLmngSoapRequestForSps in interface CrmUtilIOException
public String getLmngSoapRequestForAllAccount(boolean isInstitution,
String endpoint)
throws IOException
getLmngSoapRequestForAllAccount in interface CrmUtilIOException
public String getLmngRequestEnvelope()
throws IOException
getLmngRequestEnvelope in interface CrmUtilIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||