Ektron.Cms.Framework.Activity.ActivityManager

Activity Manager class

Properties
ActivityService Gets instance to IActivityStream.
ActivityStreamService Gets instance to IActivityStream.
ApiMode Gets or sets the current API access mode. If set to Admin, the API runs with the permissions of an administrator.
ContentLanguage Gets or sets the current content language.
InPreviewMode Gets or sets the current Preview Mode. Returns true if the site is in site preview mode.
IsActivityEmailReplyEnabled Gets setting indicating if Activity Email Replies are enabled. Read Only - use EnableActivityEmailReply and DisableActivityEmailReply to set property.
IsActivityPublishingEnabled Gets setting indicating if Activity Publishing is enabled. Read Only - use EnableActivityPublishing and DisableActivityPublishing to set property.
RequestInformation Gets the current Request Information.
SitePath Gets the site path.
UserId Gets or sets the currently logged in user ID.
Method Description
ActivityManager Constructor
ActivityManager(ApiAccessMode)
Add(ActivityData) Adds a new activity to the general feed.
Update(ActivityData) Updates an activity in the general feed.
Delete(Int64) Delete's an activity from the general feed.
AddActivityMessage(Int64,Int32,String) Adds a language specific message for an activity in the general feed.
UpdateActivityMessage(Int64,Int32,String) Updates an existing message for an activity in the general feed.
GetItem(Int64) Returns a single ActivityStream Item by ID.
GetList(ActivityCriteria) Returns a list of all activities based upon criteria supplied.
GetListForUser(Int64,PagingInfo) Returns a list of activities associated with a user. These will be activities where the user is the subject or the Actor.
GetListForUser(Int64,PagingInfo,Int32) Returns a list of activities associated with a user. These will be activities where the user is the subject or the Actor.
GetList(ActivityCriteria,ActivityFeedType,Int64) Gets an Activity Feed based upon the feedtype and the Id.
IsSiteActivityPublishingEnabled(Int64) IsSiteActivityPublishingEnabled
EnableActivityPublishing(Int64) Enables activity publishing for the site. This will also setup default notification preferences for any existin users. Warning, depending on the number of users, this call could be time consuming.
DisableActivityPublishing(Int64) Disables activity publishing for the site.
EnableActivityEmailReply(Int64) Enables Activity Email Replies for the site.
DisableActivityEmailReply(Int64) Disables Activity Email Replies for the site.
Publish(ActivityData) Publishes an activity to all subscribers.