|
Fish & Chips Club 4.10.0.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectActionImpl
ActionTemplateShowAndApply
hirondelle.fish.exercise.fileupload.ImageUploadAction
public final class ImageUploadAction
Overwrite the image used on the home page.
This is an example of uploading a file, validating it, and saving it to the file system.
See Image
for details regarding validation.
Field Summary | |
---|---|
static SqlId |
ADD_IMAGE
|
static RequestParameter |
DESCRIPTION
This 'regular' param will have its value checked by ApplicationFirewallImpl in the usual way. |
static RequestParameter |
IMAGE_FILE
This file upload param will not have its value checked as would a regular param. |
static SqlId |
LIST_IMAGES
|
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 | |
---|---|
ImageUploadAction(RequestParser aRequestParser)
Constructor |
Method Summary | |
---|---|
protected void |
apply()
If user input is valid, overwrite the image file used on the home page; save it to the database as well. |
protected void |
show()
Show a blank form. |
protected void |
validateUserInput()
Ensure user input can create an Image object. |
Methods inherited from class ActionTemplateShowAndApply |
---|
execute |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final RequestParameter DESCRIPTION
public static final RequestParameter IMAGE_FILE
public static final SqlId ADD_IMAGE
public static final SqlId LIST_IMAGES
Constructor Detail |
---|
public ImageUploadAction(RequestParser aRequestParser)
Method Detail |
---|
protected void show() throws AppException
show
in class ActionTemplateShowAndApply
AppException
protected void validateUserInput() throws AppException
Image
object.
validateUserInput
in class ActionTemplateShowAndApply
AppException
protected void apply() throws AppException
apply
in class ActionTemplateShowAndApply
AppException
|
Fish & Chips Club 4.10.0.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |