Show / Hide Table of Contents

Class EntityTagManager

Inheritance
object
DomainService
EntityTagManager
Implements
IDomainService
ITransientDependency
Inherited Members
DomainService.LazyServiceProvider
DomainService.ServiceProvider
DomainService.Clock
DomainService.GuidGenerator
DomainService.LoggerFactory
DomainService.CurrentTenant
DomainService.AsyncExecuter
DomainService.Logger
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.CmsKit.Tags
Assembly: Volo.CmsKit.Domain.dll
Syntax
public class EntityTagManager : DomainService, IDomainService, ITransientDependency

Constructors

EntityTagManager(IEntityTagRepository, ITagRepository, ITagDefinitionStore, TagManager)

Declaration
public EntityTagManager(IEntityTagRepository entityTagRepository, ITagRepository tagRepository, ITagDefinitionStore tagDefinitionStore, TagManager tagManager)
Parameters
Type Name Description
IEntityTagRepository entityTagRepository
ITagRepository tagRepository
ITagDefinitionStore tagDefinitionStore
TagManager tagManager

Properties

EntityTagRepository

Declaration
protected IEntityTagRepository EntityTagRepository { get; }
Property Value
Type Description
IEntityTagRepository

TagDefinitionStore

Declaration
protected ITagDefinitionStore TagDefinitionStore { get; }
Property Value
Type Description
ITagDefinitionStore

TagManager

Declaration
protected TagManager TagManager { get; }
Property Value
Type Description
TagManager

TagRepository

Declaration
protected ITagRepository TagRepository { get; }
Property Value
Type Description
ITagRepository

Methods

AddTagToEntityAsync(Guid, string, string, Guid?, CancellationToken)

Declaration
public virtual Task<EntityTag> AddTagToEntityAsync(Guid tagId, string entityType, string entityId, Guid? tenantId = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
Guid tagId
string entityType
string entityId
Guid? tenantId
CancellationToken cancellationToken
Returns
Type Description
Task<EntityTag>

GetEntityIdsFilteredByTagAsync(Guid, Guid?, CancellationToken)

Declaration
public Task<List<string>> GetEntityIdsFilteredByTagAsync(Guid tagId, Guid? tenantId, CancellationToken cancellationToken = default)
Parameters
Type Name Description
Guid tagId
Guid? tenantId
CancellationToken cancellationToken
Returns
Type Description
Task<List<string>>

GetEntityIdsFilteredByTagNameAsync(string, string, Guid?, CancellationToken)

Declaration
public Task<List<string>> GetEntityIdsFilteredByTagNameAsync(string tagName, string entityType, Guid? tenantId, CancellationToken cancellationToken = default)
Parameters
Type Name Description
string tagName
string entityType
Guid? tenantId
CancellationToken cancellationToken
Returns
Type Description
Task<List<string>>

RemoveTagFromEntityAsync(Guid, string, string, Guid?, CancellationToken)

Declaration
public virtual Task RemoveTagFromEntityAsync(Guid tagId, string entityType, string entityId, Guid? tenantId = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
Guid tagId
string entityType
string entityId
Guid? tenantId
CancellationToken cancellationToken
Returns
Type Description
Task

SetEntityTagsAsync(string, string, List<string>)

Declaration
public Task SetEntityTagsAsync(string entityType, string entityId, List<string> tags)
Parameters
Type Name Description
string entityType
string entityId
List<string> tags
Returns
Type Description
Task

Implements

IDomainService
ITransientDependency

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