com.mf.roundhouse.core.action
Class UserEditCore

java.lang.Object
  extended byAction
      extended bycom.mf.roundhouse.core.action.RoundhouseAction
          extended bycom.mf.roundhouse.core.action.UserEditCore
Direct Known Subclasses:
AccountSettings, UserEdit

public abstract class UserEditCore
extends RoundhouseAction

Abstract class providing Core action behavior for editing a User from an administrative screen or from a My Account screen.

Author:
ghester
See Also:
Serialized Form

Field Summary
static java.lang.String ATTR_AVAILABLE_SECRET_QUESTIONS
           
static java.lang.String ATTR_SECRET_QUESTION_ENABLED
           
static java.lang.String ATTR_USER_AGREEMENT_ENABLED
           
static java.lang.String DATE_NOT_SET
           
 
Constructor Summary
UserEditCore()
           
 
Method Summary
protected abstract  void actionValidate(ActionErrors errors, UserCoreForm userForm)
          Abstract method which is used to validate the input provided on this action.
protected  void deleteUser(java.lang.String userProfileId, HttpServletRequest request)
          Delete the specified UserProfile from the system.
protected  java.util.Vector getGroups(HttpServletRequest request)
          Return a Vector containing all groups in the system.
protected  void populateForm(UserCoreForm aForm, UserProfile aUser)
          Populate the form values from the UserProfile object
protected  void populateObject(UserCoreForm aForm, UserProfile aUser)
          Populate the UserProfile object from the form values.
protected  ActionForward roundhouseProcess(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
          Process the action.
protected  void saveUser(UserProfile aUser, UserCoreForm aForm, HttpServletRequest request)
          Save the specified UserProfile.
 
Methods inherited from class com.mf.roundhouse.core.action.RoundhouseAction
asIdentifier, asIdString, execute, getPermission, getSessionCollaborator, handleAccessError, isAuthorized, nullify, preProcess, preProcessAuthorized, preProcessValidateUserSetup, setLastActionCalled, setSavedChangesMessage, skipValidation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ATTR_SECRET_QUESTION_ENABLED

public static java.lang.String ATTR_SECRET_QUESTION_ENABLED

ATTR_AVAILABLE_SECRET_QUESTIONS

public static java.lang.String ATTR_AVAILABLE_SECRET_QUESTIONS

ATTR_USER_AGREEMENT_ENABLED

public static java.lang.String ATTR_USER_AGREEMENT_ENABLED

DATE_NOT_SET

public static java.lang.String DATE_NOT_SET
Constructor Detail

UserEditCore

public UserEditCore()
Method Detail

roundhouseProcess

protected ActionForward roundhouseProcess(ActionMapping mapping,
                                          ActionForm form,
                                          HttpServletRequest request,
                                          HttpServletResponse response)
                                   throws java.lang.Exception
Process the action.

Specified by:
roundhouseProcess in class RoundhouseAction
Throws:
java.lang.Exception

getGroups

protected java.util.Vector getGroups(HttpServletRequest request)
                              throws java.lang.Exception
Return a Vector containing all groups in the system. This is provided as a protected method so that extended actions can limit the list of groups returned. Note: The HttpServletRequest is provided as a parameter so that extended actions have the opportunity to pull data from the request as a way of determining how to limit the groups.

Throws:
java.lang.Exception

deleteUser

protected void deleteUser(java.lang.String userProfileId,
                          HttpServletRequest request)
                   throws java.lang.Exception
Delete the specified UserProfile from the system. This is provided as a protected method as many extended actions need to perform other processes when a UserProfile is deleted. Note: The HttpServletRequest is provided as a parameter so that extended actions have the opportunity to pull data from the request during the delete.

Throws:
java.lang.Exception

saveUser

protected void saveUser(UserProfile aUser,
                        UserCoreForm aForm,
                        HttpServletRequest request)
                 throws java.lang.Exception
Save the specified UserProfile. This is provided as protected method since many extended actions need to perform additional steps when a UserProfile is saved. Note: The HttpServletRequest is provided as a parameter so that extended actions have the opportunity to pull data from the request during the save.

Throws:
java.lang.Exception

populateForm

protected void populateForm(UserCoreForm aForm,
                            UserProfile aUser)
                     throws java.lang.Exception
Populate the form values from the UserProfile object

Throws:
java.lang.Exception

populateObject

protected void populateObject(UserCoreForm aForm,
                              UserProfile aUser)
                       throws java.lang.Exception
Populate the UserProfile object from the form values.

Throws:
java.lang.Exception

actionValidate

protected abstract void actionValidate(ActionErrors errors,
                                       UserCoreForm userForm)
                                throws java.lang.Exception
Abstract method which is used to validate the input provided on this action.

Throws:
java.lang.Exception


Copyright © 2004 Media Fortress, LLC. Licensed for commercial use under the Apache 2.0 License.