[AAE-10777] Move services from Core in Content the right place (#8242)

Clean core services and directive
This commit is contained in:
Eugenio Romano
2023-03-10 09:28:24 +01:00
committed by GitHub
parent 112e272ce7
commit 2590e7d0a9
263 changed files with 884 additions and 3393 deletions

View File

@@ -15,11 +15,17 @@
* limitations under the License.
*/
import { AlfrescoApiService, LogService, CommentModel, CommentsService, PeopleContentService } from '@alfresco/adf-core';
import {
AlfrescoApiService,
LogService,
CommentModel,
CommentsService
} from '@alfresco/adf-core';
import { CommentEntry, CommentsApi, Comment } from '@alfresco/js-api';
import { Injectable } from '@angular/core';
import { Observable, from, throwError } from 'rxjs';
import { map, catchError } from 'rxjs/operators';
import { ContentService } from '../../common/services/content.service';
@Injectable({
providedIn: 'root'
@@ -35,7 +41,7 @@ export class NodeCommentsService implements CommentsService {
constructor(
private apiService: AlfrescoApiService,
private logService: LogService,
private peopleContentService: PeopleContentService
private contentService: ContentService
) {}
/**
@@ -101,7 +107,7 @@ export class NodeCommentsService implements CommentsService {
return throwError(error || 'Server error');
}
getUserImage(user: string): string {
return this.peopleContentService.getUserProfileImage(user);
getUserImage(avatarId: string): string {
return this.contentService.getContentUrl(avatarId);
}
}