modifications to ensure that Venice can operate without certain personal

information prompted for at registration time, if certain sites should elect
to omit that information
This commit is contained in:
Eric J. Bowersox
2004-07-10 22:54:15 +00:00
parent 5c0f841ab7
commit f0bf5e31ee
9 changed files with 431 additions and 348 deletions

View File

@@ -619,7 +619,14 @@ class UserContextImpl implements UserContext, ServiceProvider, PropertyProvider
if (my_email==null)
my_email = rc.getEmail();
if (full_name==null)
{ // compute the full name
full_name = rc.getGivenName() + " " + rc.getFamilyName();
full_name = full_name.trim();
if (StringUtil.isStringEmpty(full_name))
full_name = username;
} // end if
if (my_pseud==null)
my_pseud = full_name;
return rc;

View File

@@ -86,7 +86,7 @@ public class BuildVCard
buf.append(family_name);
if (!StringUtil.isStringEmpty(suffix))
buf.append(' ').append(suffix);
String s = buf.toString();
String s = buf.toString().trim();
if (s.length()==0)
return null;
return s;