narsil/Tanshu.Accounts.Contracts/DAOFactory/MembershipDAO.cs

27 lines
650 B
C#
Raw Normal View History

2010-03-02 17:56:21 +00:00
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);
}
}