Search in sources :

Example 1 with UserSettingService

use of com.haulmont.cuba.security.app.UserSettingService in project cuba by cuba-platform.

the class CopySettings method copySettings.

protected void copySettings() {
    UserSettingService settingsService = AppBeans.get(UserSettingService.NAME);
    User fromUser = usersDs.getItem();
    for (User user : users) {
        if (!user.equals(fromUser)) {
            settingsService.copySettings(fromUser, user);
        }
    }
    close("ok");
}
Also used : User(com.haulmont.cuba.security.entity.User) UserSettingService(com.haulmont.cuba.security.app.UserSettingService)

Aggregations

UserSettingService (com.haulmont.cuba.security.app.UserSettingService)1 User (com.haulmont.cuba.security.entity.User)1