Show / Hide Table of Contents

Class WMDocument

Class providing directory type behavior to IWMAsset

Inheritance
object
WMAssetBase
WMDocument
Implements
IWMAsset
IDbEntity
IWMEntity
IDocumentedEntity
INamedEntity
IWMAssetDirectoryMember
IWMPrincipalOwned
Inherited Members
WMAssetBase.ID
WMAssetBase.CreatedBy
WMAssetBase.CreatedDate
WMAssetBase.LastUpdatedBy
WMAssetBase.LastUpdatedDate
WMAssetBase.Name
WMAssetBase.Documentation
WMAssetBase.DocumentationMIMEType
WMAssetBase.Summary
WMAssetBase.ParentDirectory
WMAssetBase.FullPathName
WMAssetBase.Properties
WMAssetBase.Owner
WMAssetBase.OwnerID
WMAssetBase.OwnerType
WMAssetBase.Get<T>(WMPrincipal, string, WMAppDbContext)
WMAssetBase.GetSync<T>(string, string)
WMAssetBase.CreateFullPathName(WMAssetDirectory, string)
WMAssetBase.GetFullPath(WMPrincipal, string, string, WMAppDbContext)
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Quantellia.WMServer.Asset.Document
Assembly: WMServer.dll
Syntax
[HasDTO(typeof(WMDocumentDTO))]
public class WMDocument : WMAssetBase, IWMAsset, IDbEntity, IWMEntity, IDocumentedEntity, INamedEntity, IWMAssetDirectoryMember, IWMPrincipalOwned

Constructors

WMDocument()

Parameterless Constructor. Will populate a random GUID as ID

Declaration
public WMDocument()

WMDocument(string)

Constructor that specifies ID

Declaration
public WMDocument(string ID)
Parameters
Type Name Description
string ID

Properties

DocumentData

A Base-64 encoded string representing the stored document

Declaration
public string DocumentData { get; set; }
Property Value
Type Description
string

DocumentEditedText

Stores the text of a document in an editable format. Is not guaranteed to be correct, or exist.

Declaration
public string DocumentEditedText { get; set; }
Property Value
Type Description
string

DocumentMIMEType

The type of the stored data.

Declaration
public string DocumentMIMEType { get; set; }
Property Value
Type Description
string

DocumentName

The name of the source document that was imported or created.

Declaration
public string DocumentName { get; set; }
Property Value
Type Description
string

Methods

GenerateFromTemplate(WMPrincipal, string, ADGArgs, WMAppDbContext)

Generates a new document given an existing template, and the evaluation results from a model in the decision model engine.

Declaration
public static Task<ADGReturnArgs> GenerateFromTemplate(WMPrincipal principal, string id, ADGArgs args, WMAppDbContext context)
Parameters
Type Name Description
WMPrincipal principal
string id

The id of the template document

ADGArgs args

Args dictating the ADG

WMAppDbContext context
Returns
Type Description
Task<ADGReturnArgs>

GetText()

Convert the contained document to text, and return as a string.

Declaration
public string GetText()
Returns
Type Description
string

Implements

IWMAsset
IDbEntity
IWMEntity
IDocumentedEntity
INamedEntity
IWMAssetDirectoryMember
IWMPrincipalOwned
In this article
Back to top Copyright © 2025 Quantellia LLC.    Version 2.0.0 Revision 399     Last Updated 1/15/2025    DRAFT DOCUMENTATION. SUBJECT TO CHANGE