org.qi4j.library.struts2.support.add
Class ProvidesAddingOfMixin<T>

java.lang.Object
  extended by com.opensymphony.xwork2.ActionSupport
      extended by org.qi4j.library.struts2.support.add.ProvidesAddingOfMixin<T>
All Implemented Interfaces:
com.opensymphony.xwork2.Action, com.opensymphony.xwork2.LocaleProvider, com.opensymphony.xwork2.Preparable, com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Validateable, com.opensymphony.xwork2.ValidationAware, Serializable, ProvidesAddingOf<T>, HasInput, StrutsAction

public abstract class ProvidesAddingOfMixin<T>
extends com.opensymphony.xwork2.ActionSupport
implements ProvidesAddingOf<T>

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.opensymphony.xwork2.ActionSupport
LOG
 
Fields inherited from interface com.opensymphony.xwork2.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
ProvidesAddingOfMixin()
           
 
Method Summary
protected  void addSuccessMessage()
           
 String execute()
           
 T getState()
           
 String input()
           
 void prepare()
           
protected  void prepareEntityBuilder()
           
protected  Class<T> typeToAdd()
           
 
Methods inherited from class com.opensymphony.xwork2.ActionSupport
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, pause, setActionErrors, setActionMessages, setFieldErrors, validate
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.opensymphony.xwork2.Validateable
validate
 
Methods inherited from interface com.opensymphony.xwork2.ValidationAware
addActionError, addActionMessage, addFieldError, getActionErrors, getActionMessages, getFieldErrors, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, setActionErrors, setActionMessages, setFieldErrors
 
Methods inherited from interface com.opensymphony.xwork2.TextProvider
getText, getText, getText, getText, getText, getText, getText, getText, getText, getTexts, getTexts, hasKey
 
Methods inherited from interface com.opensymphony.xwork2.LocaleProvider
getLocale
 

Constructor Detail

ProvidesAddingOfMixin

public ProvidesAddingOfMixin()
Method Detail

getState

public T getState()
Specified by:
getState in interface ProvidesAddingOf<T>

prepare

public void prepare()
             throws Exception
Specified by:
prepare in interface com.opensymphony.xwork2.Preparable
Throws:
Exception

input

public String input()
Specified by:
input in interface HasInput
Overrides:
input in class com.opensymphony.xwork2.ActionSupport

execute

public String execute()
               throws Exception
Specified by:
execute in interface com.opensymphony.xwork2.Action
Overrides:
execute in class com.opensymphony.xwork2.ActionSupport
Throws:
Exception

typeToAdd

protected Class<T> typeToAdd()

addSuccessMessage

protected void addSuccessMessage()

prepareEntityBuilder

protected void prepareEntityBuilder()
                             throws Exception
Throws:
Exception