Interface IdInfoFetcher


  • public interface IdInfoFetcher
    The IdInfoFetcher interface that provides the helper methods invoked by the classes involved in ID Info matching.
    Author:
    Loganathan.Sekar, Nagarjuna
    • Method Detail

      • getTemplatesDefaultLanguageCodes

        List<String> getTemplatesDefaultLanguageCodes()
        Gets the template default language codes
        Returns:
      • getSystemSupportedLanguageCodes

        List<String> getSystemSupportedLanguageCodes()
        Gets the system supported languages. Combination of Mandatory and optional languages.
        Returns:
      • checkLanguageType

        boolean checkLanguageType​(String languageForMatchType,
                                  String languageFromReq)
        To check language type.
        Parameters:
        languageForMatchType - the language for match type
        languageFromReq - the language from req
        Returns:
        true, if successful
      • getLanguageName

        Optional<String> getLanguageName​(String languageCode)
        Get language name for Match Properties based on language code.
        Parameters:
        languageCode - language code
        Returns:
        language name
      • getIdentityRequestInfo

        Map<String,​String> getIdentityRequestInfo​(MatchType matchType,
                                                        String idName,
                                                        RequestDTO identity,
                                                        String language)
        Gets the identity info for the MatchType from the IdentityDTO.
        Parameters:
        matchType - the match type
        idName -
        identity - the identity
        language - the language
        Returns:
        the identity info
      • getIdentityInfo

        Map<String,​List<IdentityInfoDTO>> getIdentityInfo​(MatchType matchType,
                                                                String idName,
                                                                RequestDTO identity)
        Gets the identity info.
        Parameters:
        matchType - the match type
        idName - the id name
        identity - the identity
        Returns:
        the identity info
      • getIdentityRequestInfo

        Map<String,​String> getIdentityRequestInfo​(MatchType matchType,
                                                        RequestDTO identity,
                                                        String language)
        Gets the identity info for the MatchType from the IdentityDTO.
        Parameters:
        matchType - the match type
        idName -
        identity - the identity
        language - the language
        Returns:
        the identity info
      • getValidateOTPFunction

        ValidateOtpFunction getValidateOTPFunction()
        Get the Validate Otp function.
        Returns:
        the ValidateOtpFunction
      • getEnvironment

        org.springframework.core.env.Environment getEnvironment()
        To get EnvPropertyResolver.
        Returns:
        the environment
      • getTitleFetcher

        MasterDataFetcher getTitleFetcher()
        Title info fetcher from Master data manager.
        Returns:
        the title fetcher
      • getMatchingThreshold

        Optional<Integer> getMatchingThreshold​(String key)
        Gets the matching threshold.
        Parameters:
        key - the key
        Returns:
        the matching threshold
      • getDemoNormalizer

        DemoNormalizer getDemoNormalizer()
        Gets the demo normalizer object to normalise the corresponding(address/name) used for demographic authentication .
        Returns:
        the demo normalizer
      • getTypeForIdName

        Optional<String> getTypeForIdName​(String idName,
                                          IdMapping[] idMappings)
        Gets the type for id name.
        Parameters:
        idName - the id name
        idMappings - the id mappings
        Returns:
        the type for id name
      • getMappingConfig

        MappingConfig getMappingConfig()
        Gets the mapping config.
        Returns:
        the mapping config
      • getAvailableDynamicAttributesNames

        Set<String> getAvailableDynamicAttributesNames​(RequestDTO request)
        Gets the available dynamic attributes names.
        Parameters:
        request - the request
        Returns:
        the available dynamic attributes names
      • getMatchPasswordFunction

        ComparePasswordFunction getMatchPasswordFunction()
        To Get match Password function.
        Returns:
        the ComparePasswordFunction