Constructor
new StorageService()
Properties:
Name |
Type |
Description |
_config |
Object
|
|
_storages |
Object
|
|
_storageIds |
Object
|
|
STORAGE_ID |
Object
|
|
- Source:
Extends
Classes
- CookieStorage
- EnableNowStorage
- FioriStorage
- LocalStorage
- SessionStorage
- StorageInterface
Methods
(protected) ____defineStaticProperties()
auto define all to be cleaned properties
- Overrides:
- Source:
Throws:
Error
- Overrides:
- Source:
Returns:
-
Type
-
Help4.jscore.Base.Params
(protected) ____mergeDerivedParam(level0, type, value)
Parameters:
- Overrides:
- Source:
Throws:
Error
(protected) ____mergeDerivedParams(level0, level1)
Parameters:
- Overrides:
- Source:
Throws:
Error
(protected) ____resolveDerivedParams(classConfig)
Parameters:
- Overrides:
- Source:
(protected) _destroyControl(…keys)
destroys class properties
Parameters:
Name |
Type |
Attributes |
Description |
keys |
string
|
<repeatable>
|
|
- Overrides:
- Source:
fires an event that can be observed from outside
Parameters:
Name |
Type |
Description |
event |
Object
|
the event to be fired |
- Overrides:
- Source:
Returns:
-
Type
-
Help4.jscore.Base
fires an event that can be observed from outside
Parameters:
Name |
Type |
Description |
event |
Object
|
the event to be fired |
- Overrides:
- Source:
Returns:
-
Type
-
Promise.<Array.<Help4.EmbeddedEvent.EventResponse>>
fires an event that can be observed from outside
Parameters:
Name |
Type |
Description |
event |
Object
|
the event to be fired |
- Overrides:
- Source:
Returns:
-
Type
-
Array.<Help4.EmbeddedEvent.EventResponse>
addListener(eventType, listener) → {Help4.jscore.Base}
add an event listener
Parameters:
Name |
Type |
Description |
eventType |
string
|
Array.<string>
|
event type to be observed |
listener |
Help4.EmbeddedEvent.Listener
|
the callback function |
- Overrides:
- Source:
Returns:
-
Type
-
Help4.jscore.Base
addListenerSync(eventType, listener) → {Help4.jscore.Base}
add an event listener
Parameters:
Name |
Type |
Description |
eventType |
string
|
Array.<string>
|
event type to be observed |
listener |
Help4.EmbeddedEvent.Listener
|
the callback function |
- Overrides:
- Source:
Returns:
-
Type
-
Help4.jscore.Base
config(config)
Parameters:
Name |
Type |
Description |
config |
Object
|
|
- Source:
(async) del(key, paramsopt) → {Promise.<void>}
Parameters:
- Source:
Returns:
-
Type
-
Promise.<void>
destroy()
destroy instance
- Overrides:
- Source:
(async) get(key, paramsopt) → {Promise.<*>}
Parameters:
- Source:
Returns:
-
Type
-
Promise.<*>
Parameters:
Name |
Type |
Description |
storageId |
string
|
|
- Source:
Returns:
-
Type
-
Promise.<?Help4.service.StorageService.StorageInterface>
isDestroyed() → {boolean}
whether instance is destroyed
- Overrides:
- Source:
Returns:
-
Type
-
boolean
(async) isStorageAvailable(storageId) → {Promise.<boolean>}
Parameters:
Name |
Type |
Description |
storageId |
string
|
|
- Source:
Returns:
-
Type
-
Promise.<boolean>
(async) prepareAll(excludeopt) → {Promise.<void>}
Parameters:
Name |
Type |
Attributes |
Default |
Description |
exclude |
Array.<string>
|
<optional>
|
[]
|
|
- Source:
Returns:
-
Type
-
Promise.<void>
removeListener(eventType, listener) → {Help4.jscore.Base}
remove an event listener
Parameters:
- Overrides:
- Source:
Returns:
-
Type
-
Help4.jscore.Base
(async) set(key, value, paramsopt) → {Promise.<boolean>}
Parameters:
- Source:
Returns:
-
Type
-
Promise.<boolean>
Type Definitions
IterationExecutor(storage) → {Promise.<boolean>}
Parameters:
- Source:
Returns:
- true: stop execution
-
Type
-
Promise.<boolean>
IterationParams
Type:
Properties:
Name |
Type |
Attributes |
Default |
Description |
target |
Array.<string>
|
string
|
<optional>
|
null
|
[, , ...] or |
exclude |
Array.<string>
|
string
|
<optional>
|
null
|
[, , ...] or |
- Source:
Params
Type:
- Source: