org.figure8.join.control.action
Class CreateUserAction

java.lang.Object
  extended by org.apache.struts.action.Action
      extended by org.figure8.join.control.JoinAction
          extended by org.figure8.join.control.action.UserActions
              extended by org.figure8.join.control.action.CreateUserAction

public class CreateUserAction
extends UserActions

Struts action used for creating User within Join application (this is necessary because this action has a different input form from all other User related actions contained into UserActions).

Version:
$Revision: 1.1 $
Author:
Laurent Broudoux

Field Summary
static java.lang.String CREATE_OP
          Operation code for creating a specific User
static java.lang.String DUPLICATE_USER_KEY
          The request scope attribute under which is stored the User that has raised a DuplicateEntityException during save of another one.
 
Fields inherited from class org.figure8.join.control.action.UserActions
artifactManager, assemblyManager, DETAILS_OP, LOAD_OP, SAVE_OP, SEARCH_OP, USER_KEY, userManager, USERS_KEY
 
Fields inherited from class org.figure8.join.control.JoinAction
BODY_ATTRIBUTE, BODY_PARAMETER, EXCEPTION_KEY, GUI_KEY, OP_PARAMETER, REND_MAIN, REND_NONE, REND_PARAMETER, REND_POPUP, XHR_PARAMETER
 
Fields inherited from class org.apache.struts.action.Action
defaultLocale, servlet
 
Constructor Summary
CreateUserAction()
          Creates a new instance of CreateUserAction.
 
Method Summary
 org.apache.struts.action.ActionForward doExecute(java.lang.String operation, org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Abstract method that subclasses must implement.
 
Methods inherited from class org.figure8.join.control.action.UserActions
getUserDetails, loadUser, saveUser, searchUsers, setArtifactManager, setAssemblyManager, setUserManager
 
Methods inherited from class org.figure8.join.control.JoinAction
execute, getUserContainer, isLoggedIn, isXhrRequest, removeObsoleteForm
 
Methods inherited from class org.apache.struts.action.Action
addErrors, addMessages, execute, generateToken, getDataSource, getDataSource, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CREATE_OP

public static final java.lang.String CREATE_OP
Operation code for creating a specific User

See Also:
Constant Field Values

DUPLICATE_USER_KEY

public static final java.lang.String DUPLICATE_USER_KEY
The request scope attribute under which is stored the User that has raised a DuplicateEntityException during save of another one.

See Also:
Constant Field Values
Constructor Detail

CreateUserAction

public CreateUserAction()
Creates a new instance of CreateUserAction.

Method Detail

doExecute

public org.apache.struts.action.ActionForward doExecute(java.lang.String operation,
                                                        org.apache.struts.action.ActionMapping mapping,
                                                        org.apache.struts.action.ActionForm form,
                                                        javax.servlet.http.HttpServletRequest request,
                                                        javax.servlet.http.HttpServletResponse response)
                                                 throws java.lang.Exception
Description copied from class: JoinAction
Abstract method that subclasses must implement. The real execution must be done here according to the specified operation. ActionForward returned by execution should only point on page fragment : this superclass is responsible of including them within a whole page.

Overrides:
doExecute in class UserActions
Parameters:
operation - String representing the operation to invoke on Action
mapping - Mapping between forwards name and path for this action
form - The form object containing request parameters
request - The servlet container request wrapper
response - The servlet container response wrapper
Returns:
A forward to the next view to render and display
Throws:
java.lang.Exception - such as InfraStructureExceptions ...


Copyright © 2005-2008 Join. All Rights Reserved.