Fish & Chips Club 4.10.0.0

hirondelle.fish.all.preferences
Class PreferencesAction

Object
  extended by ActionImpl
      extended by ActionTemplateShowAndApply
          extended by hirondelle.fish.all.preferences.PreferencesAction
All Implemented Interfaces:
Action

public final class PreferencesAction
extends ActionTemplateShowAndApply

Update user preferences.

This class only changes user language preference.

View : SQL Statements :

Field Summary
static SqlId CHANGE_PREFERENCES
           
static SqlId FETCH_PREFERENCES
           
static RequestParameter LOCALE
           
 
Fields inherited from class ActionTemplateShowAndApply
SUPPORTED_OPERATION
 
Fields inherited from class ActionImpl
DATA, ERRORS, ITEM_FOR_EDIT, ITEMS_FOR_LISTING, MESSAGES, USER_ID
 
Constructor Summary
PreferencesAction(RequestParser aRequestParser)
          Constructor.
 
Method Summary
protected  void apply()
          Apply updates to the database.
protected  void show()
          Show the form.
protected  void validateUserInput()
          Check user input can build a Preferences object.
 
Methods inherited from class ActionTemplateShowAndApply
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

FETCH_PREFERENCES

public static final SqlId FETCH_PREFERENCES

CHANGE_PREFERENCES

public static final SqlId CHANGE_PREFERENCES

LOCALE

public static final RequestParameter LOCALE
Constructor Detail

PreferencesAction

public PreferencesAction(RequestParser aRequestParser)
Constructor.

Method Detail

show

protected void show()
             throws DAOException
Show the form.

Specified by:
show in class ActionTemplateShowAndApply
Throws:
DAOException

validateUserInput

protected void validateUserInput()
                          throws AppException
Check user input can build a Preferences object.

Specified by:
validateUserInput in class ActionTemplateShowAndApply
Throws:
AppException

apply

protected void apply()
              throws AppException
Apply updates to the database.

Specified by:
apply in class ActionTemplateShowAndApply
Throws:
AppException

Fish & Chips Club 4.10.0.0

Copyright Hirondelle Systems - Generated 2013Oct19.12.26