@sourceloop/user-tenant-service / Exports / UserGroupService
Class: UserGroupService¶
Table of contents¶
Constructors¶
Properties¶
Methods¶
Constructors¶
constructor¶
• new UserGroupService(groupRepository
, userGroupRepository
, userTenantRepository
, currentUser
)
Parameters¶
Name | Type |
---|---|
groupRepository |
GroupRepository |
userGroupRepository |
UserGroupRepository |
userTenantRepository |
UserTenantRepository |
currentUser |
IAuthUserWithPermissions <string , string , string > |
Defined in¶
services/user-tenant-service/src/services/user-group.service.ts:21
Properties¶
currentUser¶
• Private
Readonly
currentUser: IAuthUserWithPermissions
<string
, string
, string
>
Defined in¶
services/user-tenant-service/src/services/user-group.service.ts:29
groupRepository¶
• groupRepository: GroupRepository
Defined in¶
services/user-tenant-service/src/services/user-group.service.ts:23
userGroupRepository¶
• userGroupRepository: UserGroupRepository
Defined in¶
services/user-tenant-service/src/services/user-group.service.ts:25
userTenantRepository¶
• userTenantRepository: UserTenantRepository
Defined in¶
services/user-tenant-service/src/services/user-group.service.ts:27
Methods¶
create¶
▸ create(userGroupToCreate
): Promise
<UserGroup
>
Parameters¶
Name | Type |
---|---|
userGroupToCreate |
Partial <UserGroup > |
Returns¶
Promise
<UserGroup
>
Defined in¶
services/user-tenant-service/src/services/user-group.service.ts:32
createAll¶
▸ createAll(userTenantIdArray
, groupId
): Promise
<UserGroup
[]>
Parameters¶
Name | Type |
---|---|
userTenantIdArray |
UserTenantIds |
groupId |
string |
Returns¶
Promise
<UserGroup
[]>
Defined in¶
services/user-tenant-service/src/services/user-group.service.ts:61
deleteAllBygroupIds¶
▸ deleteAllBygroupIds(groupIds
): Promise
<void
>
Parameters¶
Name | Type |
---|---|
groupIds |
string [] |
Returns¶
Promise
<void
>
Defined in¶
services/user-tenant-service/src/services/user-group.service.ts:122
deleteById¶
▸ deleteById(userGroupId
): Promise
<void
>
Parameters¶
Name | Type |
---|---|
userGroupId |
string |
Returns¶
Promise
<void
>
Defined in¶
services/user-tenant-service/src/services/user-group.service.ts:117
updateById¶
▸ updateById(userGroupId
, userGroupToUpdate
): Promise
<void
>
Parameters¶
Name | Type |
---|---|
userGroupId |
string |
userGroupToUpdate |
Partial <UserGroup > |
Returns¶
Promise
<void
>
Defined in¶
services/user-tenant-service/src/services/user-group.service.ts:56