Search in sources :

Example 11 with ModelEvent

use of com.evolveum.midpoint.notifications.api.events.ModelEvent in project midpoint by Evolveum.

the class ConfirmationNotifier method getUser.

protected UserType getUser(Event event) {
    ModelEvent modelEvent = (ModelEvent) event;
    PrismObject<UserType> newUser = modelEvent.getFocusContext().getObjectNew();
    UserType userType = newUser.asObjectable();
    return userType;
}
Also used : ModelEvent(com.evolveum.midpoint.notifications.api.events.ModelEvent) UserType(com.evolveum.midpoint.xml.ns._public.common.common_3.UserType)

Aggregations

ModelEvent (com.evolveum.midpoint.notifications.api.events.ModelEvent)11 PolyString (com.evolveum.midpoint.prism.polystring.PolyString)3 ProgressInformation (com.evolveum.midpoint.model.api.ProgressInformation)2 ModelContext (com.evolveum.midpoint.model.api.context.ModelContext)2 Message (com.evolveum.midpoint.notifications.api.transports.Message)2 Transport (com.evolveum.midpoint.notifications.api.transports.Transport)2 ObjectDelta (com.evolveum.midpoint.prism.delta.ObjectDelta)2 ExpressionVariables (com.evolveum.midpoint.repo.common.expression.ExpressionVariables)2 OperationResult (com.evolveum.midpoint.schema.result.OperationResult)2 ArrayList (java.util.ArrayList)2 ModelElementContext (com.evolveum.midpoint.model.api.context.ModelElementContext)1 ResourceObjectEvent (com.evolveum.midpoint.notifications.api.events.ResourceObjectEvent)1 CustomTransport (com.evolveum.midpoint.notifications.impl.api.transports.CustomTransport)1 ItemPath (com.evolveum.midpoint.prism.path.ItemPath)1 SchemaException (com.evolveum.midpoint.util.exception.SchemaException)1 CustomNotifierType (com.evolveum.midpoint.xml.ns._public.common.common_3.CustomNotifierType)1 ShadowType (com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType)1 UserType (com.evolveum.midpoint.xml.ns._public.common.common_3.UserType)1 Date (java.util.Date)1 List (java.util.List)1