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

Class: ArlasBookmarkService

Hierarchy

ArlasBookmarkService

Index

Constructors

Properties

Methods


Constructors

constructor

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

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

Parameters:

Name Type
collaborativesearchService ArlasCollaborativesearchService
activatedRoute ActivatedRoute
snackBar MatSnackBar
arlasStartupService ArlasStartupService
configService ArlasConfigService
persistenceService PersistenceService
router Router

Returns: ArlasBookmarkService


Properties

arlasStartupService

● arlasStartupService: ArlasStartupService

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


bookMarkMap

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

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


dataBase

● dataBase: BookmarkLocalDatabase | BookmarkPersistenceDatabase

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


onAction

● onAction: Subject<object> = new Subject<{ action: string, id: string }>()

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


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


Methods

addBookmark

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

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

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

Parameters:

Name Type
newBookMarkName string
selectedBookmark Set<string>

Returns: void


init

init(bookmark: BookMark): BookMark

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

Parameters:

Name Type
bookmark BookMark

Returns: BookMark


listBookmarks

listBookmarks(size: number, pageNumber: number): void

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

Parameters:

Name Type
size number
pageNumber number

Returns: void


openSnackBar

openSnackBar(message: string): void

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

Parameters:

Name Type
message string

Returns: void


removeBookmark

removeBookmark(id: string): void

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

Parameters:

Name Type
id string

Returns: void


setBookMarkCount

setBookMarkCount(bookMark: BookMark): void

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

Parameters:

Name Type
bookMark BookMark

Returns: void


setPage

setPage(size: number, pageNumber: number): void

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

Parameters:

Name Type
size number
pageNumber number

Returns: void


viewBookMark

viewBookMark(id: string): void

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

Parameters:

Name Type
id string

Returns: void


viewCombineBookmark

viewCombineBookmark(selectedBookmark: Set<string>): void

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

Parameters:

Name Type
selectedBookmark Set<string>

Returns: void