Show / Hide Table of Contents

Class OpenDIAsset

Base class for Open DI Assets. All properties are nullable to support partials for use in PATCH operations. Should support .ToDTOPartial() and .ToDTODefault() to represent the two modes (full for post, put, partial for patch).

Inheritance
object
OpenDIBase
OpenDIAsset
OpenDIAssetDirectory
OpenDIDataReader
OpenDIDataSource
OpenDIDataWriter
OpenDIDecisionModel
OpenDIDocument
OpenDIDocumentIndex
OpenDIHTTPConnection
OpenDIHTTPRequest
OpenDILLM
OpenDILLMConnection
OpenDIModel
Inherited Members
OpenDIBase.openDIVersion
OpenDIBase.FQNSeparator
OpenDIBase.id
OpenDIBase.name
OpenDIBase.summary
OpenDIBase.documentation
OpenDIBase.documentationMIMEType
OpenDIBase.properties
OpenDIBase.GetWMType(string)
OpenDIBase.GetOpenDIType(Type)
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Quantellia.WMServer.OpenDI
Assembly: WMServer.dll
Syntax
public class OpenDIAsset : OpenDIBase

Constructors

OpenDIAsset()

Default constructor

Declaration
public OpenDIAsset()

OpenDIAsset(WMAssetBase)

Declaration
public OpenDIAsset(WMAssetBase asset)
Parameters
Type Name Description
WMAssetBase asset

Fields

DIDataReader

Declaration
public const string DIDataReader = "DIDataReader"
Field Value
Type Description
string

DIDataSource

Declaration
public const string DIDataSource = "DIDataSource"
Field Value
Type Description
string

DIDataWriter

Declaration
public const string DIDataWriter = "DIDataWriter"
Field Value
Type Description
string

DIDirectory

Declaration
public const string DIDirectory = "DIDirectory"
Field Value
Type Description
string

Properties

Status

The status of this version.

Declaration
public string? Status { get; protected set; }
Property Value
Type Description
string

Version

The version number of this asset.

Declaration
public int? Version { get; protected set; }
Property Value
Type Description
int?

VersionName

The name of this version.

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

fullPathName

Full path name of this directory.

Declaration
public string? fullPathName { get; protected set; }
Property Value
Type Description
string

imageURL

Store an image associated with the asset.

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

ownerID

An optional parameter to specify the ID of the asset's owner.

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

ownerType

An optional parameter to specify what the asset should belong to. If this does not satisf

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

parent

Reference to the Parent of this asset in the asset repository

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

Methods

Create(WMAssetBase)

Create the appropriate OpenDIAsset class based in the supplied WMAssetBase object.

Declaration
public static OpenDIAsset Create(WMAssetBase asset)
Parameters
Type Name Description
WMAssetBase asset
Returns
Type Description
OpenDIAsset

ToDTODefault<T>()

Create a new IWMAssetBaseDTO object that contains the properties of this OpenDIAsset and fills in default values that were missing, and throws a validation exception if required values are missing.

Declaration
public T ToDTODefault<T>() where T : IWMAssetBaseDTO, new()
Returns
Type Description
T

A IWMAssetBaseDTO object that contains the properties of this OpenDIAsset

Type Parameters
Name Description
T

ToDTOPartial<T>()

Create a new IWMAssetBaseDTO object that contains only the properties of this OpenDIAsset with no default inclusion.

Declaration
public T ToDTOPartial<T>() where T : IWMAssetBaseDTO, new()
Returns
Type Description
T

A IWMAssetBaseDTO object that contains the properties of this OpenDIAsset

Type Parameters
Name Description
T
In this article
Back to top Copyright © 2025 Quantellia LLC.    Version 2.0.0 Revision 399     Last Updated 11/16/2025    DRAFT DOCUMENTATION. SUBJECT TO CHANGE