Search in sources :

Example 1 with UserRemovedEvent

use of com.haulmont.cuba.gui.events.UserRemovedEvent in project cuba by cuba-platform.

the class UserRemoveAction method afterRemove.

@Override
protected void afterRemove(Set removedItems) {
    super.afterRemove(removedItems);
    Events events = AppBeans.get(Events.NAME);
    for (Object removedItem : removedItems) {
        UserRemovedEvent event = new UserRemovedEvent((User) removedItem);
        events.publish(event);
    }
}
Also used : Events(com.haulmont.cuba.core.global.Events) UserRemovedEvent(com.haulmont.cuba.gui.events.UserRemovedEvent)

Aggregations

Events (com.haulmont.cuba.core.global.Events)1 UserRemovedEvent (com.haulmont.cuba.gui.events.UserRemovedEvent)1