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
IWMVersionableAsset
IWMOwnableResource
IWMResource
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.Version
WMAssetBase.VersionName
WMAssetBase.Status
WMAssetBase.IsDeleted
WMAssetBase.Owner
WMAssetBase.OwnerID
WMAssetBase.OwnerType
WMAssetBase.CreateFullPathName(WMAssetDirectory, string)
WMAssetBase.GetFullPath(WMPrincipal, WMAssetIdentifier, string, WMAppDbContext)
WMAssetBase.GetIdentifier(bool)
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, IWMVersionableAsset, IWMOwnableResource, IWMResource

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, WMAssetIdentifier, 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, WMAssetIdentifier identifier, ADGArgs args, WMAppDbContext context)
Parameters
Type Name Description
WMPrincipal principal
WMAssetIdentifier identifier

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

ResourceDefinition()

The resource operation definition for this asset.

Declaration
public static WMResourceOperationsDefinition ResourceDefinition()
Returns
Type Description
WMResourceOperationsDefinition

Implements

IWMAsset
IDbEntity
IWMEntity
IDocumentedEntity
INamedEntity
IWMAssetDirectoryMember
IWMPrincipalOwned
IWMVersionableAsset
IWMOwnableResource
IWMResource
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