Skip to content

arlas-wui-toolkit > "src/app/services/bookmark/bookmarkDatabase" > BookmarkDatabase

Class: BookmarkDatabase

Hierarchy

BookmarkDatabase

Index

Constructors

Properties

Accessors

Methods


Constructors

constructor

new BookmarkDatabase(bookmarkService: ArlasBookmarkService): BookmarkDatabase

Defined in src/app/services/bookmark/bookmarkDatabase.ts:30

Parameters:

Name Type
bookmarkService ArlasBookmarkService

Returns: BookmarkDatabase


Properties

bookMarkMap

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

Defined in src/app/services/bookmark/bookmarkDatabase.ts:30


bookmarkService

● bookmarkService: ArlasBookmarkService

Defined in src/app/services/bookmark/bookmarkDatabase.ts:31


dataChange

● dataChange: BehaviorSubject<BookMark[]> = new BehaviorSubject([])

Defined in src/app/services/bookmark/bookmarkDatabase.ts:28

Stream that emits whenever the data has been modified.


Accessors

data

getdata(): BookMark[]

Defined in src/app/services/bookmark/bookmarkDatabase.ts:29

Returns: BookMark[]


Methods

addBookMark

addBookMark(bookmark: BookMark): void

Defined in src/app/services/bookmark/bookmarkDatabase.ts:79

Parameters:

Name Type
bookmark BookMark

Returns: void


createNewBookMark

createNewBookMark(name: string, prettyFilter: string, url: string, type: BookMarkType, color: string, id?: string, date?: Date, views?: number): BookMark

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

Parameters:

Name Type
name string
prettyFilter string
url string
type BookMarkType
color string
Optional id string
Optional date Date
Optional views number

Returns: BookMark


incrementBookmarkView

incrementBookmarkView(id: string): void

Defined in src/app/services/bookmark/bookmarkDatabase.ts:100

Parameters:

Name Type
id string

Returns: void


removeBookMark

removeBookMark(id: string): void

Defined in src/app/services/bookmark/bookmarkDatabase.ts:88

Parameters:

Name Type
id string

Returns: void