Predictions 4.10.0.0

hirondelle.predict.pub.json
Class ViewPublicListJsonAction

Object
  extended by ActionImpl
      extended by hirondelle.predict.pub.json.ViewPublicListJsonAction
All Implemented Interfaces:
Action

public final class ViewPublicListJsonAction
extends ActionImpl

Serve a given PredictionList in JSON format. Such data would typically be consumed by javascript code, which would render the data in some desired way.

See the /pub/JsonTest.jsp for an example of using javascript to call this action, and render the data in a web page.

View :

Field Summary
static RequestParameter LIST_ID
           
static SqlId LIST_PREDICTIONS
           
 
Fields inherited from class ActionImpl
DATA, ERRORS, ITEM_FOR_EDIT, ITEMS_FOR_LISTING, MESSAGES, USER_ID
 
Constructor Summary
ViewPublicListJsonAction(RequestParser aRequestParser)
          Constructor.
 
Method Summary
 ResponsePage execute()
          Fetch a PredictionList, its Predictions, and its average score, and place them all in request scope.
 
Methods inherited from class ActionImpl
addError, addError, addError, addMessage, addMessage, addToRequest, addToSession, copyFromSessionToRequest, createSessionAndCsrfToken, endSession, getErrors, getExistingSession, getFromSession, getIdParam, getIdParams, getLocale, getLoggedInUserName, getMessages, getOperation, getOrderBy, getParam, getParamUnsafe, getRequestParser, getResponsePage, getTimeZone, getUserId, hasErrors, removeFromSession, setResponsePage
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LIST_ID

public static final RequestParameter LIST_ID

LIST_PREDICTIONS

public static final SqlId LIST_PREDICTIONS
Constructor Detail

ViewPublicListJsonAction

public ViewPublicListJsonAction(RequestParser aRequestParser)
Constructor.

Method Detail

execute

public ResponsePage execute()
                     throws AppException
Fetch a PredictionList, its Predictions, and its average score, and place them all in request scope.

Specified by:
execute in interface Action
Specified by:
execute in class ActionImpl
Throws:
AppException

Predictions 4.10.0.0

Copyright Hirondelle Systems - Generated 2013Oct19.12.27