Package net.fp.rp.search.mid.feedback

Examples of net.fp.rp.search.mid.feedback.CategoryFeedback


            logger.info(
                "Category feedback - background process for score calculation");

            try {
                //convert to feedback category
                CategoryFeedback feedback = (CategoryFeedback) advice;

                //update the category score
                PluginManager.getCategoryStores().updateCategoryScore(feedback.getCategoryName(),
                    feedback.getScore());
            } catch (RpException e) {
                logger.warn("Exception occured in category feedback process", e);
            }
        }
    }
View Full Code Here


                        String categLocation = node.getProperty(RP.categoryLocation)
                                                  .getObject().toString();

                        logger.debug("Feedback category constructed");

                        return new CategoryFeedback(Integer.valueOf(score)
                                                           .intValue(),
                            categName, categLocation);
                    } else {
                        logger.warn("The feedback type is not supported");
                        throw new RpException("feedback.model.type.error");
View Full Code Here

                        String.valueOf(feedback.getScore()));
                    node.addProperty(RP.documentID, feedback.getDocumentID());
                    node.addProperty(RP.categoryName, feedback.getCategoryName());
                    node.addProperty(RP.summary, feedback.getSummary());
                } else if (advice instanceof CategoryFeedback) {
                    CategoryFeedback feedback = (CategoryFeedback) advice;
                    node.addProperty(RP.score,
                        String.valueOf(feedback.getScore()));
                    node.addProperty(RP.categoryName, feedback.getCategoryName());
                    node.addProperty(RP.categoryLocation,
                        feedback.getCategoryLocation());
                }

                //write the model
                model.write(new FileOutputStream(file));
                model.close();
View Full Code Here

            //read the other params
            String score = request.getParameter(CategoryFeedback.SCORE);
            String categname = request.getParameter(CategoryFeedback.CATEGORY_NAME);
            String location = request.getParameter(CategoryFeedback.CATEGORY_LOCATION);

            feedback = new CategoryFeedback(Integer.valueOf(score).intValue(),
                    categname, location);

            String searchterm = request.getParameter(PARAM_SEARCHTERM);

            //fill the model with data
View Full Code Here

TOP

Related Classes of net.fp.rp.search.mid.feedback.CategoryFeedback

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.