Package org.corrib.s3b.recommendations.plugin

Examples of org.corrib.s3b.recommendations.plugin.RecommendationPlugin


      prop = new SmartProperties(new File(s3bConfiguration));
   
    Map<String, String>[] amConfig = prop.getAsMap("recommendation_plugin", "id", "type", "value", "property", "prefix", "query", "postprocess");
   
    for(Map<String,String> config : amConfig) {
      RecommendationPlugin plugin = new GenericRecommendationPlugin(config.get("id"), config.get("type"),
                                      config.get("value"), config.get("property"),
                                      config.get("prefix"), config.get("query"),
                                      config.get("postprocess"));
     
      plugins.put(config.get("id"), plugin);
View Full Code Here


        int limit = urpTable[i].getLimit();
        int weight = urpTable[i].getWeight();

        Set<Recommendation> limitedResult = new TreeSet<Recommendation>();

        RecommendationPlugin type = RecommendationTemplates.getInstance().getPlugin(name);
        SortedSet<Recommendation> resultsArray = type.findRecommendations(S3BRepository.getInstance().getModel().createURI(resource));
       
        if(resultsArray != null) {       
          Set<Recommendation> tmp = new TreeSet<Recommendation>(resultsArray);

          while(tmp.size()> limit) {
View Full Code Here

TOP

Related Classes of org.corrib.s3b.recommendations.plugin.RecommendationPlugin

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.