<commit_before>/*
 * Copyright (c) 2011 Haulmont Technology Ltd. All Rights Reserved.
 * Haulmont Technology proprietary and confidential.
 * Use is subject to license terms.
 */

package com.haulmont.cuba.gui.app.security.user.browse;

import com.haulmont.cuba.gui.components.AbstractLookup;
import com.haulmont.cuba.gui.components.Table;
import org.apache.commons.lang.BooleanUtils;

import javax.inject.Inject;
import java.util.Map;

/**
 * @author abramov
 * @version $Id$
 */
public class UserLookup extends AbstractLookup {

    @Inject
    protected Table usersTable;

    @Override
    public void init(Map<String, Object> params) {
        setHeight("400px");
        Boolean multiSelect = BooleanUtils.toBooleanObject((String) params.get("param$multiSelect"));
        if (multiSelect != null)
            usersTable.setMultiSelect(multiSelect);
    }
}
<commit_msg>Roles -> Assign to users screen doesn't support multiple selection. #PL-2388<commit_after>/*
 * Copyright (c) 2011 Haulmont Technology Ltd. All Rights Reserved.
 * Haulmont Technology proprietary and confidential.
 * Use is subject to license terms.
 */

package com.haulmont.cuba.gui.app.security.user.browse;

import com.haulmont.cuba.gui.components.AbstractLookup;
import com.haulmont.cuba.gui.components.Table;
import org.apache.commons.lang.BooleanUtils;

import javax.inject.Inject;
import java.util.Map;

/**
 * @author abramov
 * @version $Id$
 */
public class UserLookup extends AbstractLookup {

    @Inject
    protected Table usersTable;

    @Override
    public void init(Map<String, Object> params) {
        setHeight("400px");
        Boolean multiSelect = BooleanUtils.toBooleanObject(params.get("multiSelect").toString());
        if (multiSelect != null)
            usersTable.setMultiSelect(multiSelect);
    }
}

{'fraction_non_alphanumeric': 0.10933186085035891, 'fraction_numerical': 0.009939260077305357, 'mean_word_length': 3.8449197860962565, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7252752', 'n_tokens_mistral': 546, 'n_tokens_neox': 520, 'n_words': 130}