Table of Contents

Class DocumentsQuery

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

Defines a query for documents.

public class DocumentsQuery : IRelationsWithProxy, IRelations, IHttpClientProxy
Inheritance
DocumentsQuery
Implements
Inherited Members
Extension Methods

Constructors

DocumentsQuery()

Creates a new instance of this class

public DocumentsQuery()

Properties

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

public string BatchUpdateRelationLink { get; }

Property Value

TypeDescription
string

Returns the uri of the link for the relation “batchUpdate” 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.

CalculateTotalCount

Indicates if total count of the documents should be calculated. If it is false the return value will be the number of requested items and indication if there are more items available.

public bool CalculateTotalCount { get; set; }

Property Value

TypeDescription
bool

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

public string DialogExpressionRelationLink { get; }

Property Value

TypeDescription
string

Returns the uri of the link for the relation “dialogExpression” 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.

ExcludeSystemFields

Specifies whether the default system/additional fields should be returned.

public bool ExcludeSystemFields { get; set; }

Property Value

TypeDescription
bool

Expression

Gets or sets the query expression.

public string Expression { get; set; }

Property Value

TypeDescription
string

Remarks

The query string contains the query in a proper expression. If the expression is missing then all documents match the query.

Fields

Gets or sets the fields which are returned by this query.

public List<string> Fields { get; set; }

Property Value

TypeDescription
List<string>

Remarks

Depending on the server's choice, there might be more fields included, like some system fields. If this field is null then all fields are returned.

ForceRefresh

Determine if result list is retrieved from the cache when ForceRefresh is set to false (default) or always a new one is executed when ForceRefresh is set to true.

[Dolphin]
public bool ForceRefresh { get; set; }

Property Value

TypeDescription
bool

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

public string IdsResultRelationLink { get; }

Property Value

TypeDescription
string

Returns the uri of the link for the relation “IdsResult” 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.

IncludeSuggestions

Gets or sets a value indicating whether Intellix suggetstions to be included.

public bool IncludeSuggestions { get; set; }

Property Value

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

Property Value

TypeDescription
Link[]

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.

SortOrder

Gets or sets the fields which are returned by this query.

public List<SortedField> SortOrder { get; set; }

Property Value

TypeDescription
List<SortedField>

Remarks

Depending on the server's choice, there might be more fields included, like some system fields. If this field is null then all fields are returned.

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

public string TableDialogExpressionRelationLink { get; }

Property Value

TypeDescription
string

Returns the uri of the link for the relation “tableDialogExpression” 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 “tableResult”.

public string TableResultRelationLink { get; }

Property Value

TypeDescription
string

Returns the uri of the link for the relation “tableResult” 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.

Methods

GetDocumentsQueryResultFromResultRelation()

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

public DocumentsQueryResult GetDocumentsQueryResultFromResultRelation()

Returns

TypeDescription
DocumentsQueryResult

The content of the response.

GetDocumentsQueryResultFromResultRelationAsync()

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.

Remarks

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

GetDocumentsQueryResultFromResultRelationAsync(CancellationToken)

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.

Remarks

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

GetDocumentsQueryTableResultFromTableResultRelation()

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

public DocumentsQueryTableResult GetDocumentsQueryTableResultFromTableResultRelation()

Returns

TypeDescription
DocumentsQueryTableResult

The content of the response.

GetDocumentsQueryTableResultFromTableResultRelationAsync()

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

public Task<DeserializedHttpResponse<DocumentsQueryTableResult>> GetDocumentsQueryTableResultFromTableResultRelationAsync()

Returns

TypeDescription
Task<DeserializedHttpResponse<DocumentsQueryTableResult>>

A task which runs the request.

Remarks

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

GetDocumentsQueryTableResultFromTableResultRelationAsync(CancellationToken)

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

public Task<DeserializedHttpResponse<DocumentsQueryTableResult>> GetDocumentsQueryTableResultFromTableResultRelationAsync(CancellationToken cancellationToken)

Parameters

TypeNameDescription
CancellationTokencancellationToken

The cancellation token to cancel the request.

Returns

TypeDescription
Task<DeserializedHttpResponse<DocumentsQueryTableResult>>

A task which runs the request.

Remarks

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

PostToBatchUpdateRelationForBatchUpdateIndexFieldsResult(BatchUpdateProcess)

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

public BatchUpdateIndexFieldsResult PostToBatchUpdateRelationForBatchUpdateIndexFieldsResult(BatchUpdateProcess dataToSend)

Parameters

TypeNameDescription
BatchUpdateProcessdataToSend

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

Returns

TypeDescription
BatchUpdateIndexFieldsResult

The content of the response.

PostToBatchUpdateRelationForBatchUpdateIndexFieldsResultAsync(BatchUpdateProcess)

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

public Task<DeserializedHttpResponse<BatchUpdateIndexFieldsResult>> PostToBatchUpdateRelationForBatchUpdateIndexFieldsResultAsync(BatchUpdateProcess dataToSend)

Parameters

TypeNameDescription
BatchUpdateProcessdataToSend

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

Returns

TypeDescription
Task<DeserializedHttpResponse<BatchUpdateIndexFieldsResult>>

A task which runs the request.

Remarks

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

PostToBatchUpdateRelationForBatchUpdateIndexFieldsResultAsync(CancellationToken, BatchUpdateProcess)

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

public Task<DeserializedHttpResponse<BatchUpdateIndexFieldsResult>> PostToBatchUpdateRelationForBatchUpdateIndexFieldsResultAsync(CancellationToken cancellationToken, BatchUpdateProcess dataToSend)

Parameters

TypeNameDescription
CancellationTokencancellationToken

The cancellation token to cancel the request.

BatchUpdateProcessdataToSend

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

Returns

TypeDescription
Task<DeserializedHttpResponse<BatchUpdateIndexFieldsResult>>

A task which runs the request.

Remarks

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

PostToDialogExpressionRelationForDocumentsQueryResult(DialogExpression)

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

public DocumentsQueryResult PostToDialogExpressionRelationForDocumentsQueryResult(DialogExpression dataToSend)

Parameters

TypeNameDescription
DialogExpressiondataToSend

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

Returns

TypeDescription
DocumentsQueryResult

The content of the response.

PostToDialogExpressionRelationForDocumentsQueryResultAsync(DialogExpression)

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

public Task<DeserializedHttpResponse<DocumentsQueryResult>> PostToDialogExpressionRelationForDocumentsQueryResultAsync(DialogExpression dataToSend)

Parameters

TypeNameDescription
DialogExpressiondataToSend

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

Returns

TypeDescription
Task<DeserializedHttpResponse<DocumentsQueryResult>>

A task which runs the request.

Remarks

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

PostToDialogExpressionRelationForDocumentsQueryResultAsync(CancellationToken, DialogExpression)

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

public Task<DeserializedHttpResponse<DocumentsQueryResult>> PostToDialogExpressionRelationForDocumentsQueryResultAsync(CancellationToken cancellationToken, DialogExpression dataToSend)

Parameters

TypeNameDescription
CancellationTokencancellationToken

The cancellation token to cancel the request.

DialogExpressiondataToSend

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

Returns

TypeDescription
Task<DeserializedHttpResponse<DocumentsQueryResult>>

A task which runs the request.

Remarks

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

PostToIdsResultRelationForSelectListResult(SelectListExpression)

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

public SelectListResult PostToIdsResultRelationForSelectListResult(SelectListExpression dataToSend)

Parameters

TypeNameDescription
SelectListExpressiondataToSend

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

Returns

TypeDescription
SelectListResult

The content of the response.

PostToIdsResultRelationForSelectListResultAsync(SelectListExpression)

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

public Task<DeserializedHttpResponse<SelectListResult>> PostToIdsResultRelationForSelectListResultAsync(SelectListExpression dataToSend)

Parameters

TypeNameDescription
SelectListExpressiondataToSend

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

Returns

TypeDescription
Task<DeserializedHttpResponse<SelectListResult>>

A task which runs the request.

Remarks

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

PostToIdsResultRelationForSelectListResultAsync(CancellationToken, SelectListExpression)

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

public Task<DeserializedHttpResponse<SelectListResult>> PostToIdsResultRelationForSelectListResultAsync(CancellationToken cancellationToken, SelectListExpression dataToSend)

Parameters

TypeNameDescription
CancellationTokencancellationToken

The cancellation token to cancel the request.

SelectListExpressiondataToSend

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

Returns

TypeDescription
Task<DeserializedHttpResponse<SelectListResult>>

A task which runs the request.

Remarks

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

PostToTableDialogExpressionRelationForDocumentsQueryTableResult(DialogExpression)

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

public DocumentsQueryTableResult PostToTableDialogExpressionRelationForDocumentsQueryTableResult(DialogExpression dataToSend)

Parameters

TypeNameDescription
DialogExpressiondataToSend

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

Returns

TypeDescription
DocumentsQueryTableResult

The content of the response.

PostToTableDialogExpressionRelationForDocumentsQueryTableResultAsync(DialogExpression)

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

public Task<DeserializedHttpResponse<DocumentsQueryTableResult>> PostToTableDialogExpressionRelationForDocumentsQueryTableResultAsync(DialogExpression dataToSend)

Parameters

TypeNameDescription
DialogExpressiondataToSend

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

Returns

TypeDescription
Task<DeserializedHttpResponse<DocumentsQueryTableResult>>

A task which runs the request.

Remarks

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

PostToTableDialogExpressionRelationForDocumentsQueryTableResultAsync(CancellationToken, DialogExpression)

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

public Task<DeserializedHttpResponse<DocumentsQueryTableResult>> PostToTableDialogExpressionRelationForDocumentsQueryTableResultAsync(CancellationToken cancellationToken, DialogExpression dataToSend)

Parameters

TypeNameDescription
CancellationTokencancellationToken

The cancellation token to cancel the request.

DialogExpressiondataToSend

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

Returns

TypeDescription
Task<DeserializedHttpResponse<DocumentsQueryTableResult>>

A task which runs the request.

Remarks

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

SetProxy(HttpClientProxy)

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.

Remarks

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.