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, IActivityTypeInfoProvider>, 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

ActivityTypeColor

Gets or sets color used for coloring of activity type name in listings.

[DatabaseField]
[Obsolete("The member is deprecated and will be removed in the next version.")]
[ObsoleteSince(29, 5)]
public virtual string ActivityTypeColor { get; set; }

Property Value

string

ActivityTypeDescription

Gets or sets the description for the activity.

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

Property Value

string

ActivityTypeDetailFormControl

Gets or sets name of form control (selector) for setting ItemDetailID

[DatabaseField]
[Obsolete("The member is deprecated and will be removed in the next version.")]
[ObsoleteSince(29, 5)]
public virtual string ActivityTypeDetailFormControl { 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

ActivityTypeItemDetailObjectType

Gets or sets object type of activity type related object.

[DatabaseField]
[Obsolete("The member is deprecated and will be removed in the next version.")]
[ObsoleteSince(29, 5)]
public virtual string ActivityTypeItemDetailObjectType { get; set; }

Property Value

string

ActivityTypeItemObjectType

Gets or sets object type of activity type related object.

[DatabaseField]
[Obsolete("The member is deprecated and will be removed in the next version.")]
[ObsoleteSince(29, 5)]
public virtual string ActivityTypeItemObjectType { get; set; }

Property Value

string

ActivityTypeMainFormControl

Gets or sets name of form control (selector) for setting ItemID

[DatabaseField]
[Obsolete("The member is deprecated and will be removed in the next version.")]
[ObsoleteSince(29, 5)]
public virtual string ActivityTypeMainFormControl { get; set; }

Property Value

string

ActivityTypeManualCreationAllowed

Gets or sets whether the activity is enabled.

[DatabaseField]
[Obsolete("The member is deprecated and will be removed in the next version.")]
[ObsoleteSince(29, 5)]
public virtual bool ActivityTypeManualCreationAllowed { 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()