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 !
|
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"
|
User |
getUser() |
List<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 |
setUser(User user) |
getConfiguration, getRequest, getResponse, getSession, saveMessage, sendUserMessage, setDelete, setFrom, setMailEngine, setMailMessage, setRoleManager, setSave, setTemplateName, setUserManager
addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, doDefault, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getLocale, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, pause, setActionErrors, setActionMessages, setFieldErrors, validate
public void prepare()
prepare
in interface com.opensymphony.xwork2.Preparable
public List<User> getUsers()
public void setId(String id)
public User getUser()
public void setUser(User user)
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.Action
execute
in class com.opensymphony.xwork2.ActionSupport
public String cancel()
cancel
in class BaseAction
public String save() throws IOException
IOException
- when setting "access denied" fails on responsepublic String list()
Copyright © 2015. All rights reserved.