mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
use people api and new js api where possible (#5888)
* use people api and new js api where possible * fix code and tests * cleanup tests
This commit is contained in:
@@ -21,13 +21,6 @@ import { RolesService } from './roles.service';
|
||||
import { Logger } from '../../utils/logger';
|
||||
|
||||
export class IdentityService {
|
||||
|
||||
api: ApiService;
|
||||
|
||||
constructor(api: ApiService) {
|
||||
this.api = api;
|
||||
}
|
||||
|
||||
ROLES = {
|
||||
ACTIVITI_USER: 'ACTIVITI_USER',
|
||||
ACTIVITI_ADMIN: 'ACTIVITI_ADMIN',
|
||||
@@ -35,6 +28,8 @@ export class IdentityService {
|
||||
ACTIVITI_IDENTITY: 'ACTIVITI_IDENTITY'
|
||||
};
|
||||
|
||||
constructor(public api: ApiService) {}
|
||||
|
||||
async createIdentityUserWithRole(roles: string[]): Promise<any> {
|
||||
const rolesService = new RolesService(this.api);
|
||||
const user = await this.createIdentityUser();
|
||||
|
Reference in New Issue
Block a user