Interface RAOLookupService
- All Known Implementing Classes:
DefaultRAOLookupService
public interface RAOLookupService
Service that provides lookup capabilities for RAO entities
-
Method Summary
Modifier and TypeMethodDescription<T> Optional<T>lookupRAOByType(Class<T> raoType, RuleActionContext context, Predicate<T>... raoFilters) Performs lookup for the RAO object identified by its type within providedRuleActionContext<T> List<T>lookupRAOObjectsByType(Class<T> raoType, RuleActionContext context, Predicate<T>... raoFilters) Performs lookup for the RAO objects identified by its type within providedRuleActionContext
-
Method Details
-
lookupRAOByType
<T> Optional<T> lookupRAOByType(Class<T> raoType, RuleActionContext context, Predicate<T>... raoFilters) Performs lookup for the RAO object identified by its type within providedRuleActionContext- Type Parameters:
T- expected RAO object type- Parameters:
raoType- class type of RAO objects to look forcontext- instance ofRuleActionContextraoFilters- optional set ofPredicateto perform filtering against found RAO objects- Returns:
- RAO object wrapped in
Optional, orOptional.empty()in case no RAO object found that meets lookup and filtering criteria
-
lookupRAOObjectsByType
<T> List<T> lookupRAOObjectsByType(Class<T> raoType, RuleActionContext context, Predicate<T>... raoFilters) Performs lookup for the RAO objects identified by its type within providedRuleActionContext- Type Parameters:
T- expected RAO object type- Parameters:
raoType- class type of RAO objects to look forcontext- instance ofRuleActionContextraoFilters- optional set ofPredicateto perform filtering against found RAO objects- Returns:
- list of found RAO objects that satisfy lookup criteria, or
Collections.emptyList()
-