|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openxava.actions.BaseAction
public abstract class BaseAction
| Field Summary |
|---|
| Fields inherited from interface org.openxava.actions.IChangeModeAction |
|---|
DETAIL, LIST, PREVIOUS_MODE, SPLIT |
| Constructor Summary | |
|---|---|
BaseAction()
|
|
| Method Summary | |
|---|---|
protected void |
addActions(java.lang.String... qualifiedActions)
Actions add added even if they are hidden. |
protected void |
addError(java.lang.String messageId,
java.lang.Object... ids)
If some id is a String between quotes (') it will be displayed literally, untranslated. |
protected void |
addErrors(Messages errors)
|
protected void |
addInfo(java.lang.String messageId,
java.lang.Object... ids)
If some id is a String between quotes (') it will be displayed literally, untranslated. |
protected void |
addMessage(java.lang.String messageId,
java.lang.Object... ids)
If some id is a String between quotes (') it will be displayed literally, untranslated. |
protected void |
addMessages(Messages messages)
|
protected void |
addWarning(java.lang.String messageId,
java.lang.Object... ids)
If some id is a String between quotes (') it will be displayed literally, untranslated. |
protected void |
clearActions()
|
void |
executeAfter()
|
void |
executeBefore()
|
protected ModuleContext |
getContext()
|
Environment |
getEnvironment()
|
Messages |
getErrors()
|
protected java.util.Locale |
getLocale()
The Locale of the current request. |
protected ModuleManager |
getManager()
|
Messages |
getMessages()
|
java.lang.String |
getNextMode()
LIST, DETAIL or PREVIOUS_MODE. |
protected HttpServletRequest |
getRequest()
With this method you can access directly to the web application resources, but it ties you to implementation technology (servlets), hence it's better to avoid it if you have alternative and are thinking in migrating to another tecnology. |
protected void |
removeActions(java.lang.String... qualifiedActions)
|
protected void |
resetDescriptionsCache()
Reset the cache of all descriptions-list and others uses of descriptionsEditors. |
protected void |
returnToPreviousControllers()
|
void |
setContext(ModuleContext context)
|
protected void |
setControllers(java.lang.String... controllers)
|
protected void |
setDefaultControllers()
Set the default controllers of the current module. |
void |
setEnvironment(Environment environment)
|
void |
setErrors(Messages errors)
|
void |
setMessages(Messages messages)
|
protected void |
setNextMode(java.lang.String nextMode)
|
void |
setRequest(HttpServletRequest request)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.openxava.actions.IAction |
|---|
execute |
| Methods inherited from interface org.openxava.actions.IAction |
|---|
execute |
| Methods inherited from interface org.openxava.actions.IAction |
|---|
execute |
| Constructor Detail |
|---|
public BaseAction()
| Method Detail |
|---|
public Messages getErrors()
getErrors in interface IActionpublic void setErrors(Messages errors)
setErrors in interface IActionpublic Messages getMessages()
getMessages in interface IActionpublic void setMessages(Messages messages)
setMessages in interface IActionprotected void addErrors(Messages errors)
protected void addMessages(Messages messages)
protected void addError(java.lang.String messageId,
java.lang.Object... ids)
protected void addMessage(java.lang.String messageId,
java.lang.Object... ids)
protected void addInfo(java.lang.String messageId,
java.lang.Object... ids)
protected void addWarning(java.lang.String messageId,
java.lang.Object... ids)
public void executeBefore()
throws java.lang.Exception
java.lang.Exception
public void executeAfter()
throws java.lang.Exception
java.lang.Exceptionpublic void setEnvironment(Environment environment)
setEnvironment in interface IActionpublic Environment getEnvironment()
protected void resetDescriptionsCache()
public void setRequest(HttpServletRequest request)
setRequest in interface IRequestActionprotected HttpServletRequest getRequest()
protected java.util.Locale getLocale()
protected ModuleContext getContext()
public void setContext(ModuleContext context)
setContext in interface IModuleContextActionpublic java.lang.String getNextMode()
IChangeModeAction
getNextMode in interface IChangeModeActionprotected void setNextMode(java.lang.String nextMode)
protected ModuleManager getManager()
protected void addActions(java.lang.String... qualifiedActions)
protected void removeActions(java.lang.String... qualifiedActions)
protected void clearActions()
protected void setControllers(java.lang.String... controllers)
protected void returnToPreviousControllers()
protected void setDefaultControllers()
The defaults controllers are those declared in application.xml for the
module, so the initial controllers when the module starts.
Also, this method clear the stack of controllers navigation, that is, if after
calling to this method you call to returnToPreviousController() it will
not have effect.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||