Formats a MolgenisUser's name.

@return String containing the user's first name, middle names and last name.
438749
private static String getFormattedName(User user) {
    List<String> parts = new ArrayList<>();
    if (user.getTitle() != null) {
      parts.add(user.getTitle());
    }
    if (user.getFirstName() != null) {
      parts.add(user.getFirstName());
    }
    if (user.getMiddleNames() != null) {
      parts.add(user.getMiddleNames());
    }
    if (user.getLastName() != null) {
      parts.add(user.getLastName());
    }

    if (parts.isEmpty()) {
      return null;
    } else {
      return StringUtils.collectionToDelimitedString(parts, " ");
    }
  }
1011195
public function FullName()
    {
        $fullName = $this->Name();
        if ($this->prefix)
            $fullName =  $this->escaper->EscapeIdentifier($this->prefix) . '.' . $fullName;
            
        return $fullName;
    }
432238
public String getName() {
		if(name==null) {
			String temp = get("iv-user");
			if(temp==null)return null;
			StringBuilder sb = new StringBuilder();
			int at = temp.indexOf('@');
			if(at<0) {
				sb.append(temp);
			} else {
				sb.append(temp.substring(0, at));
			}
			if(temp.endsWith("@uverse.com"))sb.append("@uverse.tguard.att.com");
			else if(temp.endsWith("@att.com"))sb.append("@com.tguard.att.com");
			else if(temp.endsWith("@att.net"))sb.append("@net.tguard.att.com");
			else sb.append("@tguard.att.com");
			name = sb.toString();
		}
		return name;
	}
1186400
public function getFullName()
    {
        $fullNameString = $this->firstName .
            ($this->middleName->isEmpty() ? '' : ' ' . $this->middleName) .
            ($this->lastName->isEmpty() ? '' : ' ' . $this->lastName);

        $fullName = new StringLiteral($fullNameString);

        return $fullName;
    }
349900
protected static String formatUserUrl(String username) {
        String url = USERS_MAPPING + USER_MAPPING;
        url = url.replaceAll("\\{username.*\\}", username);
        return url;
    }
690573
public function user_name($name = NULL)
	{
		$delim = array('.', '_');

		if ($name)
		{
			$names = preg_split('/[^\w]+/', $name, NULL, PREG_SPLIT_NO_EMPTY);
			shuffle($names);
			return implode($delim[array_rand($delim)], $names);
		}

		if (mt_rand(0, 1))
		{
			$name = preg_replace('/\W/', '', \Phaker::name()->first_name);
		}
		else
		{
			$names = preg_replace('/\W/', '', array(\Phaker::name()->first_name, \Phaker::name()->last_name));
			$name  = implode($delim[array_rand($delim)], $names);
		}

		return static::fix_umlauts(strtolower($name));
	}
73249
public function get_formatted_name() : string {
        $context = $this->get_handler()->get_configuration_context();
        return format_string($this->get('name'), true, ['context' => $context]);
    }
46130
@Override
    public String getName() {
        final Object attributeValue = this.getAttributeValue(this.userNameAttribute);
        if (attributeValue == null) {
            return null;
        }

        return attributeValue.toString();
    }
838456
public function getUserGroupNames()
    {
        /** @var OxpsPaymorrowOxUser|oxUser $this */

        /** @var oxList $oGroups */
        if ( !( $oGroups = $this->getUserGroups() ) ) {
            return '';
        }

        $aGroups = array();

        foreach ( $oGroups as $oGroup ) {
            if ( $this->_isGroupValid( $oGroup ) ) {
                $aGroups[] = $oGroup->oxgroups__oxtitle->value;
            }
        }

        return implode( ', ', $aGroups );
    }
465887
def get_full_name(self):
        """"""
        if self.first_name and self.last_name:
            return "{} {}".format(self.first_name, self.last_name)
        return self.email
1276719
protected function user()
    {
        if ($this->wrappedObject->security) {
            return ' this user\'s ';
        }

        $user = $this->wrappedObject->revisionable()->withTrashed()->first(['first_name', 'last_name']);

        return ' '.$user->first_name.' '.$user->last_name.'\'s ';
    }
464730
protected String getToNames() {

        StringBuffer result = new StringBuffer(256);
        Iterator<CmsUser> itUsers = getUsers().iterator();
        while (itUsers.hasNext()) {
            CmsUser user = itUsers.next();
            result.append(user.getFullName());
            if (itUsers.hasNext()) {
                result.append("; ");
            }
        }
        return result.toString();
    }
190112
protected String getToNames() {

        List<String> excluded = new ArrayList<String>();
        List<String> users = new ArrayList<String>();
        Iterator<String> itGroups = getGroups().iterator();
        while (itGroups.hasNext()) {
            String groupName = itGroups.next();
            try {
                Iterator<CmsUser> itUsers = getCms().getUsersOfGroup(groupName, true).iterator();
                while (itUsers.hasNext()) {
                    CmsUser user = itUsers.next();
                    String userName = user.getFullName();
                    if (!users.contains(userName)) {
                        String emailAddress = user.getEmail();
                        if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(emailAddress)) {
                            users.add(userName);
                        } else {
                            excluded.add(userName);
                        }
                    }
                }
            } catch (Exception e) {
                LOG.error(e.getLocalizedMessage(), e);
            }
        }
        if (!excluded.isEmpty()) {
            StringBuffer text = new StringBuffer(500);
            text.append(Messages.get().container(Messages.GUI_EXCLUDED_USERS_WARNING_0).key(getLocale()));
            text.append("<br>");
            Iterator<String> it = excluded.iterator();
            while (it.hasNext()) {
                text.append("- ");
                text.append(it.next());
                text.append("<br>");
            }
            setExcludedUsers(text.toString());
        }
        if (users.isEmpty()) {
            setCommitErrors(
                Collections.singletonList((Throwable)new CmsIllegalStateException(
                    Messages.get().container(Messages.ERR_NO_SELECTED_USER_WITH_EMAIL_0))));
            return "";
        }
        StringBuffer result = new StringBuffer(256);
        Iterator<String> itUsers = users.iterator();
        while (itUsers.hasNext()) {
            result.append(itUsers.next().toString());
            if (itUsers.hasNext()) {
                result.append("; ");
            }
        }
        return result.toString();
    }
858415
public function getFullName()
    {
        if (! $this->_getVar('user_name')) {
            $name = ltrim($this->_getVar('user_first_name') . ' ') .
                    ltrim($this->_getVar('user_surname_prefix') . ' ') .
                    $this->_getVar('user_last_name');

            if (! $name) {
                // Use obfuscated login name
                $name = $this->getLoginName();
                $name = substr($name, 0, 3) . str_repeat('*', max(5, strlen($name) - 2));
            }

            $this->_setVar('user_name', $name);

            // \MUtil_Echo::track($name);
        }

        return $this->_getVar('user_name');
    }
1115246
public function getFullNameAttribute()
    {
        $names = [];
        $names[] = $this->first_name  ?: '';
        $names[] = $this->middle_name ?: '';
        $names[] = $this->last_name   ?: '';

        return trim(implode(' ', array_filter($names)));
    }
228205
public function getFullName() {

		$name = $this->firstName;

		if( !empty( $this->middleName ) ) {

			$name = "$name $this->middleName";
		}

		if( !empty( $this->lastName ) ) {

			$name = "$name $this->lastName";
		}

		return $name;
	}
482002
public String getName()
    {
    	    
        StringBuilder name = new StringBuilder();
        if(lastName != null && lastName.length() > 0)
        		name.append(lastName);
        
        
        if(name.length() > 0)
            name.append(", ");
        if(firstName != null && firstName.length() > 0)
        		name.append(firstName);
        
        return name.toString();
    }