arlas-wui-toolkit > "src/app/services/bookmark/bookmarkLocalDatabase" > BookmarkLocalDatabase

Class: BookmarkLocalDatabase

Hierarchy

ArlasLocalDatabase<BookMark>

↳ BookmarkLocalDatabase

Index

Constructors

Properties

Accessors

Methods


Constructors

constructor

new BookmarkLocalDatabase(bookmarkService: ArlasBookmarkService, startupService: ArlasStartupService): BookmarkLocalDatabase

Overrides ArlasLocalDatabase.constructor

Defined in src/app/services/bookmark/bookmarkLocalDatabase.ts:27

Parameters:

Name Type
bookmarkService ArlasBookmarkService
startupService ArlasStartupService

Returns: BookmarkLocalDatabase


Properties

bookmarkService

● bookmarkService: ArlasBookmarkService

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


dataChange

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

Inherited from ArlasLocalDatabase.dataChange

Defined in src/app/tools/arlasLocalDatabase.ts:25


startupService

● startupService: ArlasStartupService

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


storageKey

● storageKey: string

Inherited from ArlasLocalDatabase.storageKey

Defined in src/app/tools/arlasLocalDatabase.ts:29


storageObjectMap

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

Inherited from ArlasLocalDatabase.storageObjectMap

Defined in src/app/tools/arlasLocalDatabase.ts:27


Accessors

data

data:

Inherited from ArlasLocalDatabase.data

Defined in src/app/tools/arlasLocalDatabase.ts:26


Methods

add

add(storageObject: BookMark): void

Inherited from ArlasLocalDatabase.add

Defined in src/app/tools/arlasLocalDatabase.ts:55

Parameters:

Name Type
storageObject BookMark

Returns: void


createBookmark

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

Defined in src/app/services/bookmark/bookmarkLocalDatabase.ts:52

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/bookmarkLocalDatabase.ts:89

Parameters:

Name Type
id string

Returns: void


init

init(bookmark: BookMark, service: ArlasBookmarkService): BookMark

Overrides ArlasLocalDatabase.init

Defined in src/app/services/bookmark/bookmarkLocalDatabase.ts:35

Parameters:

Name Type
bookmark BookMark
service ArlasBookmarkService

Returns: BookMark


remove

remove(id: string): void

Inherited from ArlasLocalDatabase.remove

Defined in src/app/tools/arlasLocalDatabase.ts:64

Parameters:

Name Type
id string

Returns: void


update

update(id: string, storageObject: BookMark): void

Inherited from ArlasLocalDatabase.update

Defined in src/app/tools/arlasLocalDatabase.ts:76

Parameters:

Name Type
id string
storageObject BookMark

Returns: void