Fish & Chips Club 4.10.0.0

hirondelle.fish.exercise.html5
Class PersonAction

Object
  extended by ActionImpl
      extended by ActionTemplateListAndEdit
          extended by hirondelle.fish.exercise.html5.PersonAction
All Implemented Interfaces:
Action

public final class PersonAction
extends ActionTemplateListAndEdit

Edit Persons.


Field Summary
static RequestParameter BORN
           
static RequestParameter COLOR
           
static RequestParameter EMAIL
           
static RequestParameter NAME
           
static RequestParameter PERSON_ID
           
static RequestParameter PHONE
           
static RequestParameter RATING
           
static RequestParameter WEBSITE
           
static RequestParameter WEIGHT
           
 
Fields inherited from class ActionTemplateListAndEdit
SupportedOperation
 
Fields inherited from class ActionImpl
DATA, ERRORS, ITEM_FOR_EDIT, ITEMS_FOR_LISTING, MESSAGES, USER_ID
 
Constructor Summary
PersonAction(RequestParser aRequestParser)
          Constructor.
 
Method Summary
protected  void attemptAdd()
          Add a new Person.
protected  void attemptChange()
          Apply an edit to an existing Person.
protected  void attemptDelete()
          Delete existing Persons.
protected  void attemptFetchForChange()
          Fetch an existing Person in order to edit it.
protected  void doList()
          List all Persons, sorted by name.
protected  void validateUserInput()
          Ensure user input can build a Person.
 
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

PERSON_ID

public static final RequestParameter PERSON_ID

NAME

public static final RequestParameter NAME

EMAIL

public static final RequestParameter EMAIL

WEBSITE

public static final RequestParameter WEBSITE

WEIGHT

public static final RequestParameter WEIGHT

PHONE

public static final RequestParameter PHONE

COLOR

public static final RequestParameter COLOR

RATING

public static final RequestParameter RATING

BORN

public static final RequestParameter BORN
Constructor Detail

PersonAction

public PersonAction(RequestParser aRequestParser)
Constructor.

Method Detail

doList

protected void doList()
               throws DAOException
List all Persons, sorted by name.

Specified by:
doList in class ActionTemplateListAndEdit
Throws:
DAOException

validateUserInput

protected void validateUserInput()
Ensure user input can build a Person.

Specified by:
validateUserInput in class ActionTemplateListAndEdit

attemptAdd

protected void attemptAdd()
                   throws DAOException
Add a new Person.

Specified by:
attemptAdd in class ActionTemplateListAndEdit
Throws:
DAOException

attemptFetchForChange

protected void attemptFetchForChange()
                              throws DAOException
Fetch an existing Person in order to edit it.

Specified by:
attemptFetchForChange in class ActionTemplateListAndEdit
Throws:
DAOException

attemptChange

protected void attemptChange()
                      throws DAOException
Apply an edit to an existing Person.

Specified by:
attemptChange in class ActionTemplateListAndEdit
Throws:
DAOException

attemptDelete

protected void attemptDelete()
                      throws DAOException
Delete existing Persons. Deletion will fail if some other item is linked to a Person.

Specified by:
attemptDelete in class ActionTemplateListAndEdit
Throws:
DAOException

Fish & Chips Club 4.10.0.0

Copyright Hirondelle Systems - Generated 2013Oct19.12.26