arlas-wui-toolkit > "src/app/services/bookmark/bookmarkPersistenceDatabase" > BookmarkPersistenceDatabase

Class: BookmarkPersistenceDatabase

Hierarchy

ArlasPersistenceDatabase<BookMark>

↳ BookmarkPersistenceDatabase

Index

Constructors

Properties

Accessors

Methods


Constructors

constructor

new BookmarkPersistenceDatabase(bookmarkService: ArlasBookmarkService, persistenceService: PersistenceService, startupService: ArlasStartupService): BookmarkPersistenceDatabase

Overrides ArlasPersistenceDatabase.constructor

Defined in src/app/services/bookmark/bookmarkPersistenceDatabase.ts:29

Parameters:

Name Type
bookmarkService ArlasBookmarkService
persistenceService PersistenceService
startupService ArlasStartupService

Returns: BookmarkPersistenceDatabase


Properties

additionalObject

● additionalObject: any

Inherited from ArlasPersistenceDatabase.additionalObject

Defined in src/app/tools/arlasPersistenceDatabase.ts:35


bookmarkService

● bookmarkService: ArlasBookmarkService

Defined in src/app/services/bookmark/bookmarkPersistenceDatabase.ts:32


dataChange

● dataChange: BehaviorSubject<object> = new BehaviorSubject<{ total: number, items: T[] }>({ total: 0, items: [] })

Inherited from ArlasPersistenceDatabase.dataChange

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


persistenceService

● persistenceService: PersistenceService

Overrides ArlasPersistenceDatabase.persistenceService

Defined in src/app/services/bookmark/bookmarkPersistenceDatabase.ts:33


startupService

● startupService: ArlasStartupService

Defined in src/app/services/bookmark/bookmarkPersistenceDatabase.ts:34


storageKey

● storageKey: string

Inherited from ArlasPersistenceDatabase.storageKey

Defined in src/app/tools/arlasPersistenceDatabase.ts:33


storageObjectMap

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

Inherited from ArlasPersistenceDatabase.storageObjectMap

Defined in src/app/tools/arlasPersistenceDatabase.ts:30


Accessors

data

data:

Inherited from ArlasPersistenceDatabase.data

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


Methods

add

add(storageObject: BookMark): void

Inherited from ArlasPersistenceDatabase.add

Defined in src/app/tools/arlasPersistenceDatabase.ts:54

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

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

Parameters:

Name Type
id string

Returns: void


init

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

Overrides ArlasPersistenceDatabase.init

Defined in src/app/services/bookmark/bookmarkPersistenceDatabase.ts:38

Parameters:

Name Type
bookmark BookMark
service ArlasBookmarkService

Returns: BookMark


list

list(size: number, page: number, order: string): void

Inherited from ArlasPersistenceDatabase.list

Defined in src/app/tools/arlasPersistenceDatabase.ts:71

Parameters:

Name Type
size number
page number
order string

Returns: void


remove

remove(id: string): void

Inherited from ArlasPersistenceDatabase.remove

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

Parameters:

Name Type
id string

Returns: void


setPage

setPage(page: object): void

Inherited from ArlasPersistenceDatabase.setPage

Defined in src/app/tools/arlasPersistenceDatabase.ts:93

Parameters:

page: object

Name Type
number number
size number

Returns: void


update

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

Inherited from ArlasPersistenceDatabase.update

Defined in src/app/tools/arlasPersistenceDatabase.ts:87

Parameters:

Name Type
id string
storageObject BookMark

Returns: void