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
| Type | Description |
|---|---|
| Int32 |
Fields
public List<DocumentIndexField> Fields { get; set; }
Property Value
| Type | Description |
|---|---|
| List<DocumentIndexField> |
FileCabinetId
public string FileCabinetId { get; set; }
Property Value
| Type | Description |
|---|---|
| String |
FirstSectionId
public string FirstSectionId { get; set; }
Property Value
| Type | Description |
|---|---|
| String |
Flags
public DocumentFlags Flags { get; set; }
Property Value
| Type | Description |
|---|---|
| DocumentFlags |
Links
public Link[] Links { get; set; }
Property Value
| Type | Description |
|---|---|
| Link[] |
RightsRelationLink
Gets the Uri of the link for the relation “rights”.
public string RightsRelationLink { get; }
Property Value
| Type | Description |
|---|---|
| String |
Remarks
Returns the uri of the link for the relation “rights” if it exists, or
SectionCount
public int SectionCount { get; set; }
Property Value
| Type | Description |
|---|---|
| Int32 |
ThumbnailRelationLink
Gets the Uri of the link for the relation “thumbnail”.
public string ThumbnailRelationLink { get; }
Property Value
| Type | Description |
|---|---|
| String |
Remarks
Returns the uri of the link for the relation “thumbnail” if it exists, or
VersionStatus
Version management status of the document
public VersionManagementStatus VersionStatus { get; set; }
Property Value
| Type | Description |
|---|---|
| VersionManagementStatus |
Methods
GetStreamFromThumbnailRelation()
Calls the HTTP Get method on the link for the relation “thumbnail”.
public System.IO.Stream GetStreamFromThumbnailRelation()
Returns
| Type | Description |
|---|---|
| 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
| Type | Description |
|---|---|
| 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
| Type | Name | Description |
|---|---|---|
| System.Threading.CancellationToken | cancellationToken | The cancellation token to cancel the request. |
Returns
| Type | Description |
|---|---|
| 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
| Type | Name | Description |
|---|---|---|
| String | requestedContentType | Mime type of the requested body content, i.e. application/pdf. |
| System.IO.Stream | dataToSend | The data to send. This data is written into the request body. |
Returns
| Type | Description |
|---|---|
| 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
| Type | Name | Description |
|---|---|---|
| String | requestedContentType | Mime type of the requested body content, i.e. application/pdf. |
| System.IO.Stream | dataToSend | The data to send. This data is written into the request body. |
Returns
| Type | Description |
|---|---|
| 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
| Type | Name | Description |
|---|---|---|
| System.Threading.CancellationToken | cancellationToken | The cancellation token to cancel the request. |
| String | requestedContentType | Mime type of the requested body content, i.e. application/pdf. |
| System.IO.Stream | dataToSend | The data to send. This data is written into the request body. |
Returns
| Type | Description |
|---|---|
| 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
| Type | Name | Description |
|---|---|---|
| HttpClientProxy | proxy | The |
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.