org.springframework.ldap.samples.person.web
Class EditGroupFormAction

java.lang.Object
  extended by org.springframework.webflow.action.AbstractAction
      extended by org.springframework.webflow.action.MultiAction
          extended by org.springframework.webflow.action.FormAction
              extended by org.springframework.ldap.samples.person.web.EditGroupFormAction
All Implemented Interfaces:
InitializingBean, org.springframework.webflow.execution.Action

public class EditGroupFormAction
extends org.springframework.webflow.action.FormAction

Action implementation that handles edit of a group. This action has the capability to add and remove members of the current Group form object.

Author:
Ulrik Sandberg

Nested Class Summary
 
Nested classes/interfaces inherited from class org.springframework.webflow.action.MultiAction
org.springframework.webflow.action.MultiAction.MethodResolver
 
Field Summary
 
Fields inherited from class org.springframework.webflow.action.FormAction
DEFAULT_FORM_OBJECT_NAME, VALIDATOR_METHOD_ATTRIBUTE
 
Fields inherited from class org.springframework.webflow.action.AbstractAction
logger
 
Constructor Summary
EditGroupFormAction()
           
 
Method Summary
 org.springframework.webflow.execution.Event add(org.springframework.webflow.execution.RequestContext context)
          Add the member in the member property to the form object members property.
protected  Object createFormObject(org.springframework.webflow.execution.RequestContext context)
           
protected  void initAction()
           
 org.springframework.webflow.execution.Event remove(org.springframework.webflow.execution.RequestContext context)
          Removes the members in the selectedMembers property from the form object members property.
 void setGroupService(GroupService groupService)
           
 
Methods inherited from class org.springframework.webflow.action.FormAction
bind, bindAndValidate, createBinder, doBind, doValidate, getFormErrors, getFormErrorsScope, getFormObject, getFormObjectAccessor, getFormObjectClass, getFormObjectName, getFormObjectScope, getMessageCodesResolver, getPropertyEditorRegistrar, getValidateMethodInvoker, getValidator, initBinder, registerPropertyEditors, registerPropertyEditors, resetForm, setFormErrorsScope, setFormObjectClass, setFormObjectName, setFormObjectScope, setMessageCodesResolver, setPropertyEditorRegistrar, setupForm, setValidator, validate, validationEnabled
 
Methods inherited from class org.springframework.webflow.action.MultiAction
doExecute, getMethodResolver, setMethodResolver, setTarget
 
Methods inherited from class org.springframework.webflow.action.AbstractAction
afterPropertiesSet, doPostExecute, doPreExecute, error, error, execute, getActionNameForLogging, getEventFactorySupport, no, result, result, result, result, success, success, yes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.springframework.beans.factory.InitializingBean
afterPropertiesSet
 

Constructor Detail

EditGroupFormAction

public EditGroupFormAction()
Method Detail

setGroupService

public void setGroupService(GroupService groupService)

initAction

protected void initAction()
Overrides:
initAction in class org.springframework.webflow.action.FormAction

createFormObject

protected Object createFormObject(org.springframework.webflow.execution.RequestContext context)
                           throws Exception
Overrides:
createFormObject in class org.springframework.webflow.action.FormAction
Throws:
Exception

add

public org.springframework.webflow.execution.Event add(org.springframework.webflow.execution.RequestContext context)
                                                throws Exception
Add the member in the member property to the form object members property.

Parameters:
context - RequestContext with parameters and attributes.
Returns:
The success event if member was added successfully
Throws:
Exception - if an unexpected error occurs

remove

public org.springframework.webflow.execution.Event remove(org.springframework.webflow.execution.RequestContext context)
                                                   throws Exception
Removes the members in the selectedMembers property from the form object members property.

Parameters:
context - RequestContext with parameters and attributes.
Returns:
The success event if members were removed successfully
Throws:
Exception - if an unexpected error occurs


Copyright © 2006-2009 Spring Framework. All Rights Reserved.