Skip to content

@sourceloop/oidc-service / Exports / UserTenantRepository

Class: UserTenantRepository

Hierarchy

Table of contents

Constructors

Properties

Constructors

constructor

new UserTenantRepository(dataSource, tenantRepositoryGetter, userRepositoryGetter, roleRepositoryGetter, userLevelPermissionRepositoryGetter)

Parameters

Name Type
dataSource DataSource
tenantRepositoryGetter Getter<TenantRepository>
userRepositoryGetter Getter<UserRepository>
roleRepositoryGetter Getter<RoleRepository>
userLevelPermissionRepositoryGetter Getter<UserLevelPermissionRepository>

Overrides

DefaultSoftCrudRepository< UserTenant, typeof UserTenant.prototype.id, UserTenantRelations \>.constructor

Defined in

services/oidc-service/src/repositories/user-tenant.repository.ts:47

Properties

role

Readonly role: BelongsToAccessor<Role, undefined | string>

Defined in

services/oidc-service/src/repositories/user-tenant.repository.ts:40


roleRepositoryGetter

Protected roleRepositoryGetter: Getter<RoleRepository>

Defined in

services/oidc-service/src/repositories/user-tenant.repository.ts:55


tenant

Readonly tenant: BelongsToAccessor<Tenant, undefined | string>

Defined in

services/oidc-service/src/repositories/user-tenant.repository.ts:33


tenantRepositoryGetter

Protected tenantRepositoryGetter: Getter<TenantRepository>

Defined in

services/oidc-service/src/repositories/user-tenant.repository.ts:51


user

Readonly user: BelongsToAccessor<User, undefined | string>

Defined in

services/oidc-service/src/repositories/user-tenant.repository.ts:38


userLevelPermissionRepositoryGetter

Protected userLevelPermissionRepositoryGetter: Getter<UserLevelPermissionRepository>

Defined in

services/oidc-service/src/repositories/user-tenant.repository.ts:57


userLevelPermissions

Readonly userLevelPermissions: HasManyRepositoryFactory<UserLevelPermission, undefined | string>

Defined in

services/oidc-service/src/repositories/user-tenant.repository.ts:42


userRepositoryGetter

Protected userRepositoryGetter: Getter<UserRepository>

Defined in

services/oidc-service/src/repositories/user-tenant.repository.ts:53