-
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.
Migrate cert decision recording to new autz
Instead of hardcoded authorization logic for certification decision recording that used #all and #recordCertificationDecision (for own decisions), we now use general parameterized #completeWorkItem action. The legacy #recordCertificationDecision is automatically converted to the new action on the fly (in memory). To do that, this commit provides preliminary implementation of sub-object authorization parameters.
- Loading branch information
Showing
23 changed files
with
523 additions
and
205 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
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
20 changes: 20 additions & 0 deletions
20
...-api/src/main/java/com/evolveum/midpoint/certification/api/AccessCertificationCaseId.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,20 @@ | ||
/* | ||
* Copyright (C) 2010-2023 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.certification.api; | ||
|
||
import org.jetbrains.annotations.NotNull; | ||
|
||
import java.io.Serializable; | ||
|
||
public record AccessCertificationCaseId(@NotNull String campaignOid, long caseId) implements Serializable { | ||
|
||
@Override | ||
public String toString() { | ||
return campaignOid + ":" + caseId; | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
.../src/main/java/com/evolveum/midpoint/certification/api/AccessCertificationWorkItemId.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,26 @@ | ||
/* | ||
* Copyright (C) 2010-2023 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.certification.api; | ||
|
||
import java.io.Serializable; | ||
|
||
import org.jetbrains.annotations.NotNull; | ||
|
||
public record AccessCertificationWorkItemId(@NotNull AccessCertificationCaseId caseId, long workItemId) implements Serializable { | ||
|
||
public static AccessCertificationWorkItemId of(@NotNull String campaignOid, long caseId, long workItemId) { | ||
return new AccessCertificationWorkItemId( | ||
new AccessCertificationCaseId(campaignOid, caseId), | ||
workItemId); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return caseId + ":" + workItemId; | ||
} | ||
} |
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.