C# Class Resgrid.Repositories.DataRepository.IdentityRepository

Inheritance: IIdentityRepository
显示文件 Open project: Resgrid/Core

Public Methods

Method Description
AddUserToRole ( string userId, string roleId ) : void
GetAll ( ) : List
GetAllMembershipsForDepartment ( int departmentId ) : List
GetAllUsersCreatedAfterTimestamp ( DateTime timestamp ) : List
GetAllUsersForDepartment ( int departmentId ) : List
GetAllUsersForDepartmentWithinLimits ( int departmentId, bool retrieveHidden ) : List
GetAllUsersForDepartmentWithinLimitsAsync ( int departmentId, bool retrieveHidden ) : Task>
GetAllUsersForGroup ( int groupId ) : List
GetAllUsersGroupsAndRoles ( int departmentId, bool retrieveHidden, bool retrieveDisabled, bool retrieveDeleted ) : List
GetRoleForUserRole ( string userId, string roleId ) : IdentityUserRole
GetUserByEmail ( string email ) : IdentityUser
GetUserById ( string userId ) : IdentityUser
GetUserByUserNameAsync ( string userName ) : Task
InitUserExtInfo ( string userId ) : void
Update ( IdentityUser user ) : IdentityUser
UpdateEmail ( string userId, string newEmail ) : void
UpdateUsername ( string oldUsername, string newUsername ) : void

Method Details

AddUserToRole() public method

public AddUserToRole ( string userId, string roleId ) : void
userId string
roleId string
return void

GetAll() public method

public GetAll ( ) : List
return List

GetAllMembershipsForDepartment() public method

public GetAllMembershipsForDepartment ( int departmentId ) : List
departmentId int
return List

GetAllUsersCreatedAfterTimestamp() public method

public GetAllUsersCreatedAfterTimestamp ( DateTime timestamp ) : List
timestamp DateTime
return List

GetAllUsersForDepartment() public method

public GetAllUsersForDepartment ( int departmentId ) : List
departmentId int
return List

GetAllUsersForDepartmentWithinLimits() public method

public GetAllUsersForDepartmentWithinLimits ( int departmentId, bool retrieveHidden ) : List
departmentId int
retrieveHidden bool
return List

GetAllUsersForDepartmentWithinLimitsAsync() public method

public GetAllUsersForDepartmentWithinLimitsAsync ( int departmentId, bool retrieveHidden ) : Task>
departmentId int
retrieveHidden bool
return Task>

GetAllUsersForGroup() public method

public GetAllUsersForGroup ( int groupId ) : List
groupId int
return List

GetAllUsersGroupsAndRoles() public method

public GetAllUsersGroupsAndRoles ( int departmentId, bool retrieveHidden, bool retrieveDisabled, bool retrieveDeleted ) : List
departmentId int
retrieveHidden bool
retrieveDisabled bool
retrieveDeleted bool
return List

GetRoleForUserRole() public method

public GetRoleForUserRole ( string userId, string roleId ) : IdentityUserRole
userId string
roleId string
return IdentityUserRole

GetUserByEmail() public method

public GetUserByEmail ( string email ) : IdentityUser
email string
return IdentityUser

GetUserById() public method

public GetUserById ( string userId ) : IdentityUser
userId string
return IdentityUser

GetUserByUserNameAsync() public method

public GetUserByUserNameAsync ( string userName ) : Task
userName string
return Task

InitUserExtInfo() public method

public InitUserExtInfo ( string userId ) : void
userId string
return void

Update() public method

public Update ( IdentityUser user ) : IdentityUser
user IdentityUser
return IdentityUser

UpdateEmail() public method

public UpdateEmail ( string userId, string newEmail ) : void
userId string
newEmail string
return void

UpdateUsername() public method

public UpdateUsername ( string oldUsername, string newUsername ) : void
oldUsername string
newUsername string
return void