arlas-wui-toolkit / Exports / BookmarkLocalDatabase

Class: BookmarkLocalDatabase

Hierarchy

BookmarkLocalDatabase

Table of contents

Constructors

Properties

Accessors

Methods

Constructors

constructor

new BookmarkLocalDatabase(bookmarkService, arlasCollaborativesearchService, startupService)

Parameters

Name Type
bookmarkService ArlasBookmarkService
arlasCollaborativesearchService ArlasCollaborativesearchService
startupService ArlasStartupService

Overrides

ArlasLocalDatabase.constructor

Defined in

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

Properties

arlasCollaborativesearchService

arlasCollaborativesearchService: ArlasCollaborativesearchService

Defined in

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


bookmarkService

bookmarkService: ArlasBookmarkService

Defined in

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


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


startupService

startupService: ArlasStartupService

Defined in

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


storageKey

storageKey: string

Inherited from

ArlasLocalDatabase.storageKey

Defined in

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


storageObjectMap

storageObjectMap: Map<string, BookMark>

Inherited from

ArlasLocalDatabase.storageObjectMap

Defined in

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

Accessors

data

get data(): T[]

Returns

T[]

Inherited from

ArlasLocalDatabase.data

Defined in

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

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


createBookmark

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

Parameters

Name Type
name string
prettyFilter string
url string
collections Set<string>
type BookMarkType
color string
id? string
date? Date
views? number

Returns

BookMark

Defined in

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


init

init(bookmark, service): BookMark

Method call for each element at init

Parameters

Name Type Description
bookmark BookMark Object to init of type
service ArlasBookmarkService Addtionnal object

Returns

BookMark

Overrides

ArlasLocalDatabase.init

Defined in

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


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


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