I am trying to set the Family, Given, and Middle names for a UserListItem
that appears in a search popup in the legacy-ui (on the Manage Alerts page pictured below).
The DWRUserService
is using the findUsers
and getAllUsers
methods to return lists of UserListItem
s that are used to populate the popup as seen in the network traffic in the image above.
Since the UserListItem
object does not have attributes for Family, Given, or Middle names, I am wondering how to set these values before it is sent to the UI. (Or, I am wondering how the application is able to get these values before they are given to the UI.)
I have done some digging and see where I might be able to get the information from a user using something like: user.getPerson().getPersonName()
.
However, I am hoping to do HTML sanitization on these values, so I don’t know that it is a good idea to directly sanitize the values in the PersonName
object for this user rather than somehow sanitizing the values in the UserListItem
object.
Could someone help me out with this?@herbert24 @isears