Show / Hide Table of Contents

Class OtherMaterial

Represents external resources referenced by another item.

Inheritance
object
NotificationObject
IdentifiableBase
VersionableBase
OtherMaterial
Implements
INotifyPropertyChanged
IVersionable
IIdentifiable
IVisitable
IDublinCoreDescribable
IHasCustomFields
Inherited Members
VersionableBase.Accept(IVersionableVisitor)
VersionableBase.IsDirty
VersionableBase.IsPublished
VersionableBase.ChildrenDereferenced
VersionableBase.IsPopulated
VersionableBase.Version
VersionableBase.VersionDate
VersionableBase.VersionResponsibility
VersionableBase.VersionRationale
VersionableBase.CompositeId
VersionableBase.OtherMaterials
VersionableBase.BasedOn
VersionableBase.SucceededBy
VersionableBase.Attachments
VersionableBase.ThumbnailImageUri
VersionableBase.BannerImageUri
VersionableBase.DisableChangeTracking
VersionableBase.RemoveChildHelper(IVersionable, params IList[])
VersionableBase.AddChild(IVersionable)
VersionableBase.ChildTypesAccepted
VersionableBase.TryReplaceChild<T>(Func<T>, Action<T>, IdentifierTriple, IVersionable)
VersionableBase.ToString()
IdentifiableBase.DefaultAgencyId
IdentifiableBase.AgencyId
IdentifiableBase.Identifier
IdentifiableBase.UserIds
IdentifiableBase.CustomFields
IdentifiableBase.UserAttributes
IdentifiableBase.GetUserIdValue(string)
IdentifiableBase.RemoveChildHelper(IdentifierTriple, params IList[])
NotificationObject.PropertyChanged
NotificationObject.RaisePropertyChanged(string)
NotificationObject.OnPropertyChanged(string)
NotificationObject.ResumePropertyEvents()
NotificationObject.SuspendPropertyEvents()
NotificationObject.PropertyEventsSuspended
NotificationObject.PropagateChildChanges(INotifyCollectionChanged, string)
NotificationObject.WatchProperty(INotifyPropertyChanged, string)
NotificationObject.WatchCollection(INotifyCollectionChanged, string)
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: Algenta.Colectica.Model
Assembly: Algenta.Colectica.Model.dll
Syntax
public class OtherMaterial : VersionableBase, INotifyPropertyChanged, IVersionable, IIdentifiable, IVisitable, IDublinCoreDescribable, IHasCustomFields

Constructors

OtherMaterial()

Initializes a new instance of the OtherMaterial class.

Declaration
public OtherMaterial()

Properties

Description

Gets the description.

Declaration
public virtual MultilingualString Description { get; }
Property Value
Type Description
MultilingualString

DisplayLabel

Gets the display label.

Declaration
public override string DisplayLabel { get; }
Property Value
Type Description
string
Overrides
VersionableBase.DisplayLabel

DublinCoreMetadata

Gets the Dublin Core metadata.

Declaration
public DublinCore DublinCoreMetadata { get; set; }
Property Value
Type Description
DublinCore

ItemType

Gets the universally unique identifier representing the item's type.

Declaration
public override Guid ItemType { get; }
Property Value
Type Description
Guid

The identifier representing the item's type.

Overrides
VersionableBase.ItemType

MaterialType

Gets or sets the type of the material. This can be used for categorization purposes.

Declaration
public CodeValue MaterialType { get; set; }
Property Value
Type Description
CodeValue

The type of the material.

MimeType

Gets or sets the MIME type of the material, for example, "application/pdf".

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

The type of the MIME.

OtherMaterialItemType

Gets the type of the other material item.

Declaration
public static Guid OtherMaterialItemType { get; }
Property Value
Type Description
Guid

The type of the other material item.

PopulatedEmbededFromParent

In DDI prior to 3.3, OtherMaterial were not versioned items. This flag is set to true when an OtherMaterial was populated from a prior version where it was not previously a versionable item.

Declaration
public bool PopulatedEmbededFromParent { get; set; }
Property Value
Type Description
bool
Remarks

Users should additionally save these OtherMaterials to a repository when editing the parent, as the registered item is essentially split into two identities.

SizeInBytes

Specifies the size of the file in bytes.

Declaration
public long? SizeInBytes { get; set; }
Property Value
Type Description
long?

UrlReference

Gets or sets the URL indicating the location of the cited external material.

Declaration
public Uri UrlReference { get; set; }
Property Value
Type Description
Uri

The URL reference.

UrnReference

Gets or sets the URN which identifies the cited external material.

Declaration
public Uri UrnReference { get; set; }
Property Value
Type Description
Uri

The urn reference.

Methods

GetChildren()

Gets the identifiers of the item's children.

Declaration
public override ChildItemCollection GetChildren()
Returns
Type Description
ChildItemCollection

The identifiers of the item's children.

Overrides
VersionableBase.GetChildren()

RemoveChild(IdentifierTriple)

Removes the specified child.

Declaration
public override int RemoveChild(IdentifierTriple child)
Parameters
Type Name Description
IdentifierTriple child

The child to be removed.

Returns
Type Description
int

The number of children removed from the item.

Overrides
VersionableBase.RemoveChild(IdentifierTriple)
Exceptions
Type Condition
ArgumentNullException

child

ReplaceChild(IdentifierTriple, IVersionable)

Replaces the child with the specified identifier with the provided item.

Declaration
public override int ReplaceChild(IdentifierTriple toReplace, IVersionable child)
Parameters
Type Name Description
IdentifierTriple toReplace

The identifier of the child to replace.

IVersionable child

The new child.

Returns
Type Description
int

The number of children replaced.

Overrides
VersionableBase.ReplaceChild(IdentifierTriple, IVersionable)

WatchProperties()

Watch for property changed events

Declaration
protected override void WatchProperties()
Overrides
VersionableBase.WatchProperties()

Implements

INotifyPropertyChanged
IVersionable
IIdentifiable
IVisitable
IDublinCoreDescribable
IHasCustomFields

Extension Methods

Extensions.Yield<T>(T)
In this article
Back to top Generated by DocFX