C# 클래스 gov.va.medora.mdws.MdwsUtils

파일 보기 프로젝트 열기: OSEHRA/mdws 1 사용 예제들

공개 메소드들

메소드 설명
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