WEB4J Development Tools 4.10.0.0

hirondelle.web4jtools.codegenerator.field
Class FieldAction

Object
  extended by ActionImpl
      extended by ActionTemplateListAndEdit
          extended by hirondelle.web4jtools.codegenerator.field.FieldAction
All Implemented Interfaces:
Action

public final class FieldAction
extends ActionTemplateListAndEdit

Edit the fields used by the feature.

The order of how items are added will be retained in generated code.


Field Summary
static RequestParameter CHECK_EMAIL
           
static RequestParameter CHECK_PATTERN
           
static RequestParameter CHECK_SPAM
           
static RequestParameter CODE_TABLE
           
static RequestParameter CONTROL_STYLE
           
static RequestParameter DESCRIPTION
           
static RequestParameter ERROR_MESSAGE
           
static String FIELDS_KEY
          Key for storing fields in session scope.
static RequestParameter HARD_VALIDATON_PATTERN
           
static RequestParameter ID
           
static RequestParameter IS_DESC_ORDER
           
static RequestParameter IS_HARD_VALIDATED_FOR_LENGTH
           
static RequestParameter IS_ORDER_BY_FIELD
           
static RequestParameter IS_PRIMARY_KEY
           
static RequestParameter IS_REQUIRED
           
static RequestParameter MAXIMUM
           
static RequestParameter MINIMUM
           
static RequestParameter NAME
           
static RequestParameter NUM_DECIMALS
           
static RequestParameter TYPE
           
 
Fields inherited from class ActionTemplateListAndEdit
SupportedOperation
 
Fields inherited from class ActionImpl
DATA, ERRORS, ITEM_FOR_EDIT, ITEMS_FOR_LISTING, MESSAGES, USER_ID
 
Constructor Summary
FieldAction(RequestParser aRequestParser)
          Constructor.
 
Method Summary
protected  void attemptAdd()
          Add a new Field.
protected  void attemptChange()
          Apply an edit to an existing Field.
protected  void attemptDelete()
          Ensure the Field of a given id does not exist.
protected  void attemptFetchForChange()
          Fetch an existing Field in order to edit it.
protected  void doList()
          List all Fields, in the same order as created.
protected  void validateUserInput()
          Ensure user input can build a Field.
 
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

ID

public static final RequestParameter ID

NAME

public static final RequestParameter NAME

DESCRIPTION

public static final RequestParameter DESCRIPTION

IS_REQUIRED

public static final RequestParameter IS_REQUIRED

TYPE

public static final RequestParameter TYPE

CONTROL_STYLE

public static final RequestParameter CONTROL_STYLE

IS_PRIMARY_KEY

public static final RequestParameter IS_PRIMARY_KEY

MINIMUM

public static final RequestParameter MINIMUM

MAXIMUM

public static final RequestParameter MAXIMUM

ERROR_MESSAGE

public static final RequestParameter ERROR_MESSAGE

IS_HARD_VALIDATED_FOR_LENGTH

public static final RequestParameter IS_HARD_VALIDATED_FOR_LENGTH

HARD_VALIDATON_PATTERN

public static final RequestParameter HARD_VALIDATON_PATTERN

CHECK_PATTERN

public static final RequestParameter CHECK_PATTERN

CHECK_EMAIL

public static final RequestParameter CHECK_EMAIL

CHECK_SPAM

public static final RequestParameter CHECK_SPAM

IS_ORDER_BY_FIELD

public static final RequestParameter IS_ORDER_BY_FIELD

IS_DESC_ORDER

public static final RequestParameter IS_DESC_ORDER

NUM_DECIMALS

public static final RequestParameter NUM_DECIMALS

CODE_TABLE

public static final RequestParameter CODE_TABLE

FIELDS_KEY

public static final String FIELDS_KEY
Key for storing fields in session scope.

See Also:
Constant Field Values
Constructor Detail

FieldAction

public FieldAction(RequestParser aRequestParser)
Constructor.

Method Detail

doList

protected void doList()
               throws DAOException
List all Fields, in the same order as created.

Specified by:
doList in class ActionTemplateListAndEdit
Throws:
DAOException

validateUserInput

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

Specified by:
validateUserInput in class ActionTemplateListAndEdit

attemptAdd

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

Specified by:
attemptAdd in class ActionTemplateListAndEdit
Throws:
DAOException

attemptFetchForChange

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

Specified by:
attemptChange in class ActionTemplateListAndEdit
Throws:
DAOException

attemptDelete

protected void attemptDelete()
                      throws DAOException
Ensure the Field of a given id does not exist.

Specified by:
attemptDelete in class ActionTemplateListAndEdit
Throws:
DAOException

WEB4J Development Tools 4.10.0.0

Copyright Hirondelle Systems - Generated 2013Oct19.12.26