Table of Contents

Class ActivityTypeInfo

Namespace
CMS.Activities
Assembly
CMS.Activities.dll

ActivityTypeInfo data container class.

[InfoCache(InfoCacheBy.ID|InfoCacheBy.Name, LoadEagerly = true, Priority = InfoCachePriority.NotRemovable)]
public class ActivityTypeInfo : AbstractInfo<ActivityTypeInfo, IInfoProvider<ActivityTypeInfo>>, IExtensible, IInfo, IAdvancedDataContainer, ICMSObject, IHierarchicalDataContainer, IDataContainer, ISimpleDataContainer, IVirtualHierarchicalObject, IHierarchicalObject, INameIndexable, IMacroObject, IInfoWithId, IInfoWithName
Inheritance
object
ActivityTypeInfo
Implements
Inherited Members
Extension Methods

Constructors

ActivityTypeInfo()

Constructor - Creates an empty ActivityTypeInfo object.

public ActivityTypeInfo()

ActivityTypeInfo(DataRow)

Constructor - Creates a new ActivityTypeInfo object from the given DataRow.

public ActivityTypeInfo(DataRow dr)

Parameters

dr DataRow

DataRow with the object data

Fields

OBJECT_TYPE

Object type

public const string OBJECT_TYPE = "om.activitytype"

Field Value

string

TYPEINFO

Type information.

public static ObjectTypeInfo TYPEINFO

Field Value

ObjectTypeInfo

Properties

ActivityTypeDescription

Gets or sets the description for the activity.

[DatabaseField]
public virtual string ActivityTypeDescription { get; set; }

Property Value

string

ActivityTypeDisplayName

Gets or sets the display name of the activity type.

[DatabaseField]
public virtual string ActivityTypeDisplayName { get; set; }

Property Value

string

ActivityTypeEnabled

Gets or sets whether the activity is enabled.

[DatabaseField]
public virtual bool ActivityTypeEnabled { get; set; }

Property Value

bool

ActivityTypeID

Gets or sets the ID of the activity type.

[DatabaseField]
public virtual int ActivityTypeID { get; set; }

Property Value

int

ActivityTypeIsCustom

Gets or sets whether the activity is custom.

[DatabaseField]
public virtual bool ActivityTypeIsCustom { get; set; }

Property Value

bool

ActivityTypeName

Gets or sets the the code name of the activity type.

[DatabaseField]
public virtual string ActivityTypeName { get; set; }

Property Value

string

Methods

DeleteObject()

Deletes the object using appropriate provider.

protected override void DeleteObject()

InsertAsCloneInternal(CloneSettings, CloneResult, BaseInfo)

Clones activity and inserts it to DB as new object.

protected override void InsertAsCloneInternal(CloneSettings settings, CloneResult result, BaseInfo originalObject)

Parameters

settings CloneSettings

Cloning settings

result CloneResult

Cloning result

originalObject BaseInfo

Original source BaseInfo (object being cloned)

RemoveObjectDependencies(bool, bool)

Removes object dependencies

protected override void RemoveObjectDependencies(bool deleteAll = false, bool clearCache = true)

Parameters

deleteAll bool
clearCache bool

SetObject()

Updates the object using appropriate provider.

protected override void SetObject()