setComment()

The method sets a comment for a user.

Synopsis

public void setComment(langString comment);

Parameter Description
comment The comment that is set.

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("para");
  langString comment1;
  setLangString(comment1,0,"First comment");
  setLangString(comment1,1,"First comment");
  setLangString(comment1,2,"First comment");
  usr =  userMgm.getUserByName("para");/* Returns the user data of the user para*/
  usr.setComment(comment1); /*Sets the comment for the three different languages */
}

Assignment

User administration

See also

setPermissionDescription()