Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

Interface INotificationUserRepository

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Signature for a component that can be used to register NotificationPreference.

Namespace: EPiServer.Notification.Internal
Assembly: EPiServer.dll
Version: 11.20.7
Syntax
public interface INotificationUserRepository : INotificationPreferenceRegister

Methods

IsInterested(INotificationUser, String, String)

Declaration
bool IsInterested(INotificationUser user, string channelName, string typeName = null)
Parameters
Type Name Description
INotificationUser user
System.String channelName
System.String typeName
Returns
Type Description
System.Boolean

ListPreferences(String, String)

Declaration
IList<NotificationPreference> ListPreferences(string userName, string channelName)
Parameters
Type Name Description
System.String userName
System.String channelName
Returns
Type Description
System.Collections.Generic.IList<NotificationPreference>

ListRegisteredPreferences(String)

Declaration
IList<NotificationPreference> ListRegisteredPreferences(string userName)
Parameters
Type Name Description
System.String userName
Returns
Type Description
System.Collections.Generic.IList<NotificationPreference>

RegisterPreferences(String, IList<NotificationPreference>)

Declaration
void RegisterPreferences(string userName, IList<NotificationPreference> userPreferences)
Parameters
Type Name Description
System.String userName
System.Collections.Generic.IList<NotificationPreference> userPreferences

Extension Methods