Skip to content

arlas-wui-toolkit / Exports / BookmarkPersistenceDatabase

Class: BookmarkPersistenceDatabase

Hierarchy

BookmarkPersistenceDatabase

Table of contents

Constructors

Properties

Accessors

Methods

Constructors

constructor

new BookmarkPersistenceDatabase(bookmarkService, persistenceService, startupService)

Parameters

Name Type
bookmarkService ArlasBookmarkService
persistenceService PersistenceService
startupService ArlasStartupService

Overrides

ArlasPersistenceDatabase.constructor

Defined in

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

Properties

additionalObject

additionalObject: any

Inherited from

ArlasPersistenceDatabase.additionalObject

Defined in

projects/arlas-toolkit/src/lib/tools/arlasPersistenceDatabase.ts:37


bookmarkService

bookmarkService: ArlasBookmarkService

Defined in

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


dataChange

dataChange: BehaviorSubject<{ items: BookMark[] ; total: number }>

Stream that emits whenever the data has been modified.

Inherited from

ArlasPersistenceDatabase.dataChange

Defined in

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


persistenceService

persistenceService: PersistenceService

Inherited from

ArlasPersistenceDatabase.persistenceService

Defined in

projects/arlas-toolkit/src/lib/services/bookmark/bookmarkPersistenceDatabase.ts:33


startupService

startupService: ArlasStartupService

Defined in

projects/arlas-toolkit/src/lib/services/bookmark/bookmarkPersistenceDatabase.ts:34


storageKey

storageKey: string

Inherited from

ArlasPersistenceDatabase.storageKey

Defined in

projects/arlas-toolkit/src/lib/tools/arlasPersistenceDatabase.ts:35


storageObjectMap

storageObjectMap: Map<string, BookMark>

Inherited from

ArlasPersistenceDatabase.storageObjectMap

Defined in

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

Accessors

data

get data(): Object

Returns

Object

Name Type
items T[]
total number

Inherited from

ArlasPersistenceDatabase.data

Defined in

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

Methods

add

add(storageObject): Observable<void>

Parameters

Name Type
storageObject BookMark

Returns

Observable<void>

Inherited from

ArlasPersistenceDatabase.add

Defined in

projects/arlas-toolkit/src/lib/tools/arlasPersistenceDatabase.ts:56


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/bookmarkPersistenceDatabase.ts:55


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

ArlasPersistenceDatabase.init

Defined in

projects/arlas-toolkit/src/lib/services/bookmark/bookmarkPersistenceDatabase.ts:38


list

list(size, page, order, key?): Observable<void>

Parameters

Name Type Default value
size number undefined
page number undefined
order string undefined
key any undefined

Returns

Observable<void>

Inherited from

ArlasPersistenceDatabase.list

Defined in

projects/arlas-toolkit/src/lib/tools/arlasPersistenceDatabase.ts:79


remove

remove(id): Observable<void>

Parameters

Name Type
id string

Returns

Observable<void>

Inherited from

ArlasPersistenceDatabase.remove

Defined in

projects/arlas-toolkit/src/lib/tools/arlasPersistenceDatabase.ts:72


setPage

setPage(page): void

Parameters

Name Type
page Object
page.number number
page.size number

Returns

void

Inherited from

ArlasPersistenceDatabase.setPage

Defined in

projects/arlas-toolkit/src/lib/tools/arlasPersistenceDatabase.ts:105


update

update(id, storageObject): Observable<void>

Parameters

Name Type
id string
storageObject BookMark

Returns

Observable<void>

Inherited from

ArlasPersistenceDatabase.update

Defined in

projects/arlas-toolkit/src/lib/tools/arlasPersistenceDatabase.ts:96