public User( @Nullable final String sName, @Nullable final String sPassword, @Nullable final String sEmail, @Nonnull final ERole aRole) { this(); m_sName = sName; setPassword(sPassword); m_sEmail = sEmail; m_sRole = aRole.name(); }
public void setRole(@Nonnull final ERole aRole) { m_sRole = aRole.name(); }
@Nullable public ERole getRole() { if (StringUtils.isNotEmpty(m_sRole)) return ERole.valueOf(m_sRole); else return null; }