Melon Forum Component needs to be connected with the users of the web site. The implementation of the user module is different in the different web applications. To be reusable in all these web applications the component gives the possibility to the developers to implement ForumUserProvider abstract class by themselves. ForumUserProvider provides the interface between Melon Forum Component and user data sources.
Methods that should be implemented:
- public abstract
ForumUser Load();
This method should return instance of class ForumUser which is initiated with details of the current logged user. Not all properties of ForumUser are required. The minimum set of forum user properties is: UserName, Email .
- public abstract
ForumUser Load(string
username);
This method should return instance of class ForumUser which is initiated with details of the user with unique user name specified as input parameter. Not all properties of ForumUser are required. The minimum set of forum user properties is: UserName, Email.
- public abstract
ForumUserDataTable GetAllUsers();
This method should return details for all users existing on the web site where the component is integrated.
- public abstract
ForumUserDataTable List(List<string> userNames, ForumUser
filter);
This method should return user details for these users specified by unique user names in the list of userNames which are corresponding to the search criteria set in the filter object.
- public abstract
int Save(ForumUser
forumUser);
The component gives possibility for user profile modification. Save method should update the user details in the database. The unique identifier of the user which details should be updated is specifies in Id property of ForumUser instance objForumUser.