alfresco-ng2-components/docs/core/services/shared-links-api.service.md
Denys Vuika 99f4b07878 [ADF-4496] Share dialog enhancements (#4705)
* raise snackbars on unshare errors

* remove time from datepicker

* update tests

* Update en.json

* code updates as per review

* update docs

* bind datetimepicker type attribute

* set datetimepicker type by configuration or default

* tests

* e2e test

* update docs

* e2e set sharedLinkDateTimePickerType config
2019-06-06 16:32:36 +01:00

2.8 KiB

Title, Added, Status, Last reviewed
Title Added Status Last reviewed
Shared Links Api service v2.0.0 Active 2018-06-08

Shared Links Api service

Finds shared links to Content Services items.

Class members

Methods

  • createSharedLinks(nodeId: string, options: any = {}): Observable<SharedLinkEntry>
    Creates a shared link available to the current user.
    • nodeId: string - ID of the node to link to
    • options: any - Options supported by JS-API
    • Returns Observable<SharedLinkEntry> - The shared link just created
  • deleteSharedLink(sharedId: string): Observable<SharedLinkEntry>
    Deletes a shared link.
    • sharedId: string - ID of the link to delete
    • Returns Observable<SharedLinkEntry> - Null response notifying when the operation is complete
  • getSharedLinks(options: any = {}): Observable<NodePaging>
    Gets shared links available to the current user.

Events

Name Type Description
error Subject<{ statusCode: number, message: string }> Gets emitted upon errors.

Details

Content Services allows users to generate URLs that can be shared with other people, even if they don't have a Content Services account. These URLs are known as shared links.

Use getSharedLinks to find all the shared links that are available to the current user. You can supply a number of options to refine the search; see the Alfresco JS API for more information.