@Override
    Map<CmsUUID, CmsUser> getUserToExport() {

        // get the data object from session
        List<String> groups = getGroupsList(m_exportGroups, false);

        Iterator<I_CmsEditableGroupRow> it = m_exportRolesGroup.getRows().iterator();
        List<String> roles = new ArrayList<String>();
        while (it.hasNext()) {
            CmsRole role = (CmsRole)((ComboBox)it.next().getComponent()).getValue();
            roles.add(role.getGroupName());
        }

        Map<CmsUUID, CmsUser> exportUsers = new HashMap<CmsUUID, CmsUser>();
        try {
            if (((groups.size() < 1)) && ((roles.size() < 1))) {
                exportUsers = CmsImportExportUserDialog.addExportAllUsers(m_cms, m_ou, exportUsers);
            } else {
                exportUsers = CmsImportExportUserDialog.addExportUsersFromGroups(m_cms, groups, exportUsers);
                exportUsers = CmsImportExportUserDialog.addExportUsersFromRoles(m_cms, m_ou, roles, exportUsers);
            }
        } catch (CmsException e) {
            LOG.error("Unable to get export user list.", e);
        }
        return exportUsers;
    }
@ Override Map < CmsUUID , CmsUser > getUserToExport ( ) { List < String > groups = getGroupsList ( m_exportGroups , false ) ; Iterator < I_CmsEditableGroupRow > it = m_exportRolesGroup . getRows ( ) . iterator ( ) ; List < String > roles = new ArrayList < String > ( ) ; while ( it . hasNext ( ) ) { CmsRole role = ( CmsRole ) ( ( ComboBox ) it . next ( ) . getComponent ( ) ) . getValue ( ) ; roles . add ( role . getGroupName ( ) ) ; } Map < CmsUUID , CmsUser > exportUsers = new HashMap < CmsUUID , CmsUser > ( ) ; try { if ( ( ( groups . size ( ) < 1 ) ) && ( ( roles . size ( ) < 1 ) ) ) { exportUsers = CmsImportExportUserDialog . addExportAllUsers ( m_cms , m_ou , exportUsers ) ; } else { exportUsers = CmsImportExportUserDialog . addExportUsersFromGroups ( m_cms , groups , exportUsers ) ; exportUsers = CmsImportExportUserDialog . addExportUsersFromRoles ( m_cms , m_ou , roles , exportUsers ) ; } } catch ( CmsException e ) { LOG . error ( "Unable to get export user list." , e ) ; } return exportUsers ; }
@see org.opencms.ui.apps.user.A_CmsImportExportUserDialog#getUserToExport()