Class DynamicSearchChecker


  • public class DynamicSearchChecker
    extends java.lang.Object
    Utility class for verifying dynamically extracted search attribute against "static" search configuration
    Author:
    vfunshte
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.Map<java.lang.String,​? extends java.lang.Object> getSearchAttributes​(Element e, java.util.Set<java.lang.String> reservedAttrs, DynamicAttributesExtractor extractor)
      Extracts dynamically indexed search attributes from cache element using provided extractor, validating against reserved set of attribute names (provided by Ehcache search config)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DynamicSearchChecker

        public DynamicSearchChecker()
    • Method Detail

      • getSearchAttributes

        public static java.util.Map<java.lang.String,​? extends java.lang.Object> getSearchAttributes​(Element e,
                                                                                                           java.util.Set<java.lang.String> reservedAttrs,
                                                                                                           DynamicAttributesExtractor extractor)
                                                                                                    throws SearchException
        Extracts dynamically indexed search attributes from cache element using provided extractor, validating against reserved set of attribute names (provided by Ehcache search config)
        Parameters:
        e - cache element for which to get dynamically extracted attribute values
        reservedAttrs - disallowed attribute names
        extractor - dynamic attributes extractor
        Returns:
        map of dynamically extracted search attribute names to their values. If passed in extractor is null, map will be empty.
        Throws:
        SearchException