public class UserAction extends BaseAction implements com.opensymphony.xwork2.Preparable
cancel, CANCEL, delete, from, log, mailEngine, mailMessage, roleManager, save, templateName, userManager| Constructor and Description |
|---|
UserAction() |
| Modifier and Type | Method and Description |
|---|---|
String |
cancel()
Sends users to "mainMenu" when !from.equals("list").
|
String |
delete()
Delete the user passed in.
|
String |
edit()
Grab the user from the database based on the "id" passed in.
|
String |
execute()
Default: just returns "success"
|
org.appfuse.model.User |
getUser() |
List<org.appfuse.model.User> |
getUsers()
Holder for users to display on list screen
|
String |
list()
Fetch all users from database and put into local "users" variable for retrieval in the UI.
|
void |
prepare()
Grab the entity from the database before populating with request parameters
|
String |
save()
Save user
|
void |
setId(String id) |
void |
setQ(String q) |
void |
setUser(org.appfuse.model.User user) |
getConfiguration, getRequest, getResponse, getSession, saveMessage, sendUserMessage, setDelete, setFrom, setMailEngine, setMailMessage, setRoleManager, setSave, setTemplateName, setUserManageraddActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, doDefault, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getFormatted, getLocale, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors, validatepublic void prepare()
prepare in interface com.opensymphony.xwork2.Preparablepublic List<org.appfuse.model.User> getUsers()
public void setId(String id)
public org.appfuse.model.User getUser()
public void setUser(org.appfuse.model.User user)
public void setQ(String q)
public String delete()
public String edit() throws IOException
IOException - can happen when sending a "forbidden" from response.sendError()public String execute()
execute in interface com.opensymphony.xwork2.Actionexecute in class com.opensymphony.xwork2.ActionSupportpublic String cancel()
cancel in class BaseActionpublic String save() throws Exception
Exception - when setting "access denied" fails on responsepublic String list()
Copyright © 2003-2012. All Rights Reserved.