@Test public void testGetInitials() { assertEquals(initials, user.getInitials()); }
public String getInitials() { if (initials != null) return initials; if (cachedInitials != null) return cachedInitials; StringBuffer initials = new StringBuffer(); String first = getFirstName(); String last = getLastName(); if (!StringUtils.isBlank(first) && !StringUtils.isBlank(last)) { initials.append(first.substring(0, 1)); initials.append(last.subSequence(0, 1)); cachedInitials = initials.toString().toLowerCase(); return cachedInitials; } return null; }
WebloungeUserImpl extends UserImpl implements WebloungeUser { public String getInitials() { if (initials != null) return initials; if (cachedInitials != null) return cachedInitials; StringBuffer initials = new StringBuffer(); String first = getFirstName(); String last = getLastName(); if (!StringUtils.isBlank(first) && !StringUtils.isBlank(last)) { initials.append(first.substring(0, 1)); initials.append(last.subSequence(0, 1)); cachedInitials = initials.toString().toLowerCase(); return cachedInitials; } return null; } }
WebloungeUserImpl extends UserImpl implements WebloungeUser { public String getInitials() { if (initials != null) return initials; if (cachedInitials != null) return cachedInitials; StringBuffer initials = new StringBuffer(); String first = getFirstName(); String last = getLastName(); if (!StringUtils.isBlank(first) && !StringUtils.isBlank(last)) { initials.append(first.substring(0, 1)); initials.append(last.subSequence(0, 1)); cachedInitials = initials.toString().toLowerCase(); return cachedInitials; } return null; } WebloungeUserImpl(String login, String realm);  WebloungeUserImpl(String login); }
WebloungeUserImpl extends UserImpl implements WebloungeUser { public String getInitials() { if (initials != null) return initials; if (cachedInitials != null) return cachedInitials; StringBuffer initials = new StringBuffer(); String first = getFirstName(); String last = getLastName(); if (!StringUtils.isBlank(first) && !StringUtils.isBlank(last)) { initials.append(first.substring(0, 1)); initials.append(last.subSequence(0, 1)); cachedInitials = initials.toString().toLowerCase(); return cachedInitials; } return null; } WebloungeUserImpl(String login, String realm);  WebloungeUserImpl(String login); boolean isEnabled(); boolean canLogin(); void setEnabled(boolean enabled); void setFirstName(String firstname); String getFirstName(); void setLastName(String lastname); String getLastName(); String getName(); void setEmail(String email); String getEmail(); void setLanguage(Language language); Language getLanguage(); String getInitials(); void setInitials(String initials); void setLastLogin(Date date, String src); Date getLastLogin(); String getLastLoginFrom(); @Override String getChallenge(); @Override void setChallenge(String challenge); @Override byte[] getResponse(); @Override void setResponse(byte[] response, DigestType digest); Object getProperty(String name); Object removeProperty(String name); void setProperty(String name, Object value); static WebloungeUserImpl fromXml(Node userNode, Site site); static WebloungeUserImpl fromXml(Node userNode, Site site, XPath xpath); String toXml(); @Override boolean equals(Object obj); @Override int hashCode(); }
WebloungeUserImpl extends UserImpl implements WebloungeUser { public String getInitials() { if (initials != null) return initials; if (cachedInitials != null) return cachedInitials; StringBuffer initials = new StringBuffer(); String first = getFirstName(); String last = getLastName(); if (!StringUtils.isBlank(first) && !StringUtils.isBlank(last)) { initials.append(first.substring(0, 1)); initials.append(last.subSequence(0, 1)); cachedInitials = initials.toString().toLowerCase(); return cachedInitials; } return null; } WebloungeUserImpl(String login, String realm);  WebloungeUserImpl(String login); boolean isEnabled(); boolean canLogin(); void setEnabled(boolean enabled); void setFirstName(String firstname); String getFirstName(); void setLastName(String lastname); String getLastName(); String getName(); void setEmail(String email); String getEmail(); void setLanguage(Language language); Language getLanguage(); String getInitials(); void setInitials(String initials); void setLastLogin(Date date, String src); Date getLastLogin(); String getLastLoginFrom(); @Override String getChallenge(); @Override void setChallenge(String challenge); @Override byte[] getResponse(); @Override void setResponse(byte[] response, DigestType digest); Object getProperty(String name); Object removeProperty(String name); void setProperty(String name, Object value); static WebloungeUserImpl fromXml(Node userNode, Site site); static WebloungeUserImpl fromXml(Node userNode, Site site, XPath xpath); String toXml(); @Override boolean equals(Object obj); @Override int hashCode();  }