@Component public class ImmCurrencyExistsValidator extends KaidenAbstractValidator implements KaidenValidatorIF
修飾子とタイプ | フィールドと説明 |
---|---|
CurrencyHelper |
currencyHelper
CurrencyHelper.
|
ARGS_DELIMITER, contextHelper, dateHelper, propertyHelper, validateMapHelper
コンストラクタと説明 |
---|
ImmCurrencyExistsValidator()
コンストラクタ.
|
修飾子とタイプ | メソッドと説明 |
---|---|
KaidenValidateResult |
executeValidate(Map<String,Object> valueMap,
String fieldKey,
String[] args,
Map<String,String> surfaces)
バリデート処理.
|
boolean |
isValid(String currencyCd,
String companyCd,
boolean containDel)
判定処理.
|
anyValueToSingleString, argsLengthCheck, chkPattern, getIntValue, getSurface, inputCheck, makeNewValidateResult, makeNewValidateResult, setErrorDetail
@Autowired public CurrencyHelper currencyHelper
public boolean isValid(String currencyCd, String companyCd, boolean containDel)
判定は、ログインユーザのロケールで行われます。
通貨コード、会社コードのいづれかが空(Null含む)の場合は判定:真とします。
currencyCd
- 検索条件:通貨コードcompanyCd
- 検索条件:会社コードcontainDel
- 検索条件:削除フラグ true:有効無効両方OK、false:有効のみpublic KaidenValidateResult executeValidate(Map<String,Object> valueMap, String fieldKey, String[] args, Map<String,String> surfaces)
KaidenValidateExecutor
のexecuteAll
から実行されるバリデート処理です。
valueMapから指定された通貨コードフィールドキーで値を取得し、通貨存在チェック
を行います。
アーギュメント文字列
executeValidate
インタフェース内 KaidenValidatorIF
valueMap
- 値fieldKey
- フィールドキーargs
- アーギュメント文字列surfaces
- 表層定義Copyright © 2024 Sumitomo Life Information Systems Co., Ltd. All Rights Reserved.