org.unitedfront2.web.controller.blog
クラス FormAction

java.lang.Object
  上位を拡張 org.springframework.webflow.action.AbstractAction
      上位を拡張 org.springframework.webflow.action.MultiAction
          上位を拡張 org.springframework.webflow.action.FormAction
              上位を拡張 org.unitedfront2.web.controller.FormAction
                  上位を拡張 org.unitedfront2.web.controller.blog.FormAction
すべての実装されたインタフェース:
InitializingBean, ServletContextAware, Action

@Repository(value="blog.formAction")
public class FormAction
extends FormAction

ブログ作成/編集用のアクションクラスです。コード以外は編集できません。

作成者:
kurokkie

入れ子のクラスの概要
 
クラス org.springframework.webflow.action.MultiAction から継承された入れ子のクラス/インタフェース
MultiAction.MethodResolver
 
フィールドの概要
static String BLOG_PARAM_NAME
          フロースコープに設定するブログオブジェクトの変数名 (blog)
static String LAST_SUBMIT_CODE_PARAM_NAME
          画面遷移の最後の画面のボタン名のメッセージコードの変数名 (lastSubmitCode)
 
クラス org.unitedfront2.web.controller.FormAction から継承されたフィールド
domainFactory, LOCAL_CONFIGURATION_BEAN_NAME, SEND_MAIL_PARAM_NAME, SYSYSTEM_MAIL_ADDR_PARAM_NAME, SYSYSTEM_URL_PARAM_NAME, VALIDATOR_PARAM_NAME
 
クラス org.springframework.webflow.action.FormAction から継承されたフィールド
DEFAULT_FORM_OBJECT_NAME, VALIDATOR_METHOD_ATTRIBUTE
 
クラス org.springframework.webflow.action.AbstractAction から継承されたフィールド
logger
 
コンストラクタの概要
FormAction()
           
 
メソッドの概要
 Event init(RequestContext context)
          初期処理を行います。
protected  void initAction()
          ドメインファクトリが設定されていてプロパティ変数 formObjectClass に値が設定さ れていない場合、formObjectClass にはドメインファクトリで生成されるクラスが設定 されます。
protected  void initBinder(RequestContext context, DataBinder binder)
           
 Event setupForm(RequestContext context)
          FormAction.setupForm( RequestContext) を呼び出した後、検証クラスを設定します。
 void setValidator(Validator validator)
           
 Event store(RequestContext context)
          ブログを保存します。
 
クラス org.unitedfront2.web.controller.FormAction から継承されたメソッド
bindAndValidate, createBinder, createFormObject, doSendMail, doSendMail, getBindingErrors, getBindingErrors, getDomainFactory, getFormObject, isSendMail, putFormObject, sendMail, setMailTemplateName, setMailTemplateNames, setMailTemplateNames, setServletContext
 
クラス org.springframework.webflow.action.FormAction から継承されたメソッド
bind, createBinder, doBind, doValidate, getFormErrors, getFormErrorsScope, getFormObjectAccessor, getFormObjectClass, getFormObjectName, getFormObjectScope, getMessageCodesResolver, getPropertyEditorRegistrar, getValidateMethodInvoker, getValidator, registerPropertyEditors, registerPropertyEditors, resetForm, setFormErrorsScope, setFormObjectClass, setFormObjectName, setFormObjectScope, setMessageCodesResolver, setPropertyEditorRegistrar, validate, validationEnabled
 
クラス org.springframework.webflow.action.MultiAction から継承されたメソッド
doExecute, getMethodResolver, setMethodResolver, setTarget
 
クラス org.springframework.webflow.action.AbstractAction から継承されたメソッド
afterPropertiesSet, doPostExecute, doPreExecute, error, error, execute, getActionNameForLogging, getEventFactorySupport, no, result, result, result, result, success, success, yes
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
インタフェース org.springframework.beans.factory.InitializingBean から継承されたメソッド
afterPropertiesSet
 

フィールドの詳細

BLOG_PARAM_NAME

public static final String BLOG_PARAM_NAME
フロースコープに設定するブログオブジェクトの変数名 (blog)

関連項目:
定数フィールド値

LAST_SUBMIT_CODE_PARAM_NAME

public static final String LAST_SUBMIT_CODE_PARAM_NAME
画面遷移の最後の画面のボタン名のメッセージコードの変数名 (lastSubmitCode)

関連項目:
定数フィールド値
コンストラクタの詳細

FormAction

public FormAction()
メソッドの詳細

initAction

protected void initAction()
クラス FormAction の記述:
ドメインファクトリが設定されていてプロパティ変数 formObjectClass に値が設定さ れていない場合、formObjectClass にはドメインファクトリで生成されるクラスが設定 されます。メール送信テンプレートの生成はこのメソッドで行われます。

オーバーライド:
クラス FormAction 内の initAction

initBinder

protected void initBinder(RequestContext context,
                          DataBinder binder)
オーバーライド:
クラス FormAction 内の initBinder

init

public Event init(RequestContext context)
初期処理を行います。

オーバーライド:
クラス FormAction 内の init
パラメータ:
context - RequestContext
戻り値:
成功イベント

setupForm

public Event setupForm(RequestContext context)
                throws Exception
クラス FormAction の記述:
FormAction.setupForm( RequestContext) を呼び出した後、検証クラスを設定します。このメソッドはフォームを表示する度に呼 び出されます。初回アクセス時はもちろん、検証エラーによって戻ってきた際にも呼び出されます。

オーバーライド:
クラス FormAction 内の setupForm
パラメータ:
context - RequestContext
戻り値:
Event
例外:
Exception - Exception
関連項目:
SpringValidator

store

public Event store(RequestContext context)
            throws BlogCodeUsedByOtherException
ブログを保存します。

パラメータ:
context - RequestContext
戻り値:
成功イベント
例外:
BlogCodeUsedByOtherException - ブログのコードが既に使用されている

setValidator

public void setValidator(Validator validator)
オーバーライド:
クラス FormAction 内の setValidator


Copyright © 2007-2008 www.unitedfront2.org. All Rights Reserved.