Class OtherMaterial
Represents external resources referenced by another item.
Implements
Inherited Members
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
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
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
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
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
WatchProperties()
Watch for property changed events
Declaration
protected override void WatchProperties()