Skip to content

Commit

Permalink
Add MidpointFunctions.getEvaluateNew
Browse files Browse the repository at this point in the history
(To continue using midpoint.evaluateNew in scripts.)
  • Loading branch information
mederly committed Oct 3, 2023
1 parent 28c646a commit d635434
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1316,6 +1316,9 @@ Object executeAdHocProvisioningScript(String resourceOid, String language, Strin
*/
Boolean isEvaluateNew();

/** Just a convenience method to allow writing `midpoint.evaluateNew` even after Groovy upgrade in 4.8. */
Boolean getEvaluateNew();

/**
* Returns all non-negative values from all focus mappings (targeted to given path)
* from all non-negative evaluated assignments.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2082,6 +2082,11 @@ public Boolean isEvaluateNew() {
return scriptContext.isEvaluateNew();
}

@Override
public Boolean getEvaluateNew() {
return isEvaluateNew();
}

@Override
@NotNull
public Collection<PrismValue> collectAssignedFocusMappingsResults(@NotNull ItemPath path) throws SchemaException {
Expand Down

0 comments on commit d635434

Please sign in to comment.