|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--org.apache.struts.action.Action
|
+--uk.ac.ebi.intact.application.search2.struts.framework.IntactBaseAction
Super class for all Intact related action classes.
| Field Summary | |
static java.lang.String |
INTACT_ERROR
The global Intact error key. |
protected static org.apache.log4j.Logger |
logger
|
| Fields inherited from class org.apache.struts.action.Action |
ACTION_SERVLET_KEY, APPLICATION_KEY, DATA_SOURCE_KEY, defaultLocale, ERROR_KEY, EXCEPTION_KEY, FORM_BEANS_KEY, FORWARDS_KEY, LOCALE_KEY, MAPPING_KEY, MAPPINGS_KEY, MESSAGE_KEY, MESSAGES_KEY, MULTIPART_KEY, PLUG_INS_KEY, REQUEST_PROCESSOR_KEY, servlet, SERVLET_KEY, TRANSACTION_TOKEN_KEY |
| Constructor Summary | |
IntactBaseAction()
|
|
| Method Summary | |
protected void |
addError(java.lang.String key)
Adds an error with given key. |
protected void |
addError(java.lang.String key,
java.lang.String value)
Adds an error with given key and value. |
protected void |
clearErrors()
Clear error container. |
protected IntactServiceIF |
getIntactService()
Returns the only instance of Intact Service instance. |
protected IntactUserIF |
getIntactUser(javax.servlet.http.HttpSession session)
Returns the Intact User instance saved in a session. |
protected javax.servlet.http.HttpSession |
getSession(javax.servlet.http.HttpServletRequest request)
Returns the session from given request. |
protected void |
saveErrors(javax.servlet.http.HttpServletRequest request)
Saves the errors in given request for |
| Methods inherited from class org.apache.struts.action.Action |
execute, execute, generateToken, getDataSource, getDataSource, getLocale, getResources, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, perform, perform, resetToken, saveErrors, saveMessages, saveToken, setLocale, setServlet, toHex |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static final transient org.apache.log4j.Logger logger
public static final java.lang.String INTACT_ERROR
| Constructor Detail |
public IntactBaseAction()
| Method Detail |
protected IntactServiceIF getIntactService()
IntactServiceImpl class.protected IntactUserIF getIntactUser(javax.servlet.http.HttpSession session)
session - the session to access the Intact user object.
IntactUserImpl stored in
sessionprotected javax.servlet.http.HttpSession getSession(javax.servlet.http.HttpServletRequest request)
request - the request to get the session from.
request.protected void clearErrors()
protected void addError(java.lang.String key)
key - the error key. This value is looked up in the
IntactResources.properties bundle.
protected void addError(java.lang.String key,
java.lang.String value)
key - the error key. This value is looked up in the
IntactResources.properties bundle.value - the value to substitute for the first place holder in the
IntactResources.properties bundle.protected void saveErrors(javax.servlet.http.HttpServletRequest request)
request - the request to save errors.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||