setFullName()

The method sets the new full name of a group, a user or an area.

Synopsis

public void setFullName(langString newFullName);

Parameter Description
newFullName The new full name.

Return Value

-

Errors

Errors are shown in the log viewer.

EXAMPLE

#uses "classes/userManagement/UserManagement"
main()
{
  shared_ptr<UserManagement> userMgm = UserManagement::getInstance();
  shared_ptr<UserManagementUser> usr = new UserManagementUser("JohnSmith");
  langString fullName;
  setLangString(fullName,0,"John Q. Smith");
  setLangString(fullName,1,"John Q. Smith");
  setLangString(fullName,2,"John Q. Smith");
  usr =  userMgm.getUserByName("JohnSmith");/* Returns the user data of the user JohnSmith*/
  usr.setFullName(fullName);
  DebugN("The full name:", usr);
  userMgm.saveChanges();
}

Assignment

User administration

See also

setPermissionDescription()