Show / Hide Table of Contents

Class IdentityRoleAppService

Inheritance
object
ApplicationService
IdentityAppServiceBase
IdentityRoleAppService
Implements
IAvoidDuplicateCrossCuttingConcerns
IValidationEnabled
IUnitOfWorkEnabled
IAuditingEnabled
IGlobalFeatureCheckingEnabled
ITransientDependency
IIdentityRoleAppService
ICrudAppService<IdentityRoleDto, Guid, GetIdentityRolesInput, IdentityRoleCreateDto, IdentityRoleUpdateDto>
ICrudAppService<IdentityRoleDto, IdentityRoleDto, Guid, GetIdentityRolesInput, IdentityRoleCreateDto, IdentityRoleUpdateDto>
IReadOnlyAppService<IdentityRoleDto, IdentityRoleDto, Guid, GetIdentityRolesInput>
ICreateUpdateAppService<IdentityRoleDto, Guid, IdentityRoleCreateDto, IdentityRoleUpdateDto>
ICreateAppService<IdentityRoleDto, IdentityRoleCreateDto>
IUpdateAppService<IdentityRoleDto, Guid, IdentityRoleUpdateDto>
IDeleteAppService<Guid>
IApplicationService
IRemoteService
Inherited Members
ApplicationService.CheckPolicyAsync(string)
ApplicationService.CreateLocalizer()
ApplicationService.LazyServiceProvider
ApplicationService.ServiceProvider
ApplicationService.CommonPostfixes
ApplicationService.AppliedCrossCuttingConcerns
ApplicationService.UnitOfWorkManager
ApplicationService.AsyncExecuter
ApplicationService.ObjectMapperContext
ApplicationService.ObjectMapper
ApplicationService.GuidGenerator
ApplicationService.LoggerFactory
ApplicationService.CurrentTenant
ApplicationService.DataFilter
ApplicationService.CurrentUser
ApplicationService.SettingProvider
ApplicationService.Clock
ApplicationService.AuthorizationService
ApplicationService.FeatureChecker
ApplicationService.StringLocalizerFactory
ApplicationService.L
ApplicationService.LocalizationResource
ApplicationService.CurrentUnitOfWork
ApplicationService.Logger
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.Abp.Identity
Assembly: Volo.Abp.Identity.Application.dll
Syntax
[Authorize("AbpIdentity.Roles")]
public class IdentityRoleAppService : IdentityAppServiceBase, IAvoidDuplicateCrossCuttingConcerns, IValidationEnabled, IUnitOfWorkEnabled, IAuditingEnabled, IGlobalFeatureCheckingEnabled, ITransientDependency, IIdentityRoleAppService, ICrudAppService<IdentityRoleDto, Guid, GetIdentityRolesInput, IdentityRoleCreateDto, IdentityRoleUpdateDto>, ICrudAppService<IdentityRoleDto, IdentityRoleDto, Guid, GetIdentityRolesInput, IdentityRoleCreateDto, IdentityRoleUpdateDto>, IReadOnlyAppService<IdentityRoleDto, IdentityRoleDto, Guid, GetIdentityRolesInput>, ICreateUpdateAppService<IdentityRoleDto, Guid, IdentityRoleCreateDto, IdentityRoleUpdateDto>, ICreateAppService<IdentityRoleDto, IdentityRoleCreateDto>, IUpdateAppService<IdentityRoleDto, Guid, IdentityRoleUpdateDto>, IDeleteAppService<Guid>, IApplicationService, IRemoteService

Constructors

IdentityRoleAppService(IdentityRoleManager, IIdentityRoleRepository)

Declaration
public IdentityRoleAppService(IdentityRoleManager roleManager, IIdentityRoleRepository roleRepository)
Parameters
Type Name Description
IdentityRoleManager roleManager
IIdentityRoleRepository roleRepository

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
Type Name Description
IdentityRoleCreateDto input
Returns
Type Description
Task<IdentityRoleDto>

DeleteAsync(Guid)

Declaration
[Authorize("AbpIdentity.Roles.Delete")]
public virtual Task DeleteAsync(Guid id)
Parameters
Type Name Description
Guid id
Returns
Type Description
Task

GetAllClaimTypesAsync()

Declaration
[Authorize("AbpIdentity.Roles")]
public virtual Task<List<ClaimTypeDto>> GetAllClaimTypesAsync()
Returns
Type Description
Task<List<ClaimTypeDto>>

GetAllListAsync()

Declaration
public virtual Task<ListResultDto<IdentityRoleDto>> GetAllListAsync()
Returns
Type Description
Task<ListResultDto<IdentityRoleDto>>

GetAsync(Guid)

Declaration
public virtual Task<IdentityRoleDto> GetAsync(Guid id)
Parameters
Type Name Description
Guid id
Returns
Type Description
Task<IdentityRoleDto>

GetClaimsAsync(Guid)

Declaration
[Authorize("AbpIdentity.Roles")]
public virtual Task<List<IdentityRoleClaimDto>> GetClaimsAsync(Guid id)
Parameters
Type Name Description
Guid id
Returns
Type Description
Task<List<IdentityRoleClaimDto>>

GetListAsync(GetIdentityRoleListInput)

Declaration
public virtual Task<PagedResultDto<IdentityRoleDto>> GetListAsync(GetIdentityRoleListInput input)
Parameters
Type Name Description
GetIdentityRoleListInput input
Returns
Type Description
Task<PagedResultDto<IdentityRoleDto>>

GetListAsync(GetIdentityRolesInput)

Declaration
public virtual Task<PagedResultDto<IdentityRoleDto>> GetListAsync(GetIdentityRolesInput input)
Parameters
Type Name Description
GetIdentityRolesInput input
Returns
Type Description
Task<PagedResultDto<IdentityRoleDto>>

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
Type Description
Task

UpdateAsync(Guid, IdentityRoleUpdateDto)

Declaration
[Authorize("AbpIdentity.Roles.Update")]
public virtual Task<IdentityRoleDto> UpdateAsync(Guid id, IdentityRoleUpdateDto input)
Parameters
Type Name Description
Guid id
IdentityRoleUpdateDto input
Returns
Type Description
Task<IdentityRoleDto>

UpdateClaimsAsync(Guid, List<IdentityRoleClaimDto>)

Declaration
[Authorize("AbpIdentity.Roles.Update")]
public virtual Task UpdateClaimsAsync(Guid id, List<IdentityRoleClaimDto> input)
Parameters
Type Name Description
Guid id
List<IdentityRoleClaimDto> input
Returns
Type Description
Task

Implements

IAvoidDuplicateCrossCuttingConcerns
IValidationEnabled
IUnitOfWorkEnabled
IAuditingEnabled
IGlobalFeatureCheckingEnabled
ITransientDependency
IIdentityRoleAppService
ICrudAppService<TEntityDto, TKey, TGetListInput, TCreateInput, TUpdateInput>
ICrudAppService<TGetOutputDto, TGetListOutputDto, TKey, TGetListInput, TCreateInput, TUpdateInput>
IReadOnlyAppService<TGetOutputDto, TGetListOutputDto, TKey, TGetListInput>
ICreateUpdateAppService<TGetOutputDto, TKey, TCreateUpdateInput, TUpdateInput>
ICreateAppService<TGetOutputDto, TCreateInput>
IUpdateAppService<TGetOutputDto, TKey, TUpdateInput>
IDeleteAppService<TKey>
IApplicationService
IRemoteService

Extension Methods

AbpObjectExtensions.As<T>(object)
AbpObjectExtensions.To<T>(object)
LockExtensions.Locking(object, Action)
LockExtensions.Locking<TResult>(object, Func<TResult>)
AbpObjectExtensions.If<T>(T, bool, Action<T>)
AbpObjectExtensions.If<T>(T, bool, Func<T, T>)
AbpObjectExtensions.IsIn<T>(T, IEnumerable<T>)
AbpObjectExtensions.IsIn<T>(T, params T[])
AbpQueryableExtensions.OrderByIf<T, TQueryable>(TQueryable, bool, string)
AbpQueryableExtensions.PageBy<T, TQueryable>(TQueryable, int, int)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, bool>>)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, int, bool>>)
AbpOpenIddictQueryableExtensions.SkipIf<T, TQueryable>(TQueryable, bool, int?)
AbpOpenIddictQueryableExtensions.TakeIf<T, TQueryable>(TQueryable, bool, int?)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
In this article
Back to top Powered by ABP.IO Platform