-
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.
- Loading branch information
1 parent
1eaeecb
commit 605bd75
Showing
4 changed files
with
53 additions
and
5 deletions.
There are no files selected for viewing
43 changes: 43 additions & 0 deletions
43
gui/admin-gui/src/main/java/com/evolveum/midpoint/web/page/admin/cases/MyCasesPanel.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,43 @@ | ||
/* | ||
* Copyright (C) 2022 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.web.page.admin.cases; | ||
|
||
import com.evolveum.midpoint.authentication.api.util.AuthUtil; | ||
import com.evolveum.midpoint.cases.api.util.QueryUtils; | ||
import com.evolveum.midpoint.gui.impl.page.admin.assignmentholder.AssignmentHolderDetailsModel; | ||
import com.evolveum.midpoint.prism.path.ItemPath; | ||
import com.evolveum.midpoint.prism.query.ObjectFilter; | ||
import com.evolveum.midpoint.web.application.PanelType; | ||
import com.evolveum.midpoint.web.page.admin.server.CasesTablePanel; | ||
import com.evolveum.midpoint.web.session.UserProfileStorage; | ||
import com.evolveum.midpoint.xml.ns._public.common.common_3.*; | ||
|
||
|
||
@PanelType(name = "myRequests") | ||
public class MyCasesPanel extends CasesTablePanel { | ||
|
||
private static final long serialVersionUID = 1L; | ||
|
||
public MyCasesPanel(String id, AssignmentHolderDetailsModel model, ContainerPanelConfigurationType configurationType) { | ||
super(id, configurationType); | ||
} | ||
|
||
protected ObjectFilter getCasesFilter(){ | ||
return QueryUtils.filterForMyRequests(getPrismContext().queryFor(CaseType.class), | ||
AuthUtil.getPrincipalUser().getOid()) | ||
.desc(ItemPath.create(CaseType.F_METADATA, MetadataType.F_CREATE_TIMESTAMP)) | ||
.buildFilter(); | ||
} | ||
|
||
@Override | ||
protected UserProfileStorage.TableId getTableId() { | ||
return null; | ||
} | ||
|
||
|
||
|
||
} |
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