Fish & Chips Club 4.10.0.0

hirondelle.fish.main.discussion
Class CommentAction

Object
  extended by ActionImpl
      extended by ActionTemplateShowAndApply
          extended by hirondelle.fish.main.discussion.CommentAction
All Implemented Interfaces:
Action

public final class CommentAction
extends ActionTemplateShowAndApply

List comments, and add new ones.

Comments are listed, along with a paging mechanism.

View : SQL Statements :

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
DATA, 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 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_RECENT_COMMENTS

public static final SqlId FETCH_RECENT_COMMENTS

ADD_COMMENT

public static final SqlId ADD_COMMENT

COMMENT_BODY

public static final RequestParameter COMMENT_BODY

PAGE_SIZE

public static final RequestParameter PAGE_SIZE
Used for the paging mechanism.


PAGE_INDEX

public static final RequestParameter PAGE_INDEX
Used for the paging mechanism.

Constructor Detail

CommentAction

public CommentAction(RequestParser aRequestParser)
Constructor.

Method Detail

show

protected void show()
             throws AppException
Show the listing of comments, and a form for adding new messages.

Specified by:
show in class ActionTemplateShowAndApply
Throws:
AppException

validateUserInput

protected void validateUserInput()
                          throws AppException
Ensure user input can build a new Comment.

Specified by:
validateUserInput in class ActionTemplateShowAndApply
Throws:
AppException

apply

protected void apply()
              throws AppException
Add a new Comment 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