arlas-wui-toolkit / Exports / ExtendPersistenceDatabase
Class: ExtendPersistenceDatabase
Hierarchy
↳ ExtendPersistenceDatabase
Table of contents
Constructors
Properties
Accessors
Methods
Constructors
constructor
• new ExtendPersistenceDatabase(persistenceService
)
Parameters
Name | Type |
---|---|
persistenceService |
PersistenceService |
Overrides
ArlasPersistenceDatabase.constructor
Defined in
projects/arlas-toolkit/src/lib/services/extend/extendPersistenceDatabase.ts:28
Properties
additionalObject
• additionalObject: any
Inherited from
ArlasPersistenceDatabase.additionalObject
Defined in
projects/arlas-toolkit/src/lib/tools/arlasPersistenceDatabase.ts:37
dataChange
• dataChange: BehaviorSubject
<{ items
: Extend
[] ; 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/extend/extendPersistenceDatabase.ts:28
storageKey
• storageKey: string
Inherited from
ArlasPersistenceDatabase.storageKey
Defined in
projects/arlas-toolkit/src/lib/tools/arlasPersistenceDatabase.ts:35
storageObjectMap
• storageObjectMap: Map
<string
, Extend
>
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 |
Extend |
Returns
Observable
<void
>
Inherited from
Defined in
projects/arlas-toolkit/src/lib/tools/arlasPersistenceDatabase.ts:56
createExtend
▸ createExtend(name
, geometry
, visibility?
, date?
, id?
): Extend
Parameters
Name | Type | Default value |
---|---|---|
name |
string |
undefined |
geometry |
any |
undefined |
visibility |
boolean |
false |
date? |
Date |
undefined |
id? |
string |
undefined |
Returns
Defined in
projects/arlas-toolkit/src/lib/services/extend/extendPersistenceDatabase.ts:43
init
▸ init(extend
): Extend
Method call for each element at init
Parameters
Name | Type | Description |
---|---|---|
extend |
Extend |
Object to init of type |
Returns
Overrides
Defined in
projects/arlas-toolkit/src/lib/services/extend/extendPersistenceDatabase.ts:32
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
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 |
Extend |
Returns
Observable
<void
>
Inherited from
ArlasPersistenceDatabase.update
Defined in
projects/arlas-toolkit/src/lib/tools/arlasPersistenceDatabase.ts:96