ObservableSessionStore
SegmentMgr
| Package: | CQ_Analytics |
| Class: | SegmentMgr |
| Extends: | CQ_Analytics.SessionStore |
| Clientlib: | personalization.core |
CQ_Analytics.SegmentMgr object is a singleton providing methods for registration and resolution
of different segments.| Method | Defined By | |
|---|---|---|
SegmentMgr.loadSegments( String path ) : void <static> Loads the segments at URL: path + ".segment.js".
Fires "segmentsload" event.
<static> Loads the segments at URL: path + ".segment.js".
Fires "segmentsload" event.
Added in CQ 5.5.
Parameters:
|
SegmentMgr | |
SegmentMgr.renderer( CQ_Analytics.SessionStore store, String targetId ) : void <static> Renders the current segments found in the SegmentMgr store. Rendering is appended to the provided
targ...
<static> Renders the current segments found in the SegmentMgr store. Rendering is appended to the provided
target id.
Added in CQ 5.5.
Parameters:
|
SegmentMgr | |
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 | |
getBoost( Array segmentPath ) : Number Returns the boost of a segment.
Returns the boost of a segment.
Parameters:
|
SegmentMgr | |
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 | |
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 | |
getMaxBoost( String[] segmentPaths, Object clientcontext ) : Number Returns the max boost of an array of segments. Segment must resolve the given clientcontext.
Returns the max boost of an array of segments. Segment must resolve the given clientcontext.
Parameters:
|
SegmentMgr | |
|
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 | |
getResolved( Object clientcontext ) : String[] Returns all resolving segments for the given clientcontext.
Returns all resolving segments for the given clientcontext.
Parameters:
|
SegmentMgr | |
|
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 | |
|
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 | |
register( String segmentPath, String rule, [Number boost] ) : void Registers a segment.
Registers a segment.
Parameters:
|
SegmentMgr | |
reload( String path ) : void Reloads the given segment.
Reloads the given segment.
Parameters:
|
SegmentMgr | |
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 | |
resolve( String segmentPath, Object clientcontext ) : Boolean/String Resolves a segment. Tries to eval the rule of the segment the given clientcontext object.
Resolves a segment. Tries to eval the rule of the segment the given clientcontext object.
Parameters:
|
SegmentMgr | |
resolveArray( String[] segmentPaths, Object clientcontext, [String operator] ) : Boolean/String Resolves an array of segments. Resolution depends on operator:
operator is AND: success if all segments of array reso...
Resolves an array of segments. Resolution depends on operator:
Parameters:
|
SegmentMgr | |
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 | |