arlas-wui-toolkit / Exports / ArlasBookmarkService

Class: ArlasBookmarkService

Constants used to fill up our data base.

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new ArlasBookmarkService(collaborativesearchService, activatedRoute, snackBar, arlasStartupService, authentService, persistenceService, router)

Parameters

Name Type
collaborativesearchService ArlasCollaborativesearchService
activatedRoute ActivatedRoute
snackBar MatSnackBar
arlasStartupService ArlasStartupService
authentService AuthentificationService
persistenceService PersistenceService
router Router

Defined in

projects/arlas-toolkit/src/lib/services/bookmark/bookmark.service.ts:43

Properties

arlasStartupService

arlasStartupService: ArlasStartupService


bookMarkMap

bookMarkMap: Map<string, BookMark>

Defined in

projects/arlas-toolkit/src/lib/services/bookmark/bookmark.service.ts:39


dataBase

dataBase: BookmarkLocalDatabase | BookmarkPersistenceDatabase

Defined in

projects/arlas-toolkit/src/lib/services/bookmark/bookmark.service.ts:38


onAction

onAction: Subject<{ action: string ; id: string }>

Defined in

projects/arlas-toolkit/src/lib/services/bookmark/bookmark.service.ts:41


selectorById

selectorById: any

Defined in

projects/arlas-toolkit/src/lib/services/bookmark/bookmark.service.ts:40


snackBar

snackBar: MatSnackBar

Methods

addBookmark

addBookmark(newBookMarkName, selectedItem?): Observable<void>

Parameters

Name Type
newBookMarkName string
selectedItem? Set<string>

Returns

Observable<void>

Defined in

projects/arlas-toolkit/src/lib/services/bookmark/bookmark.service.ts:76


createCombineBookmark

createCombineBookmark(newBookMarkName, selectedBookmark): Observable<void>

Parameters

Name Type
newBookMarkName string
selectedBookmark Set<string>

Returns

Observable<void>

Defined in

projects/arlas-toolkit/src/lib/services/bookmark/bookmark.service.ts:103


init

init(bookmark): BookMark

Parameters

Name Type
bookmark BookMark

Returns

BookMark

Defined in

projects/arlas-toolkit/src/lib/services/bookmark/bookmark.service.ts:176


listBookmarks

listBookmarks(size, pageNumber): Observable<void>

List all bookmark for the user to update dataBase

Parameters

Name Type
size number
pageNumber number

Returns

Observable<void>

Defined in

projects/arlas-toolkit/src/lib/services/bookmark/bookmark.service.ts:68


openSnackBar

openSnackBar(message): void

Parameters

Name Type
message string

Returns

void

Defined in

projects/arlas-toolkit/src/lib/services/bookmark/bookmark.service.ts:150


removeBookmark

removeBookmark(id): void

Parameters

Name Type
id string

Returns

void

Defined in

projects/arlas-toolkit/src/lib/services/bookmark/bookmark.service.ts:130


setBookMarkCount

setBookMarkCount(bookMark): void

Parameters

Name Type
bookMark BookMark

Returns

void

Defined in

projects/arlas-toolkit/src/lib/services/bookmark/bookmark.service.ts:158


setPage

setPage(size, pageNumber): void

Parameters

Name Type
size number
pageNumber number

Returns

void

Defined in

projects/arlas-toolkit/src/lib/services/bookmark/bookmark.service.ts:72


viewBookMark

viewBookMark(id): void

Parameters

Name Type
id string

Returns

void

Defined in

projects/arlas-toolkit/src/lib/services/bookmark/bookmark.service.ts:137


viewCombineBookmark

viewCombineBookmark(selectedBookmark): void

Parameters

Name Type
selectedBookmark Set<string>

Returns

void

Defined in

projects/arlas-toolkit/src/lib/services/bookmark/bookmark.service.ts:162