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, arlasIamService, persistenceService, settingsService, router, translate)

Parameters

Name Type
collaborativesearchService ArlasCollaborativesearchService
activatedRoute ActivatedRoute
snackBar MatSnackBar
arlasStartupService ArlasStartupService
authentService AuthentificationService
arlasIamService ArlasIamService
persistenceService PersistenceService
settingsService ArlasSettingsService
router Router
translate TranslateService

Defined in

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

Properties

arlasStartupService

arlasStartupService: ArlasStartupService

Defined in

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


bookMarkMap

bookMarkMap: Map<string, BookMark>

Defined in

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


count

count: number = 0

Defined in

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


dataBase

dataBase: BookmarkLocalDatabase | BookmarkPersistenceDatabase

Defined in

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


maxSize

maxSize: number = 1000

Defined in

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


onAction

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

Defined in

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


pageNumber

pageNumber: number = 1

Defined in

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


selectorById

selectorById: string

Defined in

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


snackBar

snackBar: MatSnackBar

Defined in

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

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:105


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:134


init

init(bookmark): BookMark

Parameters

Name Type
bookmark BookMark

Returns

BookMark

Defined in

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


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:97


openSnackBar

openSnackBar(message): void

Parameters

Name Type
message string

Returns

void

Defined in

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


removeBookmark

removeBookmark(id): void

Parameters

Name Type
id string

Returns

void

Defined in

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


setBookMarkCount

setBookMarkCount(bookMark): void

Parameters

Name Type
bookMark BookMark

Returns

void

Defined in

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


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:101


updateBookmarkName

updateBookmarkName(bookmarkName, id): void

Parameters

Name Type
bookmarkName string
id string

Returns

void

Defined in

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


viewBookMark

viewBookMark(id): void

Parameters

Name Type
id string

Returns

void

Defined in

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


viewCombineBookmark

viewCombineBookmark(selectedBookmark): void

Parameters

Name Type
selectedBookmark Set<string>

Returns

void

Defined in

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