C# Класс gov.va.medora.mdws.MdwsUtils

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
MdwsUtils ( ) : System
buildSiteTable ( String filepath ) : SiteTable
getDodUser ( ) : gov.va.medora.mdo.User
getMdwsServices ( ) : IList

Gets a list of all the web services (base type of BaseService or System.Web.Services.WebService) in the MDWS assembly

isAuthorizedConnection ( MySession mySession ) : string
isAuthorizedConnection ( MySession mySession, string sitecode ) : string
isException ( object obj ) : bool

The TO objects need to determine if an object is derived from an exception. The most reliable way to do this is simply to look at the method name and see if it ends with the text: Exception

isValidCredentials ( string authenticationMethod, AbstractCredentials credentials, AbstractPermission permission ) : bool
parseSiteList ( SiteTable siteTable, String siteList ) : gov.va.medora.mdo.Site[]
replaceSpecialXmlChars ( string s ) : string

Replaces special characters in strings.

* Behaves like XmlTextWriter.WriteString(), but also replaces the apostrophe and double-quote characters -- which WriteString() does not, unless it is in an attribute context... * PERFORMANCE NOTE: About 2.5 s slower than old method over the course of 1 million runs. TBD see if there is a good way for us to reuse the StringWriter and XmlTextWriter so that we don't have to keep recreating them. Maybe a factory method?

setVisitCredentials ( string duz, string ssn, string username, string userphone, DataSource authenticatingSource, string pwd ) : AbstractCredentials

Приватные методы

Метод Описание
buildHisList ( Site sites ) : DataSource>.Dictionary
sessionHasAuthorizedConnection ( MySession mySession ) : string

Описание методов

MdwsUtils() публичный Метод

public MdwsUtils ( ) : System
Результат System

buildSiteTable() публичный статический Метод

public static buildSiteTable ( String filepath ) : SiteTable
filepath String
Результат gov.va.medora.mdo.SiteTable

getDodUser() публичный статический Метод

public static getDodUser ( ) : gov.va.medora.mdo.User
Результат gov.va.medora.mdo.User

getMdwsServices() публичный статический Метод

Gets a list of all the web services (base type of BaseService or System.Web.Services.WebService) in the MDWS assembly
public static getMdwsServices ( ) : IList
Результат IList

isAuthorizedConnection() публичный статический Метод

public static isAuthorizedConnection ( MySession mySession ) : string
mySession MySession
Результат string

isAuthorizedConnection() публичный статический Метод

public static isAuthorizedConnection ( MySession mySession, string sitecode ) : string
mySession MySession
sitecode string
Результат string

isException() публичный статический Метод

The TO objects need to determine if an object is derived from an exception. The most reliable way to do this is simply to look at the method name and see if it ends with the text: Exception
public static isException ( object obj ) : bool
obj object The object to check if it is an exception
Результат bool

isValidCredentials() публичный статический Метод

public static isValidCredentials ( string authenticationMethod, AbstractCredentials credentials, AbstractPermission permission ) : bool
authenticationMethod string
credentials gov.va.medora.mdo.dao.AbstractCredentials
permission gov.va.medora.mdo.dao.AbstractPermission
Результат bool

parseSiteList() публичный статический Метод

public static parseSiteList ( SiteTable siteTable, String siteList ) : gov.va.medora.mdo.Site[]
siteTable gov.va.medora.mdo.SiteTable
siteList String
Результат gov.va.medora.mdo.Site[]

replaceSpecialXmlChars() публичный статический Метод

Replaces special characters in strings.
* Behaves like XmlTextWriter.WriteString(), but also replaces the apostrophe and double-quote characters -- which WriteString() does not, unless it is in an attribute context... * PERFORMANCE NOTE: About 2.5 s slower than old method over the course of 1 million runs. TBD see if there is a good way for us to reuse the StringWriter and XmlTextWriter so that we don't have to keep recreating them. Maybe a factory method?
public static replaceSpecialXmlChars ( string s ) : string
s string
Результат string

setVisitCredentials() публичный статический Метод

public static setVisitCredentials ( string duz, string ssn, string username, string userphone, DataSource authenticatingSource, string pwd ) : AbstractCredentials
duz string
ssn string
username string
userphone string
authenticatingSource gov.va.medora.mdo.DataSource
pwd string
Результат gov.va.medora.mdo.dao.AbstractCredentials