Package hirondelle.predict.main.lists

Examples of hirondelle.predict.main.lists.PredictionList


  private PredictionDAO fDAO = new PredictionDAO();
  private static final Logger fLogger = Util.getLogger(ViewPublicListAction.class);
 
  private PredictionList fetchPredictionList() throws DAOException {
    PredictionListDAO dao = new PredictionListDAO();
    PredictionList result = dao.fetchPublic(getIdParam(LIST_ID));
    fLogger.fine("Parent list: " + result);
    return result;
  }
View Full Code Here


  private static ResponsePage getResponse(String aTitle){
    return TemplatedPage.get(aTitle, "view.jsp", ViewPublicListAction.class);   
  }

  private SafeText getPredictionListTitle() throws DAOException {
    PredictionList list = fetchPredictionList();
    SafeText ownerScreenName = list.getUserScreenName();
    SafeText title = fetchPredictionList().getTitle();
    return SafeText.from(ownerScreenName.getRawString() + " - " + title.getRawString());
  }
View Full Code Here

    List<Prediction> predictions = fDAO.list(getIdParam(LIST_ID));
    addToRequest(ITEMS_FOR_LISTING, predictions);
   
    addToRequest("averageScore", Prediction.calculateAverageScore(predictions));
   
    PredictionList list = fetchPredictionList();
    addToRequest("list", list);
   
    return getResponsePage();
  }
View Full Code Here

  private PredictionDAO fDAO = new PredictionDAO();
  private static final Logger fLogger = Util.getLogger(ViewPublicListJsonAction.class);
 
  private PredictionList fetchPredictionList() throws DAOException {
    PredictionListDAO dao = new PredictionListDAO();
    PredictionList result = dao.fetchPublic(getIdParam(LIST_ID));
    fLogger.fine("Parent list: " + result);
    return result;
  }
View Full Code Here

TOP

Related Classes of hirondelle.predict.main.lists.PredictionList

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.