public abstract class UserEditActionHelper extends RhnAction
Constructor and Description |
---|
UserEditActionHelper() |
Modifier and Type | Method and Description |
---|---|
org.apache.struts.action.ActionErrors |
updateDetails(User loggedInUser,
User targetUser,
org.apache.struts.action.DynaActionForm form)
This method handles the common tasks between SelfEditAction and AdminUserEditAction.
|
protected void |
updatePamAttribute(User loggedInUser,
User targetUser,
org.apache.struts.action.DynaActionForm form)
If pam is configured and the loggedInUser is an org_admin (and therefore
the checkbox was displayed), we need to inspect the "usepam" field on the
form and set the targetUser's pam auth attribute accordingly.
|
protected void |
validatePassword(org.apache.struts.action.ActionErrors errors,
java.lang.String pw) |
addGlobalMessage, addGlobalMessage, addMessage, createErrorMessage, createErrorMessageWithMultipleArgs, createLabelValueList, createMessage, createSuccessMessage, getStrutsDelegate, isSubmitted, l10n, localize, lv, lve, lvel10n, lvl10n, makeParamMap, saveMessages
addErrors, addMessages, execute, execute, generateToken, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveMessages, saveToken, setLocale, setServlet
public org.apache.struts.action.ActionErrors updateDetails(User loggedInUser, User targetUser, org.apache.struts.action.DynaActionForm form)
loggedInUser
- logged in usertargetUser
- The user to operate onform
- The form we're grabbing the info fromprotected void validatePassword(org.apache.struts.action.ActionErrors errors, java.lang.String pw)
protected void updatePamAttribute(User loggedInUser, User targetUser, org.apache.struts.action.DynaActionForm form)
loggedInUser
- The user who is currently logged intargetUser
- The user that will be updatedform
- The form containing the attribute value to use