Fish & Chips Club 4.10.0.0

hirondelle.fish.main.rating
Class RatingAction

Object
  extended by ActionImpl
      extended by ActionTemplateListAndEdit
          extended by hirondelle.fish.main.rating.RatingAction
All Implemented Interfaces:
Action

public final class RatingAction
extends ActionTemplateListAndEdit

Allow ratings to be edited for each Resto.

View : SQL Statements :

Field Summary
static RequestParameter BEER_RATING
           
static RequestParameter CHIPS_RATING
           
static RequestParameter FISH_RATING
           
static RequestParameter LOCATION_RATING
           
static RequestParameter PRICE_RATING
           
static SqlId RATING_CHANGE
           
static SqlId RATING_FETCH_FOR_CHANGE
           
static RequestParameter RATING_ID
           
static SqlId RATING_LIST
           
static RequestParameter SERVICE_RATING
           
 
Fields inherited from class ActionTemplateListAndEdit
SupportedOperation
 
Fields inherited from class ActionImpl
DATA, ERRORS, ITEM_FOR_EDIT, ITEMS_FOR_LISTING, MESSAGES, USER_ID
 
Constructor Summary
RatingAction(RequestParser aRequestParser)
          Constructor.
 
Method Summary
protected  void attemptAdd()
          Not implemented in this case.
protected  void attemptChange()
          Apply an edit to a Rating.
protected  void attemptDelete()
          Not implemented in this case.
protected  void attemptFetchForChange()
          Fetch a Rating in preparation for editing it.
protected  void doList()
          List ratings for all restaurants.
protected  void validateUserInput()
          Ensure user input can create a Rating.
 
Methods inherited from class ActionTemplateListAndEdit
addDynamicParameterToRedirectPage, execute
 
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

RATING_LIST

public static final SqlId RATING_LIST

RATING_FETCH_FOR_CHANGE

public static final SqlId RATING_FETCH_FOR_CHANGE

RATING_CHANGE

public static final SqlId RATING_CHANGE

RATING_ID

public static final RequestParameter RATING_ID

FISH_RATING

public static final RequestParameter FISH_RATING

CHIPS_RATING

public static final RequestParameter CHIPS_RATING

PRICE_RATING

public static final RequestParameter PRICE_RATING

LOCATION_RATING

public static final RequestParameter LOCATION_RATING

SERVICE_RATING

public static final RequestParameter SERVICE_RATING

BEER_RATING

public static final RequestParameter BEER_RATING
Constructor Detail

RatingAction

public RatingAction(RequestParser aRequestParser)
Constructor.

Method Detail

doList

protected void doList()
               throws DAOException
List ratings for all restaurants.

Specified by:
doList in class ActionTemplateListAndEdit
Throws:
DAOException

attemptFetchForChange

protected void attemptFetchForChange()
                              throws DAOException
Fetch a Rating in preparation for editing it.

Specified by:
attemptFetchForChange in class ActionTemplateListAndEdit
Throws:
DAOException

validateUserInput

protected void validateUserInput()
Ensure user input can create a Rating.

Specified by:
validateUserInput in class ActionTemplateListAndEdit

attemptChange

protected void attemptChange()
                      throws DAOException
Apply an edit to a Rating.

Specified by:
attemptChange in class ActionTemplateListAndEdit
Throws:
DAOException

attemptAdd

protected void attemptAdd()
                   throws DAOException
Not implemented in this case. The ratings are created at the same time as the underlying Restaurant, with 0 default values for each rated item.

Specified by:
attemptAdd in class ActionTemplateListAndEdit
Throws:
DAOException

attemptDelete

protected void attemptDelete()
                      throws DAOException
Not implemented in this case.

Specified by:
attemptDelete in class ActionTemplateListAndEdit
Throws:
DAOException

Fish & Chips Club 4.10.0.0

Copyright Hirondelle Systems - Generated 2013Oct19.12.26