migrate document list to new api

This commit is contained in:
Eugenio Romano
2016-06-29 15:56:32 +01:00
parent aa848e271e
commit 7396a57e5c
9 changed files with 27 additions and 20 deletions

View File

@@ -90,6 +90,10 @@ export class AlfrescoAuthenticationService extends AlfrescoAuthenticationBase {
});
}
getAlfrescoApi(): any {
return this.alfrescoApi;
}
/**
* The method return tru if the user is logged in
* @returns {boolean}

View File

@@ -30,8 +30,8 @@ export class AlfrescoContentService {
* @param document Node to get URL for.
* @returns {string} URL address.
*/
getDocumentThumbnailUrl(document: any) {
this.authService.alfrescoApi.getDocumentThumbnailUrl(document.entry.id);
getDocumentThumbnailUrl(document: any): string {
return this.authService.alfrescoApi.getDocumentThumbnailUrl(document.entry.id);
}
/**
@@ -39,7 +39,7 @@ export class AlfrescoContentService {
* @param document Node to get URL for.
* @returns {string} URL address.
*/
getContentUrl(document: any) {
this.authService.alfrescoApi.getContentUrl(document.entry.id);
getContentUrl(document: any): string {
return this.authService.alfrescoApi.getContentUrl(document.entry.id);
}
}