Fish & Chips Club 4.10.0.0

hirondelle.fish.main.member
Class MemberAction

Object
  extended by ActionImpl
      extended by ActionTemplateListAndEdit
          extended by hirondelle.fish.main.member.MemberAction
All Implemented Interfaces:
Action

public final class MemberAction
extends ActionTemplateListAndEdit

Edit the Members of the Fish and Chips Club.

A Member that is "inactive" will be retained in the database, but will simply not be part of the RSVP list.

View : SQL Statements :

Field Summary
static SqlId COUNT_ACTIVE_MEMBERS
           
static RequestParameter DISPOSITION
           
static RequestParameter IS_ACTIVE
           
static SqlId MEMBER_ADD
           
static SqlId MEMBER_CHANGE
           
static SqlId MEMBER_DELETE
           
static SqlId MEMBER_FETCH
           
static RequestParameter MEMBER_ID
           
static SqlId MEMBER_LIST
           
static RequestParameter NAME
           
 
Fields inherited from class ActionTemplateListAndEdit
SupportedOperation
 
Fields inherited from class ActionImpl
DATA, ERRORS, ITEM_FOR_EDIT, ITEMS_FOR_LISTING, MESSAGES, USER_ID
 
Constructor Summary
MemberAction(RequestParser aRequestParser)
          Constructor.
 
Method Summary
protected  void attemptAdd()
          Add a new Member.
protected  void attemptChange()
          Apply an edit to an existing Member.
protected  void attemptDelete()
          Delete existing Members.
protected  void attemptFetchForChange()
          Fetch an existing Member in order to edit it.
protected  void doList()
          List all Members, sorted by name.
protected  void validateUserInput()
          Ensure user input can build a Member.
 
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

MEMBER_LIST

public static final SqlId MEMBER_LIST

MEMBER_FETCH

public static final SqlId MEMBER_FETCH

MEMBER_ADD

public static final SqlId MEMBER_ADD

MEMBER_CHANGE

public static final SqlId MEMBER_CHANGE

MEMBER_DELETE

public static final SqlId MEMBER_DELETE

COUNT_ACTIVE_MEMBERS

public static final SqlId COUNT_ACTIVE_MEMBERS

IS_ACTIVE

public static final RequestParameter IS_ACTIVE

MEMBER_ID

public static final RequestParameter MEMBER_ID

NAME

public static final RequestParameter NAME

DISPOSITION

public static final RequestParameter DISPOSITION
Constructor Detail

MemberAction

public MemberAction(RequestParser aRequestParser)
Constructor.

Method Detail

doList

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

Specified by:
doList in class ActionTemplateListAndEdit
Throws:
DAOException

validateUserInput

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

Specified by:
validateUserInput in class ActionTemplateListAndEdit

attemptAdd

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

Specified by:
attemptAdd in class ActionTemplateListAndEdit
Throws:
DAOException

attemptFetchForChange

protected void attemptFetchForChange()
                              throws DAOException
Fetch an existing Member 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 Member.

Specified by:
attemptChange in class ActionTemplateListAndEdit
Throws:
DAOException

attemptDelete

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

Specified by:
attemptDelete in class ActionTemplateListAndEdit
Throws:
DAOException

Fish & Chips Club 4.10.0.0

Copyright Hirondelle Systems - Generated 2013Oct19.12.26