Class IdentityRoleAppService
Inheritance
IdentityRoleAppService
Implements
IApplicationService
IRemoteService
Assembly: Volo.Abp.Identity.Pro.Application.dll
Syntax
[Authorize("AbpIdentity.Roles")]
public class IdentityRoleAppService : IdentityAppServiceBase, IIdentityRoleAppService, ICrudAppService<IdentityRoleDto, Guid, GetIdentityRoleListInput, IdentityRoleCreateDto, IdentityRoleUpdateDto>, ICrudAppService<IdentityRoleDto, IdentityRoleDto, Guid, GetIdentityRoleListInput, IdentityRoleCreateDto, IdentityRoleUpdateDto>, IReadOnlyAppService<IdentityRoleDto, IdentityRoleDto, Guid, GetIdentityRoleListInput>, IApplicationService, IRemoteService, ICreateUpdateAppService<IdentityRoleDto, Guid, IdentityRoleCreateDto, IdentityRoleUpdateDto>, ICreateAppService<IdentityRoleDto, IdentityRoleCreateDto>, IUpdateAppService<IdentityRoleDto, Guid, IdentityRoleUpdateDto>, IDeleteAppService<Guid>
Constructors
IdentityRoleAppService(IdentityRoleManager, IIdentityRoleRepository, IIdentityClaimTypeRepository, IIdentityUserRepository, IdentityUserManager)
Declaration
public IdentityRoleAppService(IdentityRoleManager roleManager, IIdentityRoleRepository roleRepository, IIdentityClaimTypeRepository identityClaimTypeRepository, IIdentityUserRepository userRepository, IdentityUserManager userManager)
Parameters
Type |
Name |
Description |
IdentityRoleManager |
roleManager |
|
IIdentityRoleRepository |
roleRepository |
|
IIdentityClaimTypeRepository |
identityClaimTypeRepository |
|
IIdentityUserRepository |
userRepository |
|
IdentityUserManager |
userManager |
|
Properties
IdentityClaimTypeRepository
Declaration
protected IIdentityClaimTypeRepository IdentityClaimTypeRepository { get; }
Property Value
Type |
Description |
IIdentityClaimTypeRepository |
|
RoleManager
Declaration
protected IdentityRoleManager RoleManager { get; }
Property Value
Type |
Description |
IdentityRoleManager |
|
RoleRepository
Declaration
protected IIdentityRoleRepository RoleRepository { get; }
Property Value
Type |
Description |
IIdentityRoleRepository |
|
UserManager
Declaration
protected IdentityUserManager UserManager { get; }
Property Value
Type |
Description |
IdentityUserManager |
|
UserRepository
Declaration
protected IIdentityUserRepository UserRepository { get; }
Property Value
Type |
Description |
IIdentityUserRepository |
|
Methods
CreateAsync(IdentityRoleCreateDto)
Declaration
[Authorize("AbpIdentity.Roles.Create")]
public virtual Task<IdentityRoleDto> CreateAsync(IdentityRoleCreateDto input)
Parameters
Returns
DeleteAsync(Guid)
Declaration
[Authorize("AbpIdentity.Roles.Delete")]
public virtual Task DeleteAsync(Guid id)
Parameters
Type |
Name |
Description |
Guid |
id |
|
Returns
GetAllClaimTypesAsync()
Declaration
[Authorize("AbpIdentity.Roles")]
public virtual Task<List<ClaimTypeDto>> GetAllClaimTypesAsync()
Returns
GetAllListAsync()
Declaration
public virtual Task<ListResultDto<IdentityRoleDto>> GetAllListAsync()
Returns
GetAsync(Guid)
Declaration
public virtual Task<IdentityRoleDto> GetAsync(Guid id)
Parameters
Type |
Name |
Description |
Guid |
id |
|
Returns
GetClaimsAsync(Guid)
Declaration
[Authorize("AbpIdentity.Roles")]
public virtual Task<List<IdentityRoleClaimDto>> GetClaimsAsync(Guid id)
Parameters
Type |
Name |
Description |
Guid |
id |
|
Returns
Declaration
public virtual Task<PagedResultDto<IdentityRoleDto>> GetListAsync(GetIdentityRoleListInput input)
Parameters
Returns
MoveAllUsersAsync(Guid, Guid?)
Declaration
[Authorize("AbpIdentity.Roles.Update")]
public virtual Task MoveAllUsersAsync(Guid id, Guid? targetRoleId)
Parameters
Type |
Name |
Description |
Guid |
id |
|
Guid? |
targetRoleId |
|
Returns
UpdateAsync(Guid, IdentityRoleUpdateDto)
Declaration
[Authorize("AbpIdentity.Roles.Update")]
public virtual Task<IdentityRoleDto> UpdateAsync(Guid id, IdentityRoleUpdateDto input)
Parameters
Returns
UpdateClaimsAsync(Guid, List<IdentityRoleClaimDto>)
Declaration
[Authorize("AbpIdentity.Roles.Update")]
public virtual Task UpdateClaimsAsync(Guid id, List<IdentityRoleClaimDto> input)
Parameters
Returns
Implements
Volo.Abp.Application.Services.ICrudAppService<,,,,>
Volo.Abp.Application.Services.ICrudAppService<,,,,,>
Volo.Abp.Application.Services.IReadOnlyAppService<,,,>
Volo.Abp.Application.Services.IApplicationService
Volo.Abp.IRemoteService
Volo.Abp.Application.Services.ICreateUpdateAppService<,,,>
Volo.Abp.Application.Services.ICreateAppService<,>
Volo.Abp.Application.Services.IUpdateAppService<,,>
Volo.Abp.Application.Services.IDeleteAppService<>