-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
session storage for member panels. optimize session size for org tree…
… page (cherry picked from commit 27135bf)
- Loading branch information
Showing
24 changed files
with
552 additions
and
630 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -215,6 +215,7 @@ public Search<C> load() { | |
} | ||
} | ||
if (storage != null) { | ||
|
||
storage.setSearch(search); | ||
} | ||
return search; | ||
|
116 changes: 68 additions & 48 deletions
116
...evolveum/midpoint/gui/impl/page/admin/abstractrole/component/AbstractRoleMemberPanel.java
Large diffs are not rendered by default.
Oops, something went wrong.
50 changes: 50 additions & 0 deletions
50
.../java/com/evolveum/midpoint/gui/impl/page/admin/focus/component/DeadShadowSearchItem.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/* | ||
* Copyright (C) 2021 Evolveum and contributors | ||
* | ||
* This work is dual-licensed under the Apache License 2.0 | ||
* and European Union Public License. See LICENSE file for details. | ||
*/ | ||
package com.evolveum.midpoint.gui.impl.page.admin.focus.component; | ||
|
||
import com.evolveum.midpoint.prism.PrismContext; | ||
import com.evolveum.midpoint.prism.query.ObjectFilter; | ||
import com.evolveum.midpoint.util.DisplayableValue; | ||
import com.evolveum.midpoint.web.component.search.PropertySearchItem; | ||
import com.evolveum.midpoint.web.component.search.Search; | ||
import com.evolveum.midpoint.web.component.search.SearchItemDefinition; | ||
|
||
import com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType; | ||
|
||
import org.apache.commons.lang3.BooleanUtils; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
public class DeadShadowSearchItem extends PropertySearchItem<Boolean> { | ||
|
||
public DeadShadowSearchItem(Search search, @NotNull SearchItemDefinition definition) { | ||
super(search, definition); | ||
setFixed(true); | ||
} | ||
|
||
@Override | ||
public ObjectFilter transformToFilter() { | ||
DisplayableValue<Boolean> selectedValue = getValue(); | ||
if (selectedValue == null) { | ||
return null; | ||
} | ||
Boolean value = selectedValue.getValue(); | ||
if (BooleanUtils.isTrue(value)) { | ||
return null; // let the default behavior to take their chance | ||
} | ||
|
||
return PrismContext.get().queryFor(ShadowType.class) | ||
.not() | ||
.item(ShadowType.F_DEAD) | ||
.eq(true) | ||
.buildFilter(); | ||
} | ||
|
||
@Override | ||
protected boolean canRemoveSearchItem() { | ||
return false; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.