WEB4J Development Tools 4.10.0.0

hirondelle.web4jtools.metrics.base
Class BaseInfoAction

Object
  extended by ActionImpl
      extended by ActionTemplateShowAndApply
          extended by hirondelle.web4jtools.metrics.base.BaseInfoAction
All Implemented Interfaces:
Action

public final class BaseInfoAction
extends ActionTemplateShowAndApply

Override base project information configured in web.xml, and show high level metrics to user.

Scans the local file system under the given base directory. Various statistics and listings are extracted.


Field Summary
static RequestParameter BASE_DIRECTORY
           
static RequestParameter BASE_URI_FOR_FETCHING_IMAGES
           
static String FILE_INFO_LIST_KEY
          Key for List stored in session scope.
static String FILE_INFO_MAP_KEY
          Key for Map stored in session scope.
static RequestParameter PROJECT_NAME
           
 
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
BaseInfoAction(RequestParser aRequestParser)
           
 
Method Summary
protected  void apply()
          Save the changes to current settings, and recursively scan the files under the base directory.
protected  void show()
          Show a form reflecting current settings.
protected  void validateUserInput()
          Validate changes to current settings.
 
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

BASE_DIRECTORY

public static final RequestParameter BASE_DIRECTORY

PROJECT_NAME

public static final RequestParameter PROJECT_NAME

BASE_URI_FOR_FETCHING_IMAGES

public static final RequestParameter BASE_URI_FOR_FETCHING_IMAGES

FILE_INFO_MAP_KEY

public static final String FILE_INFO_MAP_KEY
Key for Map stored in session scope. This data structure is created/replaced when the user presses the 'Scan Source Code' button.

This Map style retains directory information.

See Also:
Constant Field Values

FILE_INFO_LIST_KEY

public static final String FILE_INFO_LIST_KEY
Key for List stored in session scope. This data structure is created/replaced when the user presses the 'Scan Source Code' button.

This List style removes directory information, and is useful for file listings. When the user changes the sorting, the re-sorted list should overwrite the object in session scope. That way, the latest sort used by the user will be retained.

See Also:
Constant Field Values
Constructor Detail

BaseInfoAction

public BaseInfoAction(RequestParser aRequestParser)
Method Detail

show

protected void show()
             throws AppException
Show a form reflecting current settings.

Specified by:
show in class ActionTemplateShowAndApply
Throws:
AppException

validateUserInput

protected void validateUserInput()
                          throws AppException
Validate changes to current settings.

Specified by:
validateUserInput in class ActionTemplateShowAndApply
Throws:
AppException

apply

protected void apply()
              throws AppException
Save the changes to current settings, and recursively scan the files under the base directory.

Creates an internal data structure to represent your application's source code.

Specified by:
apply in class ActionTemplateShowAndApply
Throws:
AppException

WEB4J Development Tools 4.10.0.0

Copyright Hirondelle Systems - Generated 2013Oct19.12.26