Fish & Chips Club 4.10.0.0

hirondelle.fish.translate.refresh
Class RefreshTranslations

Object
  extended by ActionImpl
      extended by ActionTemplateShowAndApply
          extended by hirondelle.fish.translate.refresh.RefreshTranslations
All Implemented Interfaces:
Action

public final class RefreshTranslations
extends ActionTemplateShowAndApply

Refresh the translations held in memory.

Translations are held in memory as a performance optimization. Translations are both commonly needed, and rarely change, so holding them in memory is a reasonable design.

Operation performed : TranslatorImpl.read().

View :

Field Summary
 
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
RefreshTranslations(RequestParser aRequestParser)
          Constructor.
 
Method Summary
protected  void apply()
          Refresh the in-memory cache of translations.
protected  void show()
          Show the total number of translations, and a form with a single button
protected  void validateUserInput()
          Form has no input, just single button - no validation needed.
 
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
 

Constructor Detail

RefreshTranslations

public RefreshTranslations(RequestParser aRequestParser)
Constructor.

Method Detail

show

protected void show()
             throws AppException
Show the total number of translations, and a form with a single button

Specified by:
show in class ActionTemplateShowAndApply
Throws:
AppException

validateUserInput

protected void validateUserInput()
                          throws AppException
Form has no input, just single button - no validation needed.

Specified by:
validateUserInput in class ActionTemplateShowAndApply
Throws:
AppException

apply

protected void apply()
              throws AppException
Refresh the in-memory cache of translations.

Specified by:
apply in class ActionTemplateShowAndApply
Throws:
AppException

Fish & Chips Club 4.10.0.0

Copyright Hirondelle Systems - Generated 2013Oct19.12.26