public String getMfATypeId(long content_service_id) { ContentServiceInfo csi = this.cst.getContentServiceInfo(getCobrandContext(), content_service_id, true); return((csi.mfaType == null) ? null : csi.mfaType.GetType() .ToString()); }
public void viewSingleServiceDetails() { System.Console.WriteLine("Enter in the content service ID to view details >> : "); long choice = IOUtils.readLong(); // passing a "1" as the third arg gets keywords ContentServiceInfo csi = this.cst.getContentServiceInfo(getCobrandContext(), choice, true); printContentServiceInfo(csi); }
public void printBriefContentServices(ContentServiceInfo[] csis) { for (int i = 0; i < csis.Length; i++) { ContentServiceInfo csi = csis[i]; System.Console.WriteLine( csi.contentServiceId + "#" + csi.containerInfo.containerName + "#" + csi.contentServiceDisplayName + "#" + csi.homeUrl + "#" + (csi.loginForm == null ? "null" : "value") ); } }
public Dictionary <long, string> getAllSystemServices() { var log = new LegacyLog(); var conn = new SqlConnection(log); var banks = new Dictionary <long, string>(); conn.ForEachRowSafe((row, bRowsetStart) => { long csid = row[0]; string name = row[1]; banks.Add(csid, name); try { ContentServiceInfo csi = this.cst.getContentServiceInfo(getCobrandContext(), csid, true); if (csi.contentServiceDisplayName.Split(' ') .First() .ToLowerInvariant() != name.Split(' ') .First() .ToLowerInvariant()) { Console.WriteLine("{2} Name difference system:{1} yodlee:{0}", csi.contentServiceDisplayName, name, csid); } if (csi.containerInfo.containerName != "bank") { Console.WriteLine("{0} not a bank {1}", csid, csi.containerInfo.containerName); } } catch (Exception ex) { Console.WriteLine("Error in retrieving data for {0} {1}: {2}", csid, name, ex.Message); } return(ActionResult.Continue); }, "GetYodleeBanks"); if (banks.Count > 0) { Console.WriteLine("Found {0} banks", banks.Count); } else { throw new Exception(string.Format("System Banks not found")); } return(banks); }
public void printContentServiceInfo(ContentServiceInfo csi) { System.Console.WriteLine("Content Service id: " + csi.contentServiceId); System.Console.WriteLine("Display name: " + csi.contentServiceDisplayName); System.Console.WriteLine("Container type: " + csi.containerInfo.containerName); System.Console.WriteLine("Registration URL: " + csi.registrationUrl); System.Console.WriteLine("Home URL: " + csi.homeUrl); System.Console.WriteLine("Login URL: " + csi.loginUrl); String autoLoginType = "UNKNOWN"; switch (csi.autoLoginType) { case 3: //AutoLoginManagementService.CLIENT_ENABLED: autoLoginType = "CLIENT_ENABLED"; break; case 4: //AutoLoginManagementService.HTTP: autoLoginType = "HTTP"; break; case 5: //AutoLoginManagementService.NOT_SUPPORTED: autoLoginType = "NOT_SUPPORTED "; break; case 2: //AutoLoginManagementService.PROXY: autoLoginType = "PROXY"; break; case 1: //AutoLoginManagementService.SIMPLE: autoLoginType = "SIMPLE"; break; } System.Console.Write("AutoLogin Type: " + autoLoginType); String[] keywords = csi.keywords; if (keywords != null) { System.Console.Write("Search keywords: "); for (int i = 0; i < keywords.Length; i++) { String keyword = keywords[i]; System.Console.Write(keyword + ","); } } System.Console.WriteLine(""); if (csi.hasSiblingContentServices) { ContentServiceInfo[] siblingCSIDs = this.cst.getSiblingContentServices(getCobrandContext(), csi.contentServiceId, true); System.Console.WriteLine(siblingCSIDs.Length + " sibling sites available"); for (int i = 0; i < siblingCSIDs.Length; i++) { System.Console.WriteLine(" Sibling: " + siblingCSIDs[i].contentServiceDisplayName + " (" + siblingCSIDs[i].contentServiceId + ")"); } } else { System.Console.WriteLine("No sibling sites available"); } ContentServiceInfo[] sharedCSIDs = this.cst.getContentServicesBySite(getCobrandContext(), csi.siteId, true); if (sharedCSIDs.Length > 1) { System.Console.WriteLine((sharedCSIDs.Length - 1) + " shared sites available"); for (int i = 0; i < sharedCSIDs.Length; i++) { if (csi.contentServiceId != sharedCSIDs[i].contentServiceId) { System.Console.WriteLine(" Shared: " + sharedCSIDs[i].contentServiceDisplayName + " (" + sharedCSIDs[i].contentServiceId + ")"); } } } else { System.Console.WriteLine("No shared sites available"); } System.Console.WriteLine("\n\n"); }