インタフェース RegistrationInterrupter
public interface RegistrationInterrupter
汎用登録処理にカスタムで登録処理を行わせるインターフェース
-
ネストされたクラスの概要
ネストされたクラス 修飾子とタイプ インタフェース 説明 static classRegistrationInterrupter.RegistrationType登録処理の種類 -
メソッドの概要
-
メソッドの詳細
-
dataMapping
default void dataMapping(Entity entity, RequestContext request, EntityDefinition definition, FormView view)登録用のデータにリクエストのデータをマッピングします。- パラメータ:
entity- 登録用のデータrequest- リクエストdefinition- Entity定義view- 画面定義
-
isSpecifyAllProperties
default boolean isSpecifyAllProperties()getAdditionalProperties()で全てのプロパティを対象にするかを判断します。 デフォルトはfalseです。- 戻り値:
- trueの場合、
getAdditionalProperties()の戻り値のプロパティのみを更新対象
falseの場合、汎用登録処理が自動で設定した更新対象に、getAdditionalProperties()の戻り値のプロパティを追加
-
getAdditionalProperties
default java.lang.String[] getAdditionalProperties()更新対象のプロパティを取得します。 更新対象のプロパティは
isSpecifyAllProperties()により対象範囲が変わります。- trueの場合、このメソッドの戻り値のプロパティのみを更新対象にする
- falseの場合、汎用登録処理が自動で設定した更新対象に、このメソッドの戻り値のプロパティを追加する
- 戻り値:
- 更新対象プロパティ
-
beforeRegister
default java.util.List<ValidateError> beforeRegister(Entity entity, RequestContext request, EntityDefinition definition, FormView view, RegistrationInterrupter.RegistrationType registrationType)登録前処理を行います。- パラメータ:
entity- 登録用のデータrequest- リクエストdefinition- Entity定義view- 画面定義registrationType- 登録処理の種類- 戻り値:
- 入力エラーリスト
-
beforeRegist
@Deprecated default java.util.List<ValidateError> beforeRegist(Entity entity, RequestContext request, EntityDefinition definition, FormView view, RegistrationInterrupter.RegistrationType registrationType)登録前処理を行います。- パラメータ:
entity- 登録用のデータrequest- リクエストdefinition- Entity定義view- 画面定義registrationType- 登録処理の種類- 戻り値:
- 入力エラーリスト
-
afterRegister
default java.util.List<ValidateError> afterRegister(Entity entity, RequestContext request, EntityDefinition definition, FormView view, RegistrationInterrupter.RegistrationType registType)登録後処理を行います。- パラメータ:
entity- 登録用のデータrequest- リクエストdefinition- Entity定義view- 画面定義registrationType- 登録処理の種類- 戻り値:
- 入力エラーリスト
-
afterRegist
@Deprecated default java.util.List<ValidateError> afterRegist(Entity entity, RequestContext request, EntityDefinition definition, FormView view, RegistrationInterrupter.RegistrationType registType)登録後処理を行います。- パラメータ:
entity- 登録用のデータrequest- リクエストdefinition- Entity定義view- 画面定義registrationType- 登録処理の種類- 戻り値:
- 入力エラーリスト
-