ObservableSessionStore
JSONStore
| Package: | CQ_Analytics |
| Class: | JSONStore |
| Subclasses: | ActivityStreamMgr, JSONPStore |
| Extends: | CQ_Analytics.SessionStore |
| Clientlib: | personalization.core |
| Method | Defined By | |
|---|---|---|
|
JSONStore() Creates a new JSONStore.
Creates a new JSONStore.
Added in CQ 5.5.
Parameters:
|
JSONStore | |
addInitProperty( String name, String value ) : void Adds an initial property to the store.
Adds an initial property to the store.
Parameters:
|
SessionStore | |
addListener( String event, Function fct, [Object scope] ) : void Appends an event handler to the current Observable.
Appends an event handler to the current Observable.
Parameters:
|
Observable | |
|
clear() : void Clears the store.
Clears the store.
Parameters:
|
SessionStore | |
getData( String[] excluded ) : Object Returns the store data.
Returns the store data.
Parameters:
|
SessionStore | |
getInitProperty( String name ) : String Returns the value of an initial property.
Returns the value of an initial property.
Parameters:
|
SessionStore | |
|
getJSON() : Object Returns the store data as a JSON object.
Returns the store data as a JSON object.
Parameters:
|
JSONStore | |
getLabel( String name ) : String Returns a store property friendly label.
Returns a store property friendly label.
Parameters:
|
SessionStore | |
getLink( String name ) : String Returns a store property in a link format.
Returns a store property in a link format.
Parameters:
|
SessionStore | |
|
getName() : void Returns the store name.
Returns the store name.
Parameters:
|
SessionStore | |
getProperty( String name, Boolean raw ) : String Returns the value of a store property (XSS filtered value).
Returns the value of a store property (XSS filtered value).
Parameters:
|
SessionStore | |
getPropertyNames( [String[] excluded] ) : String[] Returns all store property names.
Returns all store property names.
Parameters:
|
SessionStore | |
|
getSessionStore() : CQ_Analytics.SessionStore Returns the session store attached to the current object (returns this).
Returns the session store attached to the current object (returns this).
Parameters:
|
SessionStore | |
|
init() : void Initializes the store.
Initializes the store.
Parameters:
|
SessionStore | |
initJSON( Object jsonData ) : void Sets the store data with the specified JSON object. Note that inside the store, properties are stored based
on proper...
Sets the store data with the specified JSON object. Note that inside the store, properties are stored based
on property path in the store.
{
A: "valueA",
B: {
B1: "valueBB1"
}
will be accessed in the store as:
A: "valueA"
B/B1: "valueBB1"
Parameters:
|
JSONStore | |
|
isInitialized() : void Returns true if the store is initialized. False otherwise.
Returns true if the store is initialized. False otherwise.
Parameters:
|
SessionStore | |
loadInitProperties( Object obj, Boolean setValues ) : void Loads initial properties from an object.
Loads initial properties from an object.
Parameters:
|
SessionStore | |
removeListener( String event, Function fct ) : void Removes an event handler from the current Observable.
Removes an event handler from the current Observable.
Parameters:
|
Observable | |
removeProperty( String name ) : void Removes a property from the store.
Removes a property from the store.
Parameters:
|
SessionStore | |
|
reset() : void Resets the store: restores initial values.
Resets the store: restores initial values.
Parameters:
|
SessionStore | |
setProperties( Object values ) : void Sets the value of multiple properties
Sets the value of multiple properties
Parameters:
|
SessionStore | |
setProperty( String name, String value ) : void Sets the value of a property.
Sets the value of a property.
Parameters:
|
SessionStore | |
setSuppressEvents( Boolean suppressEvents ) : void Sets the value of the suppressEvents property
Sets the value of the suppressEvents property
Parameters:
|
Observable | |