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:
Will Abson
2016-06-07 14:02:09 +01:00
parent b8f129ed82
commit e39439b68c
8 changed files with 102 additions and 74 deletions

View File

@@ -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.