C# Class gov.va.medora.mdws.MdwsUtils

ファイルを表示 Open project: OSEHRA/mdws Class Usage Examples

Public Methods

Method Description
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

Private Methods

Method Description
buildHisList ( Site sites ) : DataSource>.Dictionary
sessionHasAuthorizedConnection ( MySession mySession ) : string

Method Details

MdwsUtils() public method

public MdwsUtils ( ) : System
return System

buildSiteTable() public static method

public static buildSiteTable ( String filepath ) : SiteTable
filepath String
return gov.va.medora.mdo.SiteTable

getDodUser() public static method

public static getDodUser ( ) : gov.va.medora.mdo.User
return gov.va.medora.mdo.User

getMdwsServices() public static method

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
return IList

isAuthorizedConnection() public static method

public static isAuthorizedConnection ( MySession mySession ) : string
mySession MySession
return string

isAuthorizedConnection() public static method

public static isAuthorizedConnection ( MySession mySession, string sitecode ) : string
mySession MySession
sitecode string
return string

isException() public static method

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
return bool

isValidCredentials() public static method

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
return bool

parseSiteList() public static method

public static parseSiteList ( SiteTable siteTable, String siteList ) : gov.va.medora.mdo.Site[]
siteTable gov.va.medora.mdo.SiteTable
siteList String
return gov.va.medora.mdo.Site[]

replaceSpecialXmlChars() public static method

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
return string

setVisitCredentials() public static method

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
return gov.va.medora.mdo.dao.AbstractCredentials