@Component public class DocumentCategoryExistsValidator extends KaidenAbstractValidator implements KaidenValidatorIF
修飾子とタイプ | フィールドと説明 |
---|---|
jp.co.slcs.kaiden.v2.base.foundation.model.service.K10mDocumentCategoryService |
k10mDocumentCategoryService
K10mDocumentCategoryService.
|
MasterManager |
masterManager
MasterManager.
|
ARGS_DELIMITER, contextHelper, dateHelper, propertyHelper, validateMapHelper
コンストラクタと説明 |
---|
DocumentCategoryExistsValidator()
コンストラクタ.
|
修飾子とタイプ | メソッドと説明 |
---|---|
KaidenValidateResult |
executeValidate(Map<String,Object> valueMap,
String fieldKey,
String[] args,
Map<String,String> surfaces)
バリデート処理.
|
boolean |
isValid(String documentCategoryCd)
判定処理.
|
anyValueToSingleString, argsLengthCheck, chkPattern, getIntValue, getSurface, inputCheck, makeNewValidateResult, makeNewValidateResult, setErrorDetail
@Autowired public jp.co.slcs.kaiden.v2.base.foundation.model.service.K10mDocumentCategoryService k10mDocumentCategoryService
@Autowired public MasterManager masterManager
public boolean isValid(String documentCategoryCd)
チェック対象データをドキュメントカテゴリコードがドキュメントカテゴリマスタに存在する場合に判定:真とします。
チェック対象データが空(Null含む)の場合は判定:真とします。
検索時にロケールは使用しません。
documentCategoryCd
- 検索条件:ドキュメントカテゴリコード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.