Skip to content

arlas-wui-toolkit > "src/app/services/bookmark/bookmark.service" > ArlasBookmarkService

Class: ArlasBookmarkService

Constants used to fill up our data base.

Hierarchy

ArlasBookmarkService

Index

Constructors

Properties

Methods


Constructors

constructor

new ArlasBookmarkService(collaborativesearchService: ArlasCollaborativesearchService, activatedRoute: ActivatedRoute, snackBar: MatSnackBar, arlasStartupService: ArlasStartupService, router: Router): ArlasBookmarkService

Defined in src/app/services/bookmark/bookmark.service.ts:40

Parameters:

Name Type
collaborativesearchService ArlasCollaborativesearchService
activatedRoute ActivatedRoute
snackBar MatSnackBar
arlasStartupService ArlasStartupService
router Router

Returns: ArlasBookmarkService


Properties

bookMarkMap

● bookMarkMap: Map<string, BookMark> = new Map()

Defined in src/app/services/bookmark/bookmark.service.ts:39


dataBase

● dataBase: BookmarkDatabase

Defined in src/app/services/bookmark/bookmark.service.ts:37


dataSource

● dataSource: BookmarkDataSource | null

Defined in src/app/services/bookmark/bookmark.service.ts:38


selectorById

● selectorById: any

Defined in src/app/services/bookmark/bookmark.service.ts:40


snackBar

● snackBar: MatSnackBar

Defined in src/app/services/bookmark/bookmark.service.ts:43


Methods

addBookmark

addBookmark(newBookMarkName: string, selectedItem?: Set<string>): void

Defined in src/app/services/bookmark/bookmark.service.ts:53

Parameters:

Name Type
newBookMarkName string
Optional selectedItem Set<string>

Returns: void


createCombineBookmark

createCombineBookmark(newBookMarkName: string, selectedBookmark: Set<string>): void

Defined in src/app/services/bookmark/bookmark.service.ts:83

Parameters:

Name Type
newBookMarkName string
selectedBookmark Set<string>

Returns: void


openSnackBar

openSnackBar(message: string): void

Defined in src/app/services/bookmark/bookmark.service.ts:120

Parameters:

Name Type
message string

Returns: void


removeBookmark

removeBookmark(id: string): void

Defined in src/app/services/bookmark/bookmark.service.ts:106

Parameters:

Name Type
id string

Returns: void


setBookMarkCount

setBookMarkCount(bookMark: BookMark): void

Defined in src/app/services/bookmark/bookmark.service.ts:128

Parameters:

Name Type
bookMark BookMark

Returns: void


viewBookMark

viewBookMark(id: string): void

Defined in src/app/services/bookmark/bookmark.service.ts:112

Parameters:

Name Type
id string

Returns: void


viewCombineBookmark

viewCombineBookmark(selectedBookmark: Set<string>): void

Defined in src/app/services/bookmark/bookmark.service.ts:132

Parameters:

Name Type
selectedBookmark Set<string>

Returns: void