void onActivate() { currentState = "Ready to start algorithm."; List<User> userList = SpringUtils.getUserService().getAllUsers(); userSelectModel = selectModelFactory.create(userList, "name"); }
Object onSuccess() { SpringUtils.getUserService().calculatePredictionRanks(selectedUser.getID()); currentState = "Rank predictions up to date for user with username: " + selectedUser.getName(); return currentStateZone.getBody(); }
void executeAlgorithm() { SpringUtils.getMovieService().executeMoviesSimilarityAlgorithm(); }