Class GrouperMcpConfigSearchIndex
java.lang.Object
edu.internet2.middleware.grouper.mcp.GrouperMcpConfigSearchIndex
Manages an in-memory Lucene index for searching Grouper configuration properties.
Indexes all properties from all ConfigPropertiesCascadeBase subclasses
(via ConfigFileName enum). Sensitive values (passwords, secrets) are masked.
Includes metadata per property: where configured (base/override/database),
default value, EL expression, comment, value type, and required flag.
The index is built lazily on first search and rebuilt periodically (default every hour).
Thread-safe: builds a new index then swaps the reference atomically.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classresult object for a config search hit -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidforce rebuild the index nowstatic voidrebuild the index if it is stale or not yet builtsearch the config index
-
Field Details
-
MASKED_VALUE
masked value for sensitive configs- See Also:
-
-
Constructor Details
-
GrouperMcpConfigSearchIndex
public GrouperMcpConfigSearchIndex()
-
-
Method Details
-
search
public static List<GrouperMcpConfigSearchIndex.ConfigSearchResult> search(String queryString, String filterConfigFile, int maxResults) search the config index- Parameters:
queryString- the Lucene query stringfilterConfigFile- optional config file name to filter by, or null for allmaxResults- max results to return- Returns:
- list of search results ordered by relevance
-
rebuildIfNeeded
public static void rebuildIfNeeded()rebuild the index if it is stale or not yet built -
forceRebuild
public static void forceRebuild()force rebuild the index now
-