C# Class Resgrid.Repositories.DataRepository.IdentityRepository

Inheritance: IIdentityRepository
Afficher le fichier Open project: Resgrid/Core

Méthodes publiques

Méthode 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 méthode

public AddUserToRole ( string userId, string roleId ) : void
userId string
roleId string
Résultat void

GetAll() public méthode

public GetAll ( ) : List
Résultat List

GetAllMembershipsForDepartment() public méthode

public GetAllMembershipsForDepartment ( int departmentId ) : List
departmentId int
Résultat List

GetAllUsersCreatedAfterTimestamp() public méthode

public GetAllUsersCreatedAfterTimestamp ( DateTime timestamp ) : List
timestamp DateTime
Résultat List

GetAllUsersForDepartment() public méthode

public GetAllUsersForDepartment ( int departmentId ) : List
departmentId int
Résultat List

GetAllUsersForDepartmentWithinLimits() public méthode

public GetAllUsersForDepartmentWithinLimits ( int departmentId, bool retrieveHidden ) : List
departmentId int
retrieveHidden bool
Résultat List

GetAllUsersForDepartmentWithinLimitsAsync() public méthode

public GetAllUsersForDepartmentWithinLimitsAsync ( int departmentId, bool retrieveHidden ) : Task>
departmentId int
retrieveHidden bool
Résultat Task>

GetAllUsersForGroup() public méthode

public GetAllUsersForGroup ( int groupId ) : List
groupId int
Résultat List

GetAllUsersGroupsAndRoles() public méthode

public GetAllUsersGroupsAndRoles ( int departmentId, bool retrieveHidden, bool retrieveDisabled, bool retrieveDeleted ) : List
departmentId int
retrieveHidden bool
retrieveDisabled bool
retrieveDeleted bool
Résultat List

GetRoleForUserRole() public méthode

public GetRoleForUserRole ( string userId, string roleId ) : IdentityUserRole
userId string
roleId string
Résultat IdentityUserRole

GetUserByEmail() public méthode

public GetUserByEmail ( string email ) : IdentityUser
email string
Résultat IdentityUser

GetUserById() public méthode

public GetUserById ( string userId ) : IdentityUser
userId string
Résultat IdentityUser

GetUserByUserNameAsync() public méthode

public GetUserByUserNameAsync ( string userName ) : Task
userName string
Résultat Task

InitUserExtInfo() public méthode

public InitUserExtInfo ( string userId ) : void
userId string
Résultat void

Update() public méthode

public Update ( IdentityUser user ) : IdentityUser
user IdentityUser
Résultat IdentityUser

UpdateEmail() public méthode

public UpdateEmail ( string userId, string newEmail ) : void
userId string
newEmail string
Résultat void

UpdateUsername() public méthode

public UpdateUsername ( string oldUsername, string newUsername ) : void
oldUsername string
newUsername string
Résultat void