Class CQ_Analytics.StrategyMgr
| Package: | CQ_Analytics |
| Class: | StrategyMgr |
| Extends: | Object |
| Clientlib: | personalization.core |
The CQ_Analytics.StrategyMgr object is a singleton managing registration of different selection
strategies and selection of teasers
This class is a singleton and cannot be created directly.
Public Properties
This class has no public properties.
Public Methods
| |
choose( String strategy, Array teasers ) : Object
Chooses one teaser if the teasers list depending on the specified strategy.
Chooses one teaser if the teasers list depending on the specified strategy.
Parameters:
strategy : StringStrategy name teasers : ArrayList of teasers
Returns:
ObjectThe selected teaser
|
StrategyMgr |
| |
isRegistered( String strategy ) : Boolean
Returns if a strategy is registered or not.
Returns if a strategy is registered or not.
Parameters:
strategy : StringStrategy name
Returns:
|
StrategyMgr |
| |
register( String strategy, Function func ) : void
Registers a selection strategy. Selection function must return true or false,
and has one Array parameter: list of al...
Registers a selection strategy. Selection function must return true or false,
and has one Array parameter: list of all teasers.
Parameters:
strategy : StringStrategy name func : FunctionSelection function
Returns:
|
StrategyMgr |
Public Events
This class has no public events.