[midPoint] Changes set to secodaryDelta doesn't applyes

Алексей Ващенков a.vashchenkov at solarsecurity.ru
Tue May 26 09:48:01 CEST 2015


Hello.

I need to remove all roles after user fired.
I wrote the code

focus.assignment.removeAll(rolesToDelete);
current = modelController.getObject(UserType.class, focus.oid, null, task, result);
delta = current.diff(focus.asPrismObject(), true, true);
context.engineScope.get("modelContext").focusContext.addSecondaryDelta(delta)

The delta evaluated properly, but it doesn't applies to user.
Where am I wrong?


More information about the midPoint mailing list