Class BpwBaseDocument

Namespace
DocuWare.Platform.Bpw.Schemas
Assembly
DocuWare.Platform.ServerClient.dll

Structure, describing the rights for specific document

public class BpwBaseDocument : IRelationsWithProxy
Inheritance
BpwBaseDocument
Derived

Constructors

BpwBaseDocument()

Creates a new instance of this class

public BpwBaseDocument()

Properties

DocId

public int DocId { get; set; }

Property Value

TypeDescription
Int32

Fields

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

Property Value

TypeDescription
List<DocumentIndexField>

FileCabinetId

public string FileCabinetId { get; set; }

Property Value

TypeDescription
String

FirstSectionId

public string FirstSectionId { get; set; }

Property Value

TypeDescription
String

Flags

public DocumentFlags Flags { get; set; }

Property Value

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

Property Value

TypeDescription
Link[]

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

public string RightsRelationLink { get; }

Property Value

TypeDescription
String

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

SectionCount

public int SectionCount { get; set; }

Property Value

TypeDescription
Int32

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

public string ThumbnailRelationLink { get; }

Property Value

TypeDescription
String

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

VersionStatus

Version management status of the document

public VersionManagementStatus VersionStatus { get; set; }

Property Value

TypeDescription
VersionManagementStatus

Methods

GetStreamFromThumbnailRelation()

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

public System.IO.Stream GetStreamFromThumbnailRelation()

Returns

TypeDescription
System.IO.Stream

The content of the response.

GetStreamFromThumbnailRelationAsync()

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

public System.Threading.Tasks.Task<DeserializedHttpResponse<System.IO.Stream>> GetStreamFromThumbnailRelationAsync()

Returns

TypeDescription
System.Threading.Tasks.Task<DeserializedHttpResponse<System.IO.Stream>>

A task which runs the request.

Remarks

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

GetStreamFromThumbnailRelationAsync(System.Threading.CancellationToken)

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

public System.Threading.Tasks.Task<DeserializedHttpResponse<System.IO.Stream>> GetStreamFromThumbnailRelationAsync(System.Threading.CancellationToken cancellationToken)

Parameters

TypeNameDescription
System.Threading.CancellationTokencancellationToken

The cancellation token to cancel the request.

Returns

TypeDescription
System.Threading.Tasks.Task<DeserializedHttpResponse<System.IO.Stream>>

A task which runs the request.

Remarks

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

PostToRightsRelationForSection(String, System.IO.Stream)

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

public Section PostToRightsRelationForSection(string requestedContentType, System.IO.Stream dataToSend)

Parameters

TypeNameDescription
StringrequestedContentType

Mime type of the requested body content, i.e. application/pdf.

System.IO.StreamdataToSend

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

Returns

TypeDescription
Section

The content of the response.

PostToRightsRelationForSectionAsync(String, System.IO.Stream)

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

public System.Threading.Tasks.Task<DeserializedHttpResponse<Section>> PostToRightsRelationForSectionAsync(string requestedContentType, System.IO.Stream dataToSend)

Parameters

TypeNameDescription
StringrequestedContentType

Mime type of the requested body content, i.e. application/pdf.

System.IO.StreamdataToSend

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

Returns

TypeDescription
System.Threading.Tasks.Task<DeserializedHttpResponse<Section>>

A task which runs the request.

Remarks

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

PostToRightsRelationForSectionAsync(System.Threading.CancellationToken, String, System.IO.Stream)

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

public System.Threading.Tasks.Task<DeserializedHttpResponse<Section>> PostToRightsRelationForSectionAsync(System.Threading.CancellationToken cancellationToken, string requestedContentType, System.IO.Stream dataToSend)

Parameters

TypeNameDescription
System.Threading.CancellationTokencancellationToken

The cancellation token to cancel the request.

StringrequestedContentType

Mime type of the requested body content, i.e. application/pdf.

System.IO.StreamdataToSend

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

Returns

TypeDescription
System.Threading.Tasks.Task<DeserializedHttpResponse<Section>>

A task which runs the request.

Remarks

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

SetProxy(HttpClientProxy)

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

public void SetProxy(HttpClientProxy proxy)

Parameters

TypeNameDescription
HttpClientProxyproxy

The 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.