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


bookmarkService

bookmarkService: ArlasBookmarkService


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


persistenceService

persistenceService: PersistenceService

Inherited from

ArlasPersistenceDatabase.persistenceService


startupService

startupService: ArlasStartupService


storageKey

storageKey: string

Inherited from

ArlasPersistenceDatabase.storageKey

Defined in

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


storageObjectMap

storageObjectMap: Map<string, BookMark>

Inherited from

ArlasPersistenceDatabase.storageObjectMap

Defined in

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

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

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


incrementBookmarkView

incrementBookmarkView(id): Observable<void>

Parameters

Name Type
id string

Returns

Observable<void>

Defined in

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


init

init(bookmark, service): BookMark

Method call for each element at init

Parameters

Name Type
bookmark BookMark
service ArlasBookmarkService

Returns

BookMark

Overrides

ArlasPersistenceDatabase.init

Defined in

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


list

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

Parameters

Name Type
size number
page number
order string

Returns

Observable<void>

Inherited from

ArlasPersistenceDatabase.list

Defined in

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


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


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


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