org.chorem.bow.action
Class BowBaseAction
java.lang.Object
com.opensymphony.xwork2.ActionSupport
org.chorem.bow.action.BowBaseAction
- All Implemented Interfaces:
- com.opensymphony.xwork2.Action, com.opensymphony.xwork2.LocaleProvider, com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Validateable, com.opensymphony.xwork2.ValidationAware, Serializable, org.apache.struts2.interceptor.SessionAware
- Direct Known Subclasses:
- AddUrlAction, AliasAction, DeleteImportAction, DeleteSearchResultsAction, EditBookmarkAction, ExportBookmarksAction, ForgotPasswordAction, FullTextSearchAction, GenerateTokenAction, HomeAction, ImportBookmarksAction, LocaleAction, LoginAction, LogoutAction, Migrate04To05Action, OpenSearchResultAction, OpenSearchSuggestionAction, OrderAction, PreferencesAction, RedirectToUrlAction, RegisterAction, ReIndexationAction, RemoveBookmarkAction, SearchAction
public class BowBaseAction
- extends com.opensymphony.xwork2.ActionSupport
- implements org.apache.struts2.interceptor.SessionAware
Base class which must be extended by every action
Overrides the Struts2 methods to render text in order to explicitly show
the missing i18n translations
Allows access to the session and the proxy
- See Also:
- Serialized Form
| Fields inherited from class com.opensymphony.xwork2.ActionSupport |
LOG |
| Fields inherited from interface com.opensymphony.xwork2.Action |
ERROR, INPUT, LOGIN, NONE, SUCCESS |
|
Method Summary |
BowProxy |
getBowProxy()
|
BowSession |
getBowSession()
|
protected String |
getSafeText(String key,
String value)
Surrounds the non translated keys with a marker to make them visible |
String |
getText(String aTextName)
|
String |
getText(String aTextName,
List<Object> args)
|
String |
getText(String aTextName,
String defaultValue)
|
String |
getText(String key,
String[] args)
|
String |
getText(String aTextName,
String defaultValue,
List<Object> args)
|
String |
getText(String key,
String defaultValue,
List<Object> args,
com.opensymphony.xwork2.util.ValueStack stack)
|
String |
getText(String aTextName,
String defaultValue,
String obj)
|
String |
getText(String key,
String defaultValue,
String[] args)
|
String |
getText(String key,
String defaultValue,
String[] args,
com.opensymphony.xwork2.util.ValueStack stack)
|
void |
setSession(Map<String,Object> session)
|
| Methods inherited from class com.opensymphony.xwork2.ActionSupport |
addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, doDefault, execute, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getLocale, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, pause, setActionErrors, setActionMessages, setFieldErrors, validate |
log
protected static final org.apache.commons.logging.Log log
CONTEXT_ACTION_KEY
protected static final String CONTEXT_ACTION_KEY
- See Also:
- Constant Field Values
UNTRANSLATED_MARKER
public static final String UNTRANSLATED_MARKER
- See Also:
- Constant Field Values
session
protected Map<String,Object> session
BowBaseAction
public BowBaseAction()
getBowSession
public BowSession getBowSession()
getBowProxy
public BowProxy getBowProxy()
setSession
public void setSession(Map<String,Object> session)
- Specified by:
setSession in interface org.apache.struts2.interceptor.SessionAware
getText
public String getText(String aTextName)
- Specified by:
getText in interface com.opensymphony.xwork2.TextProvider- Overrides:
getText in class com.opensymphony.xwork2.ActionSupport
getText
public String getText(String aTextName,
String defaultValue)
- Specified by:
getText in interface com.opensymphony.xwork2.TextProvider- Overrides:
getText in class com.opensymphony.xwork2.ActionSupport
getText
public String getText(String aTextName,
String defaultValue,
String obj)
- Specified by:
getText in interface com.opensymphony.xwork2.TextProvider- Overrides:
getText in class com.opensymphony.xwork2.ActionSupport
getText
public String getText(String aTextName,
List<Object> args)
- Specified by:
getText in interface com.opensymphony.xwork2.TextProvider- Overrides:
getText in class com.opensymphony.xwork2.ActionSupport
getText
public String getText(String key,
String[] args)
- Specified by:
getText in interface com.opensymphony.xwork2.TextProvider- Overrides:
getText in class com.opensymphony.xwork2.ActionSupport
getText
public String getText(String aTextName,
String defaultValue,
List<Object> args)
- Specified by:
getText in interface com.opensymphony.xwork2.TextProvider- Overrides:
getText in class com.opensymphony.xwork2.ActionSupport
getText
public String getText(String key,
String defaultValue,
String[] args)
- Specified by:
getText in interface com.opensymphony.xwork2.TextProvider- Overrides:
getText in class com.opensymphony.xwork2.ActionSupport
getText
public String getText(String key,
String defaultValue,
List<Object> args,
com.opensymphony.xwork2.util.ValueStack stack)
- Specified by:
getText in interface com.opensymphony.xwork2.TextProvider- Overrides:
getText in class com.opensymphony.xwork2.ActionSupport
getText
public String getText(String key,
String defaultValue,
String[] args,
com.opensymphony.xwork2.util.ValueStack stack)
- Specified by:
getText in interface com.opensymphony.xwork2.TextProvider- Overrides:
getText in class com.opensymphony.xwork2.ActionSupport
getSafeText
protected String getSafeText(String key,
String value)
- Surrounds the non translated keys with a marker to make them visible
Copyright © 2010-2011 CodeLutin. All Rights Reserved.