ObservableSessionStore
PersistedSessionStore
ClientContextMgr
| Package: | CQ_Analytics |
| Class: | ClientContextMgr |
| Extends: | CQ_Analytics.PersistedSessionStore |
| Clientlib: | personalization.core |
CQ_Analytics.ClientContextMgr object is a singleton providing methods for registration,
persistence and management of different session stores linked to the clientcontext.| Property | Defined By | |
|---|---|---|
|
CONFIG_PATH : String
<static> Location of the config.
|
ClientContextMgr | |
| Method | Defined By | |
|---|---|---|
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 | |
get( Boolean toServer ) : Object Returns the current clientcontext object. Object can contain the non server persited data.
Returns the current clientcontext object. Object can contain the non server persited data.
Parameters:
|
ClientContextMgr | |
|
getConfig() : Object Returns the config object.
Returns the config object.
Parameters:
|
ClientContextMgr | |
getData( String[] excluded ) : Object Returns the store data.
Returns the store data.
Parameters:
|
SessionStore | |
getEditConfig( String storename ) : Object Returns the edit config object for the give store name.
Shortcut to
config["configs"][storename]["edit"].
Returns the edit config object for the give store name.
Shortcut to
config["configs"][storename]["edit"].
Parameters:
|
ClientContextMgr | |
|
getId() : String Returns the current clientcontext ID. Can be either:
visitor ID if defined
session unique ID in other case.
If visi...
Returns the current clientcontext ID. Can be either:
Parameters:
|
ClientContextMgr | |
getInitProperty( String name ) : String Returns the value of an initial property.
Returns the value of an initial property.
Parameters:
|
SessionStore | |
getInitialData( String storename ) : Object Returns the initial data for the give store name.
Shortcut to
config["data"][storename].
Returns the initial data for the give store name.
Shortcut to
config["data"][storename].
Parameters:
|
ClientContextMgr | |
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 | |
getRegisteredStore( String name ) : CQ_Analytics.SessionStore Returns the registered store looked up by name.
Returns the registered store looked up by name.
Added in CQ 5.5.
Parameters:
|
ClientContextMgr | |
|
getSessionId() : String Returns the unique session ID.
Returns the unique session ID.
Parameters:
|
ClientContextMgr | |
|
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 | |
getStoreConfig( String storename ) : Object Returns the store config object for the give store name.
Shortcut to
config["configs"][storename]["store"].
Returns the store config object for the give store name.
Shortcut to
config["configs"][storename]["store"].
Parameters:
|
ClientContextMgr | |
|
getStoreKey() : String Returns the store key name used by persistence.
Returns the store key name used by persistence.
Parameters:
|
PersistedSessionStore | |
|
getStores() : Object Returns the registered stores.
Returns the registered stores.
Added in CQ 5.5.
Parameters:
|
ClientContextMgr | |
getUIConfig( String storename ) : Object Returns the UI config object for the give store name.
Shortcut to
config["configs"][storename]["ui"].
Returns the UI config object for the give store name.
Shortcut to
config["configs"][storename]["ui"].
Parameters:
|
ClientContextMgr | |
|
getVisitorId() : String Returns the visitor ID if defined.
Returns the visitor ID if defined.
Parameters:
|
ClientContextMgr | |
|
init() : void Initializes the store.
Initializes the store.
Parameters:
|
SessionStore | |
|
isAnonymous() : Boolean Returns if manager is still defined in anonymous mode (no visitor id defined).
Returns if manager is still defined in anonymous mode (no visitor id defined).
Parameters:
|
ClientContextMgr | |
|
isInitialized() : void Returns true if the store is initialized. False otherwise.
Returns true if the store is initialized. False otherwise.
Parameters:
|
SessionStore | |
isMode( Number mode ) : Boolean Returns if mode is defined.
Returns if mode is defined.
Parameters:
|
ClientContextMgr | |
isPersisted( String name ) : Boolean Returns if a property in persisted or not.
Returns if a property in persisted or not.
Parameters:
|
PersistedSessionStore | |
|
loadConfig() : void Loads the config and fires
configloaded and storesloaded events.
Loads the config and fires
configloaded and storesloaded events.
Parameters:
|
ClientContextMgr | |
loadInitProperties( Object obj, Boolean setValues ) : void Loads initial properties from an object.
Loads initial properties from an object.
Parameters:
|
SessionStore | |
onReady( Function callback, [Object scope] ) : void Executes the callback when the current ClientContextMgr is ready, i.e. when all stores are loaded.
Executes the callback when the current ClientContextMgr is ready, i.e. when all stores are loaded.
Added in CQ 5.5.
Parameters:
|
ClientContextMgr | |
|
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 | |
|
post() : void Posts the current clientcontext object to the server (occurs only if posting is started).
Posts the current clientcontext object to the server (occurs only if posting is started).
Parameters:
|
ClientContextMgr | |
register( CQ_Analytics.SessionStore sessionstore ) : void Registers a session store. The current ClickstreamcloudManager will handle its own persistence store
depending on upd...
Registers a session store. The current ClickstreamcloudManager will handle its own persistence store
depending on updates done into the registred session store.
Parameters:
|
ClientContextMgr | |
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 | |
setSuppressEvents( Boolean suppressEvents ) : void Sets the value of the suppressEvents property
Sets the value of the suppressEvents property
Parameters:
|
Observable | |
setVisitorId( String id ) : void Sets the visitor ID.
Sets the visitor ID.
Parameters:
|
ClientContextMgr | |
|
startPosting() : void Starts the posting.
Starts the posting.
Parameters:
|
ClientContextMgr | |
|
stopPosting() : void Stops the posting.
Stops the posting.
Parameters:
|
ClientContextMgr | |
update( CQ_Analytics.SessionStore sessionstore ) : void Updates a session store. The current registred session store with the same name is updated by the given one.
Updates a session store. The current registred session store with the same name is updated by the given one.
Parameters:
|
ClientContextMgr | |