Table of Contents

Class NotImplementedInfo

Namespace
CMS.DataEngine
Assembly
CMS.DataEngine.dll

Info object with no methods implemented. Serves as a base info for partially implemented info objects.

public class NotImplementedInfo : BaseInfo, IExtensible, IInfo, IAdvancedDataContainer, ICMSObject, IHierarchicalDataContainer, IDataContainer, ISimpleDataContainer, IVirtualHierarchicalObject, IHierarchicalObject, INameIndexable, IMacroObject
Inheritance
object
NotImplementedInfo
Implements
Inherited Members
Extension Methods

Constructors

NotImplementedInfo(ObjectTypeInfo)

Constructor

protected NotImplementedInfo(ObjectTypeInfo typeInfo)

Parameters

typeInfo ObjectTypeInfo

Type info to use for initialization

Properties

ClearCacheMethods

Dictionary with the methods for clearing the internal object cache [columnName] => [clearCacheAction]

protected override IDictionary<string, Action<BaseInfo>> ClearCacheMethods { get; }

Property Value

IDictionary<string, Action<BaseInfo>>

ColumnNames

Column names.

public override List<string> ColumnNames { get; }

Property Value

List<string>

HasChanged

Returns true if the object changed.

public override bool HasChanged { get; }

Property Value

bool

Methods

CloneObject(bool)

Creates the clone of the object.

public override BaseInfo CloneObject(bool clear = false)

Parameters

clear bool

If true, the object is cleared to be able to create new object

Returns

BaseInfo

ContainsColumn(string)

Returns true if the object contains given column.

public override bool ContainsColumn(string columnName)

Parameters

columnName string

Column name

Returns

bool

DeleteObject()

Deletes the object using appropriate provider.

protected override void DeleteObject()

ExecuteWithOriginalData(Action)

Executes the given action using original data of the object

public override void ExecuteWithOriginalData(Action action)

Parameters

action Action

Action to execute

GetColumnNames()

Gets the default list of column names for this class

protected override List<string> GetColumnNames()

Returns

List<string>

LoadData(LoadDataSettings)

Loads the object from the given data container

protected override void LoadData(LoadDataSettings settings)

Parameters

settings LoadDataSettings

Data settings

NewObject(LoadDataSettings)

Creates new object of the given class

protected override BaseInfo NewObject(LoadDataSettings settings)

Parameters

settings LoadDataSettings

Data settings

Returns

BaseInfo

ResetChanges()

Resets the object changes and keeps the new values as unchanged.

public override void ResetChanges()

RevertChanges()

Reverts the object changes to the original values.

public override void RevertChanges()

SetObject()

Updates the object using appropriate provider.

protected override void SetObject()

SetReadOnly()

Locks the object as a read-only

protected override void SetReadOnly()

SetValue(string, object)

Sets the object value.

public override bool SetValue(string columnName, object value)

Parameters

columnName string
value object

Returns

bool

TryGetValue(string, out object)

Returns value of column.

public override bool TryGetValue(string columnName, out object value)

Parameters

columnName string

Column name

value object

Returns the value

Returns

bool

Returns true if the operation was successful (the value was present)

Validate()

Validates whether the info object's state satisfies domain specific constraints and returns the validation result.

protected override InfoValidationResult Validate()

Returns

InfoValidationResult

Returns validation result with IsValid set to true, if value is valid. Otherwise returns result with the flag set to false and a corresponding error message.