Skip to content

Commit

Permalink
SearchFactory: Added support for extension on custom path
Browse files Browse the repository at this point in the history
Signed-off-by: Tony Tkacik <tonydamage@gmail.com>
  • Loading branch information
tonydamage committed Sep 28, 2022
1 parent f9ee0c2 commit 762c01e
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1098,11 +1098,12 @@ public static <C extends Containerable> List<SearchItemDefinition> createExtensi

public static <C extends Containerable> List<AbstractSearchItemWrapper> createSearchableExtensionWrapperList(
PrismContainerDefinition<C> objectDef, ModelServiceLocator modelServiceLocator) {
return createSearchableExtensionWrapperList(objectDef, modelServiceLocator, ObjectType.F_EXTENSION);
}

public static <C extends Containerable> List<AbstractSearchItemWrapper> createSearchableExtensionWrapperList(
PrismContainerDefinition<C> objectDef, ModelServiceLocator modelServiceLocator, ItemPath extensionPath) {
List<AbstractSearchItemWrapper> searchItemWrappers = new ArrayList<>();

ItemPath extensionPath = ObjectType.F_EXTENSION;

PrismContainerDefinition ext = objectDef.findContainerDefinition(ObjectType.F_EXTENSION);
if (ext == null) {
return searchItemWrappers;
Expand Down

0 comments on commit 762c01e

Please sign in to comment.