27 lines
650 B
C#
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);
|
|||
|
}
|
|||
|
}
|