mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
Add new AlfrescoContentService in ng2-alfresco-core
- Returns v1 public API endpoints for content and thumbnails - Refactor getHost(), basePath and similar props into settings - Use AlfrescoAuthenticationService to get alf_ticket value
This commit is contained in:
@@ -64,18 +64,6 @@ export class AlfrescoSearchComponent implements OnChanges, OnInit {
|
||||
this.displaySearchResults(this.searchTerm);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets content URL for the given node.
|
||||
* @param node Node to get URL for.
|
||||
* @returns {string} URL address.
|
||||
*/
|
||||
getContentUrl(node: any): string {
|
||||
if (this._alfrescoService) {
|
||||
return this._alfrescoService.getContentUrl(node);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets thumbnail URL for the given document node.
|
||||
* @param node Node to get URL for.
|
||||
|
Reference in New Issue
Block a user