|
Fish & Chips Club 4.10.0.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object ActionImpl ActionTemplateListAndEdit hirondelle.fish.exercise.html5.PersonAction
public final class PersonAction
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 Person s. |
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 Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final RequestParameter PERSON_ID
public static final RequestParameter NAME
public static final RequestParameter EMAIL
public static final RequestParameter WEBSITE
public static final RequestParameter WEIGHT
public static final RequestParameter PHONE
public static final RequestParameter COLOR
public static final RequestParameter RATING
public static final RequestParameter BORN
Constructor Detail |
---|
public PersonAction(RequestParser aRequestParser)
Method Detail |
---|
protected void doList() throws DAOException
doList
in class ActionTemplateListAndEdit
DAOException
protected void validateUserInput()
Person
.
validateUserInput
in class ActionTemplateListAndEdit
protected void attemptAdd() throws DAOException
Person
.
attemptAdd
in class ActionTemplateListAndEdit
DAOException
protected void attemptFetchForChange() throws DAOException
Person
in order to edit it.
attemptFetchForChange
in class ActionTemplateListAndEdit
DAOException
protected void attemptChange() throws DAOException
Person
.
attemptChange
in class ActionTemplateListAndEdit
DAOException
protected void attemptDelete() throws DAOException
Person
s.
Deletion will fail if some other item is linked to a Person.
attemptDelete
in class ActionTemplateListAndEdit
DAOException
|
Fish & Chips Club 4.10.0.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |