package org.ovirt.engine.ui.frontend.utils;

import org.ovirt.engine.core.common.businessentities.DbUser;

/**
 * This class contains static methods useful for formatting text for display in the GUI.
 */
public class FormatUtils {
    /**
     * Format the name of a user for display using the login name, followed by the at sign and the name of the
     * directory.
     *
     * @param user the user object
     */
    public static String getFullLoginName(DbUser user) {
        return getFullLoginName(user.getLoginName(), user.getDomain());
    }

    /**
     * Format the name of a user for display using the login name, followed by the at sign and the name of the
     * directory.
     *
     * @param loginName the login name of the user
     * @param directoryName the name of the directory
     */
    public static String getFullLoginName(String loginName, String directoryName) {
        if (directoryName != null && directoryName.length() > 0) {
            return loginName + "@" + directoryName; //$NON-NLS-1$
        }
        else {
            return loginName;
        }
    }
}

@@ -884,24 +884,117 @@
 toryName) %7B%0A
+        if (loginName == null %7C%7C loginName.length() == 0) %7B%0A            return %22%22;%0A        %7D%0A
         if (

Group 'user name' should be empty value In column 'user name' in user tab.