|
Fish & Chips Club 4.7.1.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ObjectActionImpl
ActionTemplateShowAndApply
hirondelle.fish.main.discussion.CommentAction
public final class CommentAction
List comments, and add new ones.
Comments are listed, along with a paging mechanism.
| Field Summary | |
|---|---|
static SqlId |
ADD_COMMENT
|
static RequestParameter |
COMMENT_BODY
|
static SqlId |
FETCH_RECENT_COMMENTS
|
static RequestParameter |
PAGE_INDEX
Used for the paging mechanism. |
static RequestParameter |
PAGE_SIZE
Used for the paging mechanism. |
| Fields inherited from class ActionTemplateShowAndApply |
|---|
SUPPORTED_OPERATION |
| Fields inherited from class ActionImpl |
|---|
ERRORS, ITEM_FOR_EDIT, ITEMS_FOR_LISTING, MESSAGES, USER_ID |
| Constructor Summary | |
|---|---|
CommentAction(RequestParser aRequestParser)
Constructor. |
|
| Method Summary | |
|---|---|
protected void |
apply()
Add a new Comment to the database. |
protected void |
show()
Show the listing of comments, and a form for adding new messages. |
protected void |
validateUserInput()
Ensure user input can build a new Comment. |
| 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 SqlId FETCH_RECENT_COMMENTS
public static final SqlId ADD_COMMENT
public static final RequestParameter COMMENT_BODY
public static final RequestParameter PAGE_SIZE
public static final RequestParameter PAGE_INDEX
| Constructor Detail |
|---|
public CommentAction(RequestParser aRequestParser)
| Method Detail |
|---|
protected void show()
throws AppException
show in class ActionTemplateShowAndApplyAppException
protected void validateUserInput()
throws AppException
Comment.
validateUserInput in class ActionTemplateShowAndApplyAppException
protected void apply()
throws AppException
Comment to the database.
apply in class ActionTemplateShowAndApplyAppException
|
Fish & Chips Club 4.7.1.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||