alfresco-ng2-components/docs/core/favorites-api.service.md
Andy Stark 28ba09897e [ADF-2764] Added new type linker features and applied them to core docs (#3442)
* [ADF-2764] Added basic support for composite and external types

* [ADF-2764] Added new type linker features and applied to core docs
2018-06-06 13:21:31 +02:00

2.0 KiB

Added, Status, Last reviewed
Added Status Last reviewed
v2.0.0 Active 2018-05-04

Favorites Api service

Gets a list of items a user has marked as their favorites.

Class members

Methods

  • getFavorites(personId: string = null, options?: any = null): Observable<NodePaging>
    Gets the favorites for a user.

    • personId: string - ID of the user
    • options: any - (Optional) Options supported by JSAPI
    • Returns Observable<NodePaging> - List of favorites
  • remapFavoriteEntries(entries: any[] = null): any[]

    • entries: any[] -
    • Returns any[] -
  • remapFavoritesData(data: any = {}): NodePaging

  • remapEntry(__namedParameters: object = null): any

    • __namedParameters: object -
    • Returns any -

Details

Process Services allows users to mark items as "favorites". These are typically items that are important or frequently used.

Use getFavorites to find a user's favorite items. You could use this, for example, to create a menu for the user to access their favorites quickly rather than by navigating or searching. Using "-me-" for the personId indicates that the target person is the currently logged-in user.

You can specify a number of options to modify the search further. See the Alfresco JS API page for getFavorites for more information.