arlas-wui-toolkit / Exports / BookmarkLocalDatabase

Class: BookmarkLocalDatabase

Hierarchy

BookmarkLocalDatabase

Table of contents

Constructors

Properties

Accessors

Methods

Constructors

constructor

new BookmarkLocalDatabase(bookmarkService, startupService)

Parameters

Name Type
bookmarkService ArlasBookmarkService
startupService ArlasStartupService

Overrides

ArlasLocalDatabase.constructor

Defined in

projects/arlas-toolkit/src/lib/services/bookmark/bookmarkLocalDatabase.ts:29

Properties

bookmarkService

bookmarkService: ArlasBookmarkService


dataChange

dataChange: BehaviorSubject<BookMark[]>

Stream that emits whenever the data has been modified.

Inherited from

ArlasLocalDatabase.dataChange

Defined in

projects/arlas-toolkit/src/lib/tools/arlasLocalDatabase.ts:25


startupService

startupService: ArlasStartupService


storageKey

storageKey: string

Inherited from

ArlasLocalDatabase.storageKey

Defined in

projects/arlas-toolkit/src/lib/tools/arlasLocalDatabase.ts:31


storageObjectMap

storageObjectMap: Map<string, BookMark>

Inherited from

ArlasLocalDatabase.storageObjectMap

Defined in

projects/arlas-toolkit/src/lib/tools/arlasLocalDatabase.ts:29

Accessors

data

get data(): T[]

Returns

T[]

Inherited from

ArlasLocalDatabase.data

Defined in

projects/arlas-toolkit/src/lib/tools/arlasLocalDatabase.ts:26

Methods

add

add(storageObject): Observable<void>

Parameters

Name Type
storageObject BookMark

Returns

Observable<void>

Inherited from

ArlasLocalDatabase.add

Defined in

projects/arlas-toolkit/src/lib/tools/arlasLocalDatabase.ts:57


createBookmark

createBookmark(name, prettyFilter, url, type, color, id?, date?, views?): BookMark

Parameters

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

Returns

BookMark

Defined in

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


incrementBookmarkView

incrementBookmarkView(id): Observable<void>

Parameters

Name Type
id string

Returns

Observable<void>

Defined in

projects/arlas-toolkit/src/lib/services/bookmark/bookmarkLocalDatabase.ts:89


init

init(bookmark, service): BookMark

Method call for each element at init

Parameters

Name Type
bookmark BookMark
service ArlasBookmarkService

Returns

BookMark

Overrides

ArlasLocalDatabase.init

Defined in

projects/arlas-toolkit/src/lib/services/bookmark/bookmarkLocalDatabase.ts:35


remove

remove(id): Observable<void>

Parameters

Name Type
id string

Returns

Observable<void>

Inherited from

ArlasLocalDatabase.remove

Defined in

projects/arlas-toolkit/src/lib/tools/arlasLocalDatabase.ts:68


update

update(id, storageObject): Observable<void>

Parameters

Name Type
id string
storageObject BookMark

Returns

Observable<void>

Inherited from

ArlasLocalDatabase.update

Defined in

projects/arlas-toolkit/src/lib/tools/arlasLocalDatabase.ts:84