Class EntityLoaderFactory<TFields, TIDField, TViewerContext, TEntity, TPrivacyPolicy, TSelectedFields>
Constructors
constructor
new EntityLoaderFactory< TFields extends Record<string, any>, TIDField extends string | number | symbol, TViewerContext extends ViewerContext, TEntity extends ReadonlyEntity<TFields, TIDField, TViewerContext, TSelectedFields>, TPrivacyPolicy extends EntityPrivacyPolicy< TFields, TIDField, TViewerContext, TEntity, TSelectedFields, >, TSelectedFields extends string | number | symbol,>( entityCompanion: EntityCompanion< TFields, TIDField, TViewerContext, TEntity, TPrivacyPolicy, TSelectedFields, >, dataManager: EntityDataManager<TFields, TIDField>, metricsAdapter: IEntityMetricsAdapter,): EntityLoaderFactory< TFields, TIDField, TViewerContext, TEntity, TPrivacyPolicy, TSelectedFields,>
Properties
Protected
Readonly
metricsAdapter
Methods
forLoad
forLoad( viewerContext: TViewerContext, queryContext: EntityQueryContext, privacyPolicyEvaluationContext: EntityPrivacyPolicyEvaluationContext< TFields, TIDField, TViewerContext, TEntity, TSelectedFields, >,): AuthorizationResultBasedEntityLoader< TFields, TIDField, TViewerContext, TEntity, TPrivacyPolicy, TSelectedFields,>
The primary entry point for loading entities.