Interface MatchType
public interface MatchType
Base interface for the match type.
- Author:
- Loganathan Sekar, Dinesh Karuppiah.T
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptiongetAllowedMatchingStrategy(MatchingStrategyType matchStrategyType) Gets the allowed matching strategy for the MatchingStrategyType value.Get the category of this MatchType.Gets the Entity info mapper function.Get the Identity Info Function.default List<IdentityInfoDTO> getIdentityInfoList(RequestDTO identity) Get the IdentityInfoDTO list out of the identity block for this MatchType.Gets the IDMapping.default Function<AuthRequestDTO, Map<String, String>> Get the Identity Info Function.default booleanFlag to fetch Identity Info.default booleanFlag to fetch Request Entity Info.default booleandefault booleanFlag to check MultiLanguage.default booleanisMultiLanguage(String propName, Map<String, List<IdentityInfoDTO>> identityEntity, MappingConfig mappingConfig) default booleanisPropMultiLang(String propName, MappingConfig cfg) Check if the mapped property is of multi-language type.mapEntityInfo(Map<String, List<IdentityInfoDTO>> idEntity, IdInfoFetcher idInfoHelper) To fetch Map Entity Info.static <T> Set<T> setOf(T... items) Returns the set of given matching strategies.
-
Method Details
-
getIdMapping
IdMapping getIdMapping()Gets the IDMapping.- Returns:
- ID Mapping
-
getAllowedMatchingStrategy
Gets the allowed matching strategy for the MatchingStrategyType value.- Parameters:
matchStrategyType- the match strategy type- Returns:
- the allowed matching strategy
-
getIdentityInfoFunction
Function<RequestDTO,Map<String, getIdentityInfoFunction()List<IdentityInfoDTO>>> Get the Identity Info Function.- Returns:
- the Identity Info Function
-
getReqestInfoFunction
Get the Identity Info Function.- Returns:
- the reqest info function
-
getIdentityInfoList
Get the IdentityInfoDTO list out of the identity block for this MatchType.- Parameters:
identity- the IdentityDTO- Returns:
- the list of IdentityInfoDTO
-
getEntityInfoMapper
Gets the Entity info mapper function.- Returns:
- the Entity info mapper function
-
getCategory
MatchType.Category getCategory()Get the category of this MatchType.- Returns:
- the category
-
hasIdEntityInfo
default boolean hasIdEntityInfo()Flag to fetch Identity Info.- Returns:
- boolean value true or false
-
hasRequestEntityInfo
default boolean hasRequestEntityInfo()Flag to fetch Request Entity Info.- Returns:
- the flag
-
isMultiLanguage
default boolean isMultiLanguage()Flag to check MultiLanguage.- Returns:
- the flag
-
isMultiLanguage
default boolean isMultiLanguage(String propName, Map<String, List<IdentityInfoDTO>> identityEntity, MappingConfig mappingConfig) -
setOf
Returns the set of given matching strategies.- Parameters:
items- the matching strategies- Returns:
- the sets the
-
mapEntityInfo
default Map<String,Map.Entry<String, mapEntityInfoList<IdentityInfoDTO>>> (Map<String, List<IdentityInfoDTO>> idEntity, IdInfoFetcher idInfoHelper) throws IdAuthenticationBusinessExceptionTo fetch Map Entity Info.- Parameters:
idEntity- the id entityidInfoHelper- the id info helper- Returns:
- the map
- Throws:
IdAuthenticationBusinessException- the id authentication business exception
-
isPropMultiLang
Check if the mapped property is of multi-language type.- Parameters:
propName- mapped property namecfg- mapping- Returns:
- true, if is prop multi lang
-
isDynamic
default boolean isDynamic()
-