Ektron.Cms.Framework.Settings.Notifications.NotificationPublishPreferenceManager

Framework API class for managing a users notification publishing preferences.

Properties
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.
RequestInformation Gets the current Request Information.
SitePath Gets the site path.
UserId Gets or sets the currently logged in user ID.
Method Description
NotificationPublishPreferenceManager Constructor
NotificationPublishPreferenceManager(ApiAccessMode) Constructor
Add(Int64,List<Int64>) Sets the list of Activity Types for publishing for a given user. Any Activity Types not listed will be disabled.
AllowPublication(Int64,Int64) Returns true if the supplied activity type id is enabled for publishing for the supplied User Id.
GetDefaultList Returns the list of default notification publishing preferences for the system.
UpdateDefaultPreferences(List<Int64>) Sets the default list of Activity Types for publishing. Any Activity Types not listed will be disabled.
GetList(Int64) Gets list of notification publishing preferences for a given user.