narsil/Tanshu.Accounts.Contracts/DAOFactory/MembershipDAO.cs
2010-03-02 23:26:21 +05:30

27 lines
650 B
C#

using System;
using Tanshu.Accounts.Contracts;
namespace Tanshu.Accounts.DAOFactory
{
public interface IMembershipDAO : IDisposable
{
bool ValidateUser(string name, string password);
bool IsUserInRole(string username, string roleName);
bool IsUserInRole(Guid userID, string roleName);
string[] GetRolesForUser(string username);
UserBO GetUserFromName(string name);
string[] GetAllRoles();
void AddUsersToRoles(string[] usernames, string[] roleNames);
void RemoveUsersFromRoles(string[] usernames, string[] roleNames);
bool RoleExists(string roleID);
}
}