Class ContactUtils
java.lang.Object
ubic.gemma.model.common.auditAndSecurity.ContactUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringdisplayName(Contact contact) The best available human-readable name for a contact: itsname, else the account'suserName.
-
Method Details
-
displayName
The best available human-readable name for a contact: itsname, else the account'suserName.A Gemma
UsercarriesuserNameseparately from thenameit inherits as aPerson, and the contact name is optional. Anything typedContact—Ticket's reporter and assignee, aTicketEvent's actor — therefore reads null for an account that never filled one in, even though the account has a username.AuditEventValueObjectdoes not hit this becauseAuditEvent.performeris declaredUser.- Parameters:
contact- a contact, possibly an uninitialized-but-attached proxy; may be null- Returns:
- the name, else the username, else null — never blank
-