C# 클래스 Microsoft.Protocols.TestSuites.MS_OFFICIALFILE.MS_OFFICIALFILEAdapter

MS-OFFICIALFILE protocol's adapter.
상속: Microsoft.Protocols.TestTools.ManagedAdapterBase, IMS_OFFICIALFILEAdapter
파일 보기 프로젝트 열기: OfficeDev/Interop-TestSuites

공개 메소드들

메소드 설명
GetFinalRoutingDestinationFolderUrl ( RecordsRepositoryProperty properties, string contentTypeName, string originalSaveLocation ) : DocumentRoutingResult

This operation is used to determine the storage location for the submission based on the rules in the repository and a suggested save location chosen by a user.

GetHoldsInfo ( ) : Microsoft.Protocols.TestSuites.MS_OFFICIALFILE.HoldInfo[]

This operation is called to retrieve information about the legal holds in a repository.

GetRecordRoutingCollection ( ) : string

This method is used to retrieve the recording routing collection information.

GetRecordingRouting ( string recordRouting ) : string

This method is used to retrieve the recording routing information.

GetServerInfo ( ) : ServerInfo

This operation is used to retrieves data about the type, version of the repository and whether the repository is configured for routing.

Initialize ( ITestSite testSite ) : void

Overrides IAdapter's Initialize(), to set testSite.DefaultProtocolDocShortName.

IntializeService ( InitialPara paras ) : void

Initialize the services of MS-OFFICIALFILE.

SubmitFile ( [ DataType = "base64Binary")]byte[]fileToSubmit, [ IsNullable = false)]RecordsRepositoryProperty[]properties, string recordRouting, string sourceUrl, string userName ) : SubmitFileResult

This operation is used to submit a file and its associated properties to the repository.

비공개 메소드들

메소드 설명
ParseGetServerInfoResult ( string serverInfo ) : ServerInfo

This method is used to parse the GetServerInfoResult from xml to class.

ParseSubmitFileResult ( string response ) : SubmitFileResult

This method is used to parse the SubmitFileResult from xml to class.

VerifyAndParseGetServerInfo ( string serverInfo ) : ServerInfo

Verify the requirements of GetServerInfo and parse the GetServerInfoResult from xml to class When the server returns a GetServerInfo response successfully.

VerifyAndParseSubmitFile ( string result ) : SubmitFileResult

Verify the requirements of SubmitFile in Adapter. When the server returns a SubmitFile response successfully, which includes web service output message and soap fault.

VerifyGetFinalRoutingDestinationFolderUrl ( ) : void

Verify the requirements of FinalRoutingDestinationFolderUrl in Adapter. When the server returns a GetFinalRoutingDestinationFolderUrl response successfully, which includes web service output message and soap fault.

VerifyGetHoldsInfo ( ) : void

Verify the requirements of GetHoldsInfo When the server returns a GetHoldsInfo response successfully, which includes web service output message and soap fault.

VerifyGetRoutingCollectionInfo ( ) : void

Verify the requirements of GetRoutingInfo When the server returns a GetRoutingInfo response successfully, which includes web service output message and soap fault.

VerifyGetRoutingInfo ( ) : void

Verify the requirements of GetRoutingInfo in Adapter When the server returns a GetRoutingInfo response successfully, which includes web service output message and soap fault.

VerifyTransportRelatedRequirments ( ) : void

Verify underlying transport protocol related requirements. These requirements can be captured directly when the server returns a SOAP response successfully, which includes web service output message and soap fault.

메소드 상세

GetFinalRoutingDestinationFolderUrl() 공개 메소드

This operation is used to determine the storage location for the submission based on the rules in the repository and a suggested save location chosen by a user.
public GetFinalRoutingDestinationFolderUrl ( RecordsRepositoryProperty properties, string contentTypeName, string originalSaveLocation ) : DocumentRoutingResult
properties RecordsRepositoryProperty The properties of the file.
contentTypeName string The file type.
originalSaveLocation string The suggested save location chosen by a user.
리턴 DocumentRoutingResult

GetHoldsInfo() 공개 메소드

This operation is called to retrieve information about the legal holds in a repository.
public GetHoldsInfo ( ) : Microsoft.Protocols.TestSuites.MS_OFFICIALFILE.HoldInfo[]
리턴 Microsoft.Protocols.TestSuites.MS_OFFICIALFILE.HoldInfo[]

GetRecordRoutingCollection() 공개 메소드

This method is used to retrieve the recording routing collection information.
public GetRecordRoutingCollection ( ) : string
리턴 string

GetRecordingRouting() 공개 메소드

This method is used to retrieve the recording routing information.
public GetRecordingRouting ( string recordRouting ) : string
recordRouting string The file type.
리턴 string

GetServerInfo() 공개 메소드

This operation is used to retrieves data about the type, version of the repository and whether the repository is configured for routing.
public GetServerInfo ( ) : ServerInfo
리턴 ServerInfo

Initialize() 공개 메소드

Overrides IAdapter's Initialize(), to set testSite.DefaultProtocolDocShortName.
public Initialize ( ITestSite testSite ) : void
testSite ITestSite Transfer ITestSite into adapter,Make adapter can use ITestSite's function.
리턴 void

IntializeService() 공개 메소드

Initialize the services of MS-OFFICIALFILE.
public IntializeService ( InitialPara paras ) : void
paras InitialPara The TransportType object indicates which transport parameters are used.
리턴 void

SubmitFile() 공개 메소드

This operation is used to submit a file and its associated properties to the repository.
public SubmitFile ( [ DataType = "base64Binary")]byte[]fileToSubmit, [ IsNullable = false)]RecordsRepositoryProperty[]properties, string recordRouting, string sourceUrl, string userName ) : SubmitFileResult
DataType [
IsNullable [
recordRouting string The file type.
sourceUrl string The source URL of the file.
userName string The name of the user submitting the file.
리턴 SubmitFileResult