Table of Contents

Class EasyFileUploadExtensionsBase

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

Some extensions for simple file uploads.

[Eagle]
public static class EasyFileUploadExtensionsBase
Inheritance
EasyFileUploadExtensionsBase
Inherited Members

Methods

EasyImportArchive(FileCabinet, IFileUploadInfo, ImportSettings)

Imports the specified file into a file cabinet.

public static ImportResult EasyImportArchive(FileCabinet fileCabinet, IFileUploadInfo file, ImportSettings importSettings)

Parameters

TypeNameDescription
FileCabinetfileCabinet

The file cabinet.

IFileUploadInfofile

The file.

ImportSettingsimportSettings

The settings of the import.

Returns

TypeDescription
ImportResult

Returns the result of the import operation

EasyImportArchiveAsync(FileCabinet, IFileUploadInfo, ImportSettings)

Imports asynchronously the specified file into a file cabinet.

public static Task<DeserializedHttpResponse<ImportResult>> EasyImportArchiveAsync(FileCabinet fileCabinet, IFileUploadInfo file, ImportSettings importSettings)

Parameters

TypeNameDescription
FileCabinetfileCabinet

The file cabinet.

IFileUploadInfofile

The file.

ImportSettingsimportSettings

The settings of the import.

Returns

TypeDescription
Task<DeserializedHttpResponse<ImportResult>>

Returns the result of the import operation

EasyReplaceFile(Section, IFileUploadInfo)

Uploads the specified file as new section to the specified document.

[Eagle]
public static Section EasyReplaceFile(Section section, IFileUploadInfo file)

Parameters

TypeNameDescription
Sectionsection

The section to modify.

IFileUploadInfofile

The file marking the new content of the section.

Returns

TypeDescription
Section

The metadata of the modified section.

EasyReplaceFileAsync(Section, IFileUploadInfo)

Uploads the specified file as new section to the specified document asynchronously.

[Eagle]
public static Task<DeserializedHttpResponse<Section>> EasyReplaceFileAsync(Section section, IFileUploadInfo file)

Parameters

TypeNameDescription
Sectionsection

The section to modify.

IFileUploadInfofile

The file marking the new content of the section.

Returns

TypeDescription
Task<DeserializedHttpResponse<Section>>

The metadata of the modified section.

EasySynchronize(FileCabinet, IFileUploadInfo, SynchronizationSettings)

Synchronizes the specified file into a file cabinet.

public static ImportResult EasySynchronize(FileCabinet fileCabinet, IFileUploadInfo file, SynchronizationSettings synchronizeSettings)

Parameters

TypeNameDescription
FileCabinetfileCabinet

The file cabinet.

IFileUploadInfofile

The file.

SynchronizationSettingssynchronizeSettings

The settings of the synchronization.

Returns

TypeDescription
ImportResult

Returns the result of the synchronization operation.

EasySynchronizeAsync(FileCabinet, IFileUploadInfo, SynchronizationSettings)

Synchronizes asynchronously the specified file into a file cabinet.

public static Task<DeserializedHttpResponse<ImportResult>> EasySynchronizeAsync(FileCabinet fileCabinet, IFileUploadInfo file, SynchronizationSettings synchronizeSettings)

Parameters

TypeNameDescription
FileCabinetfileCabinet

The file cabinet.

IFileUploadInfofile

The file.

SynchronizationSettingssynchronizeSettings

The settings of the synchronization.

Returns

TypeDescription
Task<DeserializedHttpResponse<ImportResult>>

Returns the result of the synchronization operation.

EasyUploadDocument(DialogInfo, InputDocument)

Uploads a new document.

[Lobster]
public static Document EasyUploadDocument(this DialogInfo dialogInfo, InputDocument inputDocument)

Parameters

TypeNameDescription
DialogInfodialogInfo

The store dialog.

InputDocumentinputDocument

The input document meta data.

Returns

TypeDescription
Document

The uploaded document's metadata and its files.

Remarks

The document is uploaded as optimal as possible. That is, if the document is small enough it is uploaded with a single request. If the file is large, the upload is done chunkwise.

EasyUploadDocument(DialogInfo, IFileUploadInfo[], Document)

Uploads array of files as new document via a store dialog.

[Gecko]
public static Document EasyUploadDocument(DialogInfo dialogInfo, IFileUploadInfo[] files, Document documentMetaData)

Parameters

TypeNameDescription
DialogInfodialogInfo

The store dialog.

IFileUploadInfo[]files

The array of files.

DocumentdocumentMetaData

The document meta data. Currently only the fields are used.

Returns

TypeDescription
Document

The uploaded document's metadata.

Remarks

The document is uploaded as optimal as possible. That is, if the document is small enough it is uploaded with a single request. If the file is large, the upload is done chunkwise.

EasyUploadDocument(FileCabinet, InputDocument)

Uploads a new document.

[Lobster]
public static Document EasyUploadDocument(this FileCabinet fileCabinet, InputDocument inputDocument)

Parameters

TypeNameDescription
FileCabinetfileCabinet

The file cabinet.

InputDocumentinputDocument

The input document meta data.

Returns

TypeDescription
Document

The uploaded document's metadata and its files.

Remarks

The document is uploaded as optimal as possible. That is, if the document is small enough it is uploaded with a single request. If the file is large, the upload is done chunkwise.

EasyUploadDocument(FileCabinet, IFileUploadInfo[], Document)

Uploads array of files as new document.

[Gecko]
public static Document EasyUploadDocument(FileCabinet fileCabinet, IFileUploadInfo[] files, Document documentMetaData)

Parameters

TypeNameDescription
FileCabinetfileCabinet

The file cabinet.

IFileUploadInfo[]files

The files.

DocumentdocumentMetaData

The document meta data. Currently only the fields are used.

Returns

TypeDescription
Document

The uploaded document's metadata.

Remarks

The document is uploaded as optimal as possible. That is, if the document is small enough it is uploaded with a single request. If the file is large, the upload is done chunkwise.

EasyUploadDocument(FileCabinet, IFileUploadInfo[], params DocumentIndexField[])

Uploads array of files as new document.

[Gecko]
public static Document EasyUploadDocument(FileCabinet fileCabinet, IFileUploadInfo[] files, params DocumentIndexField[] indexFields)

Parameters

TypeNameDescription
FileCabinetfileCabinet

The file cabinet.

IFileUploadInfo[]files

The files.

DocumentIndexField[]indexFields

The index fields.

Returns

TypeDescription
Document

The uploaded document's metadata.

Remarks

The document is uploaded as optimal as possible. That is, if the document is small enough it is uploaded with a single request. If the file is large, the upload is done chunkwise.

EasyUploadDocumentAsync(DialogInfo, InputDocument)

Uploads a new document asynchronously.

[Lobster]
public static Task<DeserializedHttpResponse<Document>> EasyUploadDocumentAsync(this DialogInfo dialogInfo, InputDocument inputDocument)

Parameters

TypeNameDescription
DialogInfodialogInfo

The store dialog.

InputDocumentinputDocument

The document meta data.

Returns

TypeDescription
Task<DeserializedHttpResponse<Document>>

The uploaded document's metadata and its files.

Remarks

The document is uploaded as optimal as possible. That is, if the document is small enough it is uploaded with a single request. If the file is large, the upload is done chunkwise.

EasyUploadDocumentAsync(DialogInfo, IFileUploadInfo[], Document)

Uploads array of files as new document via a store dialog asynchronously.

[Gecko]
public static Task<DeserializedHttpResponse<Document>> EasyUploadDocumentAsync(DialogInfo dialogInfo, IFileUploadInfo[] files, Document documentMetaData)

Parameters

TypeNameDescription
DialogInfodialogInfo

The store dialog.

IFileUploadInfo[]files

The array of files.

DocumentdocumentMetaData

The document meta data. Currently only the fields are used.

Returns

TypeDescription
Task<DeserializedHttpResponse<Document>>

The uploaded document's metadata.

Remarks

The document is uploaded as optimal as possible. That is, if the document is small enough it is uploaded with a single request. If the file is large, the upload is done chunkwise.

EasyUploadDocumentAsync(FileCabinet, InputDocument)

Uploads a new document asynchronously.

[Lobster]
public static Task<DeserializedHttpResponse<Document>> EasyUploadDocumentAsync(this FileCabinet fileCabinet, InputDocument inputDocument)

Parameters

TypeNameDescription
FileCabinetfileCabinet

The file cabinet.

InputDocumentinputDocument

The document meta data.

Returns

TypeDescription
Task<DeserializedHttpResponse<Document>>

The uploaded document's metadata and its files.

Remarks

The document is uploaded as optimal as possible. That is, if the document is small enough it is uploaded with a single request. If the file is large, the upload is done chunkwise.

EasyUploadDocumentAsync(FileCabinet, IFileUploadInfo[], Document)

Uploads array of files as new document asynchronously.

[Gecko]
public static Task<DeserializedHttpResponse<Document>> EasyUploadDocumentAsync(FileCabinet fileCabinet, IFileUploadInfo[] files, Document documentMetaData)

Parameters

TypeNameDescription
FileCabinetfileCabinet

The file cabinet.

IFileUploadInfo[]files

The files.

DocumentdocumentMetaData

The document meta data. Currently only the fields are used.

Returns

TypeDescription
Task<DeserializedHttpResponse<Document>>

The uploaded document's metadata.

Remarks

The document is uploaded as optimal as possible. That is, if the document is small enough it is uploaded with a single request. If the file is large, the upload is done chunkwise.

EasyUploadDocumentAsync(FileCabinet, IFileUploadInfo[], params DocumentIndexField[])

Uploads array of files as new document asynchronously.

[Gecko]
public static Task<DeserializedHttpResponse<Document>> EasyUploadDocumentAsync(FileCabinet fileCabinet, IFileUploadInfo[] files, params DocumentIndexField[] indexFields)

Parameters

TypeNameDescription
FileCabinetfileCabinet

The file cabinet.

IFileUploadInfo[]files

The files.

DocumentIndexField[]indexFields

The index fields.

Returns

TypeDescription
Task<DeserializedHttpResponse<Document>>

The uploaded document's metadata.

Remarks

The document is uploaded as optimal as possible. That is, if the document is small enough it is uploaded with a single request. If the file is large, the upload is done chunkwise.

EasyUploadDocumentAsync(ServiceConnection, FileCabinet, string, IFileUploadInfo[], Document)

Uploads array of files as new document asynchronously.

[Wolf]
public static Task<DeserializedHttpResponse<Document>> EasyUploadDocumentAsync(this ServiceConnection serviceConnection, FileCabinet fileCabinet, string storeDialogId, IFileUploadInfo[] files, Document documentMetaData)

Parameters

TypeNameDescription
ServiceConnectionserviceConnection

The service connection

FileCabinetfileCabinet

The document tray.

stringstoreDialogId

The id of the store dialog

IFileUploadInfo[]files

The files.

DocumentdocumentMetaData

The document meta data. Currently only the fields are used.

Returns

TypeDescription
Task<DeserializedHttpResponse<Document>>

The uploaded document's metadata.

Remarks

The document is uploaded as optimal as possible. That is, if the document is small enough it is uploaded with a single request. If the file is large, the upload is done chunkwise.

EasyUploadFile(Document, IFileUploadInfo)

Uploads the specified file as new section to the specified document.

[Eagle]
public static Section EasyUploadFile(Document document, IFileUploadInfo file)

Parameters

TypeNameDescription
Documentdocument

The document.

IFileUploadInfofile

The file.

Returns

TypeDescription
Section

The metadata of the added section.

EasyUploadFileAsync(Document, IFileUploadInfo)

Uploads the specified file as new section to the specified document asynchronously.

[Eagle]
public static Task<DeserializedHttpResponse<Section>> EasyUploadFileAsync(Document document, IFileUploadInfo file)

Parameters

TypeNameDescription
Documentdocument

The document.

IFileUploadInfofile

The file.

Returns

TypeDescription
Task<DeserializedHttpResponse<Section>>

The metadata of the added section.

EasyUploadSingleDocument(FileCabinet, IFileUploadInfo, Document)

Uploads the specified file as new document to a basket.

[Eagle]
public static Document EasyUploadSingleDocument(FileCabinet fileCabinet, IFileUploadInfo file, Document documentMetaData)

Parameters

TypeNameDescription
FileCabinetfileCabinet

The file cabinet.

IFileUploadInfofile

The file.

DocumentdocumentMetaData

The document meta data. Currently only the fields are used.

Returns

TypeDescription
Document

The uploaded document's metadata.

Remarks

The document is uploaded as optimal as possible. That is, if the document is small enough it is uploaded with a single request. If the file is large, the upload is done chunkwise.

EasyUploadSingleDocument(FileCabinet, IFileUploadInfo, params DocumentIndexField[])

Uploads the specified file as new document to a basket or to a file cabinet.

[Eagle]
public static Document EasyUploadSingleDocument(FileCabinet fileCabinet, IFileUploadInfo file, params DocumentIndexField[] indexFields)

Parameters

TypeNameDescription
FileCabinetfileCabinet

The file cabinet.

IFileUploadInfofile

The file.

DocumentIndexField[]indexFields

The index fields.

Returns

TypeDescription
Document

The uploaded document's metadata.

Remarks

The document is uploaded as optimal as possible. That is, if the document is small enough it is uploaded with a single request. If the file is large, the upload is done chunkwise.

EasyUploadSingleDocumentAsync(FileCabinet, IFileUploadInfo, Document)

Uploads the specified file as new document to a basket asynchronously.

[Eagle]
public static Task<DeserializedHttpResponse<Document>> EasyUploadSingleDocumentAsync(FileCabinet fileCabinet, IFileUploadInfo file, Document documentMetaData)

Parameters

TypeNameDescription
FileCabinetfileCabinet

The file cabinet.

IFileUploadInfofile

The file.

DocumentdocumentMetaData

The document meta data. Currently only the fields are used.

Returns

TypeDescription
Task<DeserializedHttpResponse<Document>>

The uploaded document's metadata.

Remarks

The document is uploaded as optimal as possible. That is, if the document is small enough it is uploaded with a single request. If the file is large, the upload is done chunkwise.

EasyUploadSingleDocumentAsync(FileCabinet, IFileUploadInfo, Document, CancellationToken)

Uploads the specified file as new document to a basket asynchronously.

[Eagle]
public static Task<DeserializedHttpResponse<Document>> EasyUploadSingleDocumentAsync(FileCabinet fileCabinet, IFileUploadInfo file, Document documentMetaData, CancellationToken token)

Parameters

TypeNameDescription
FileCabinetfileCabinet

The file cabinet.

IFileUploadInfofile

The file.

DocumentdocumentMetaData

The document meta data. Currently only the fields are used.

CancellationTokentoken

Cancellation token.

Returns

TypeDescription
Task<DeserializedHttpResponse<Document>>

The uploaded document's metadata.

Remarks

The document is uploaded as optimal as possible. That is, if the document is small enough it is uploaded with a single request. If the file is large, the upload is done chunkwise.

EasyUploadSingleDocumentAsync(FileCabinet, IFileUploadInfo, params DocumentIndexField[])

Uploads the specified file as new document to a basket or to a file cabinet asynchronously.

[Eagle]
public static Task<DeserializedHttpResponse<Document>> EasyUploadSingleDocumentAsync(FileCabinet fileCabinet, IFileUploadInfo file, params DocumentIndexField[] indexFields)

Parameters

TypeNameDescription
FileCabinetfileCabinet

The file cabinet.

IFileUploadInfofile

The file.

DocumentIndexField[]indexFields

The index fields.

Returns

TypeDescription
Task<DeserializedHttpResponse<Document>>

The uploaded document's metadata.

Remarks

The document is uploaded as optimal as possible. That is, if the document is small enough it is uploaded with a single request. If the file is large, the upload is done chunkwise.