Skip to content

Commit

Permalink
fix for shadow search - dead item search for projection panel, resouc…
Browse files Browse the repository at this point in the history
…e and objectClass for repository obejcts.
  • Loading branch information
katkav committed Jan 23, 2023
1 parent d7fd348 commit 1b6a44a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ private List<SearchItemType> createSearchItemList() {
for (ItemPath path : availableDefinitions.keySet()) {
SearchItemType searchItem = new SearchItemType();
searchItem.setPath(new ItemPathType(path));
if (isFixedItem(type, path)) {
if (isFixedItem(type, path) || isDeadItemForProjections(path) ) {
searchItem.setVisibleByDefault(true);
}
searchItems.add(searchItem);
Expand All @@ -148,6 +148,13 @@ private List<SearchItemType> createSearchItemList() {
return searchItems;
}

private boolean isDeadItemForProjections(ItemPath path) {
if (CollectionPanelType.PROJECTION_SHADOW != collectionPanelType) {
return false;
}
return ItemPath.create(ShadowType.F_DEAD).equivalent(path);
}

private List<SearchItemType> createReportSearchItems(ObjectCollectionReportEngineConfigurationType reportCollection) {
List<SearchFilterParameterType> parameters = reportCollection.getParameter();
List<SearchItemType> searchItems = parameters
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,8 @@ public SearchableItemsDefinitions additionalSearchContext(SearchContext ctx) {

SHADOW_SEARCHABLE_ITEMS.put(CollectionPanelType.DEBUG,
Arrays.asList(
ItemPath.create(ShadowType.F_DEAD),
ItemPath.create(ShadowType.F_OBJECT_CLASS),
ItemPath.create(ShadowType.F_RESOURCE_REF),
ItemPath.create(ShadowType.F_INTENT),
ItemPath.create(ShadowType.F_KIND),
ItemPath.create(ShadowType.F_EXISTS),
Expand Down

0 comments on commit 1b6a44a

Please sign in to comment.