ObservableSessionStore
PersistedSessionStore
PersistedJSONStore
PersistedJSONPStore
| Package: | CQ_Analytics |
| Class: | PersistedJSONPStore |
| Extends: | CQ_Analytics.PersistedJSONStore |
| Clientlib: | personalization.core |
| Method | Defined By | |
|---|---|---|
|
PersistedJSONPStore() Creates a new PersistedJSONPStore.
Creates a new PersistedJSONPStore.
Added in CQ 5.5.
Parameters:
|
PersistedJSONPStore | |
PersistedJSONPStore.getInstance( String storeName, [String serviceURL], [Object dynamicData], [Boolean deferLoading], [Function loadingCallback] ) : CQ_Analytics.PersistedJSONPStore <static> Returns a new instance of a CQ_Analytics.PersistedJSONPStore instance.
<static> Returns a new instance of a CQ_Analytics.PersistedJSONPStore instance.
Parameters:
|
PersistedJSONPStore | |
PersistedJSONPStore.registerNewInstance( String storeName, String serviceURL, [Object dynamicData], [Function callback] ) : CQ_Analytics.PersistedJSONPStore <static> Creates, registers in the ClientContext and returns a new instance of a CQ_Analytics.PersistedJSONPSto...
<static> Creates, registers in the ClientContext and returns a new instance of a CQ_Analytics.PersistedJSONPStore instance.
Parameters:
|
PersistedJSONPStore | |
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:
|
PersistedJSONStore | |
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 | |
|
getServiceURL() : String Returns the service URL of the store.
Returns the service URL of the store.
Parameters:
|
PersistedJSONPStore | |
|
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 | |
|
getStoreKey() : String Returns the store key name used by persistence.
Returns the store key name used by persistence.
Parameters:
|
PersistedSessionStore | |
|
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:
|
PersistedJSONStore | |
|
isInitialized() : void Returns true if the store is initialized. False otherwise.
Returns true if the store is initialized. False otherwise.
Parameters:
|
SessionStore | |
isPersisted( String name ) : Boolean Returns if a property in persisted or not.
Returns if a property in persisted or not.
Parameters:
|
PersistedSessionStore | |
load( [String serviceURL], [Object dynamicData], [Function callback] ) : void Loads in the store the data from the remote JSONP service.
Loads in the store the data from the remote JSONP service.
Parameters:
|
PersistedJSONPStore | |
loadInitProperties( Object obj, Boolean setValues ) : void Loads initial properties from an object.
Loads initial properties from an object.
Parameters:
|
SessionStore | |
|
persist() : void Persists the store. All properties will be persisted as property=value using a CQ_Analytics.SessionPersistence.
Persists the store. All properties will be persisted as property=value using a CQ_Analytics.SessionPersistence.
Parameters:
|
PersistedSessionStore | |
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 | |
setNonPersisted( String name ) : void Defines a property as non persited. By default all properties are persisted.
Defines a property as non persited. By default all properties are persisted.
Parameters:
|
PersistedSessionStore | |
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 | |
setServiceURL( String serviceURL ) : void Sets a new service URL.
Sets a new service URL.
Parameters:
|
PersistedJSONPStore | |
setSuppressEvents( Boolean suppressEvents ) : void Sets the value of the suppressEvents property
Sets the value of the suppressEvents property
Parameters:
|
Observable | |