Table of Contents

Class DocumentLink

Namespace
DocuWare.Platform.ServerClient
Assembly
DocuWare.Platform.ServerClient.dll

Define a query that link one document to another document from same or different file cabinet

public class DocumentLink : IRelationsWithProxy, IRelations, IHttpClientProxy
Inheritance
DocumentLink
Implements
Inherited Members

Constructors

Creates a new instance of this class

public DocumentLink()

Properties

Identity of the document link

public string Id { get; set; }

Property Value

TypeDescription
string

Indicates whether the document relation is invalid

public bool IsInvalid { get; set; }

Property Value

TypeDescription
bool
public Link[] Links { get; set; }

Property Value

TypeDescription
Link[]

Name of the document link

public string Name { get; set; }

Property Value

TypeDescription
string

Gets the Uri of the link for the relation “resultDialog”.

public string ResultDialogRelationLink { get; }

Property Value

TypeDescription
string

Returns the uri of the link for the relation “resultDialog” if it exists, or null if this link does not exist. The returned link can be absolute or relative. If it is a relative link you must set it in the right context yourself.

Gets the Uri of the link for the relation “result”.

public string ResultRelationLink { get; }

Property Value

TypeDescription
string

Returns the uri of the link for the relation “result” if it exists, or null if this link does not exist. The returned link can be absolute or relative. If it is a relative link you must set it in the right context yourself.

File cabinet that the document is linked to

public string TargetFileCabinet { get; set; }

Property Value

TypeDescription
string

Identity of the result list that will be used to show the linked documents

public string TargetResultList { get; set; }

Property Value

TypeDescription
string

Methods

Calls the HTTP Get method on the link for the relation “resultDialog”.

public Dialog GetDialogFromResultDialogRelation()

Returns

TypeDescription
Dialog

The content of the response.

Calls the HTTP Get method on the link for the relation “resultDialog” asynchronously.

public Task<DeserializedHttpResponse<Dialog>> GetDialogFromResultDialogRelationAsync()

Returns

TypeDescription
Task<DeserializedHttpResponse<Dialog>>

A task which runs the request.

This method follows the link for the relation “resultDialog”.

Calls the HTTP Get method on the link for the relation “resultDialog” asynchronously.

public Task<DeserializedHttpResponse<Dialog>> GetDialogFromResultDialogRelationAsync(CancellationToken cancellationToken)

Parameters

TypeNameDescription
CancellationTokencancellationToken

The cancellation token to cancel the request.

Returns

TypeDescription
Task<DeserializedHttpResponse<Dialog>>

A task which runs the request.

This method follows the link for the relation “resultDialog”.

Calls the HTTP Get method on the link for the relation “result”.

public DocumentsQueryResult GetDocumentsQueryResultFromResultRelation()

Returns

TypeDescription
DocumentsQueryResult

The content of the response.

Calls the HTTP Get method on the link for the relation “result” asynchronously.

public Task<DeserializedHttpResponse<DocumentsQueryResult>> GetDocumentsQueryResultFromResultRelationAsync()

Returns

TypeDescription
Task<DeserializedHttpResponse<DocumentsQueryResult>>

A task which runs the request.

This method follows the link for the relation “result”.

Calls the HTTP Get method on the link for the relation “result” asynchronously.

public Task<DeserializedHttpResponse<DocumentsQueryResult>> GetDocumentsQueryResultFromResultRelationAsync(CancellationToken cancellationToken)

Parameters

TypeNameDescription
CancellationTokencancellationToken

The cancellation token to cancel the request.

Returns

TypeDescription
Task<DeserializedHttpResponse<DocumentsQueryResult>>

A task which runs the request.

This method follows the link for the relation “result”.

Calls the HTTP Post method on the link for the relation “result”.

public DocumentsQueryResult PostToResultRelationForDocumentsQueryResult(DocumentLinkExpressionQuery dataToSend)

Parameters

TypeNameDescription
DocumentLinkExpressionQuerydataToSend

The data to send. This data is written into the request body.

Returns

TypeDescription
DocumentsQueryResult

The content of the response.

Calls the HTTP Post method on the link for the relation “result”.

public DocumentsQueryResult PostToResultRelationForDocumentsQueryResult(ResultListQuery dataToSend)

Parameters

TypeNameDescription
ResultListQuerydataToSend

The data to send. This data is written into the request body.

Returns

TypeDescription
DocumentsQueryResult

The content of the response.

Calls the HTTP Post method on the link for the relation “result” asynchronously.

public Task<DeserializedHttpResponse<DocumentsQueryResult>> PostToResultRelationForDocumentsQueryResultAsync(DocumentLinkExpressionQuery dataToSend)

Parameters

TypeNameDescription
DocumentLinkExpressionQuerydataToSend

The data to send. This data is written into the request body.

Returns

TypeDescription
Task<DeserializedHttpResponse<DocumentsQueryResult>>

A task which runs the request.

This method follows the link for the relation “result”.

Calls the HTTP Post method on the link for the relation “result” asynchronously.

public Task<DeserializedHttpResponse<DocumentsQueryResult>> PostToResultRelationForDocumentsQueryResultAsync(ResultListQuery dataToSend)

Parameters

TypeNameDescription
ResultListQuerydataToSend

The data to send. This data is written into the request body.

Returns

TypeDescription
Task<DeserializedHttpResponse<DocumentsQueryResult>>

A task which runs the request.

This method follows the link for the relation “result”.

Calls the HTTP Post method on the link for the relation “result” asynchronously.

public Task<DeserializedHttpResponse<DocumentsQueryResult>> PostToResultRelationForDocumentsQueryResultAsync(CancellationToken cancellationToken, DocumentLinkExpressionQuery dataToSend)

Parameters

TypeNameDescription
CancellationTokencancellationToken

The cancellation token to cancel the request.

DocumentLinkExpressionQuerydataToSend

The data to send. This data is written into the request body.

Returns

TypeDescription
Task<DeserializedHttpResponse<DocumentsQueryResult>>

A task which runs the request.

This method follows the link for the relation “result”.

Calls the HTTP Post method on the link for the relation “result” asynchronously.

public Task<DeserializedHttpResponse<DocumentsQueryResult>> PostToResultRelationForDocumentsQueryResultAsync(CancellationToken cancellationToken, ResultListQuery dataToSend)

Parameters

TypeNameDescription
CancellationTokencancellationToken

The cancellation token to cancel the request.

ResultListQuerydataToSend

The data to send. This data is written into the request body.

Returns

TypeDescription
Task<DeserializedHttpResponse<DocumentsQueryResult>>

A task which runs the request.

This method follows the link for the relation “result”.

Sets the HTTP communication proxy which is used in further HTTP communication.

public void SetProxy(HttpClientProxy proxy)

Parameters

TypeNameDescription
HttpClientProxyproxy

The HttpClient instance which is used in further HTTP communication.

The HTTP proxy is used to handle the HTTP requests which are created by this instance. The proxy is used in case a request is sent to a URL which is resolved from a link.