C# 클래스 ProjectFirma.Web.Controllers.WebServiceToken

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

공개 프로퍼티들

프로퍼티 타입 설명
WebServiceTokenForParameterizedReplacements WebServiceToken
WebServiceTokenForUnitTests WebServiceToken
WebServiceTokenGuidForParameterizedReplacement Guid
WebServiceTokenGuidForUnitTests Guid

공개 메소드들

메소드 설명
DemandHasPermission ( FirmaBaseFeature feature ) : void

Throws an exception if the Person associated with this WebServiceToken does not have access to FirmaBaseFeature In a unit test using WebServiceTokenGuidForUnitTests this will always pass, and Person will return Stewart Gordon's person ID for now Might want to introduce a system person at some point.

ToString ( ) : string
WebServiceToken ( string allegedWebServiceToken ) : System

비공개 메소드들

메소드 설명
DemandValidWebServiceToken ( string allegedWebServiceToken, bool isBeingCalledByStaticConstructor ) : Guid

Throws an exception if the string is not valid as a WebServiceToken

IsValidAsParameterizedReplacementToken ( Guid tokenGuidToCheck ) : bool

Indicates if the token is valid in these circumstances as a parameter replacement token, has to be the same GUID as WebServiceTokenGuidForParameterizedReplacement

IsValidAsUnitTestToken ( Guid tokenGuidToCheck, bool isBeingCalledByStaticConstructor ) : bool

Indicates if the token is valid in these circumstances as a unit test token, has to be the same GUID as WebServiceTokenGuidForUnitTests

WebServiceToken ( ) : System
WebServiceToken ( string allegedWebServiceToken, bool isBeingCalledByStaticConstructor ) : System

메소드 상세

DemandHasPermission() 공개 메소드

Throws an exception if the Person associated with this WebServiceToken does not have access to FirmaBaseFeature In a unit test using WebServiceTokenGuidForUnitTests this will always pass, and Person will return Stewart Gordon's person ID for now Might want to introduce a system person at some point.
public DemandHasPermission ( FirmaBaseFeature feature ) : void
feature FirmaBaseFeature
리턴 void

ToString() 공개 메소드

public ToString ( ) : string
리턴 string

WebServiceToken() 공개 메소드

public WebServiceToken ( string allegedWebServiceToken ) : System
allegedWebServiceToken string
리턴 System

프로퍼티 상세

WebServiceTokenForParameterizedReplacements 공개적으로 정적으로 프로퍼티

public static WebServiceToken,ProjectFirma.Web.Controllers WebServiceTokenForParameterizedReplacements
리턴 WebServiceToken

WebServiceTokenForUnitTests 공개적으로 정적으로 프로퍼티

The Unit Test GUID as a web service token
public static WebServiceToken,ProjectFirma.Web.Controllers WebServiceTokenForUnitTests
리턴 WebServiceToken

WebServiceTokenGuidForParameterizedReplacement 공개적으로 정적으로 프로퍼티

public static Guid WebServiceTokenGuidForParameterizedReplacement
리턴 Guid

WebServiceTokenGuidForUnitTests 공개적으로 정적으로 프로퍼티

The Unit Test GUID which can be used to make the web service token
public static Guid WebServiceTokenGuidForUnitTests
리턴 Guid