Name
sn_nb_action.RARecommenderHandler
Description
Implements extension point sn_gd_guidance.GuidanceRecommenderSystemFactory Factory to register handlers to manage guidances recommended or being used in different systems.
Script
var RARecommenderHandler = Class.create();
RARecommenderHandler.prototype = Object.extendsObject(sn_gd_guidance.GuidanceRecommenderHandler, {
initialize: function() {},
/*
* This method identifies the recommender that handles this implementation.
*Should be "GuidanceHistory.recommender".
*/
getId: function() {
return sn_nb_action.Constants.TBL_ACTION_DETAIL;
},
/*
* This method tells if the current Guidance can be acted upon.
*It calls recommender system methods to decide if guidance has not been acted by another user for same context.
*/
isGuidanceActionAllowed: function( recommendedBy) {
var nbaService = new sn_nb_action.NextBestActionService();
return nbaService.isRecommendationAllowed(recommendedBy);
},
type: 'RARecommenderHandler'
});
Sys ID
0de3ff137731111063e8dbad6b5a9945