if (attribute.getName().equals("email")) { email = attribute.getValues().get(0); if (attribute.getName().equals("firstname")) { firstName = attribute.getValues().get(0); if (attribute.getName().equals("lastname")) { lastName = attribute.getValues().get(0); if (attribute.getName().equals("fullname")) { fullName = attribute.getValues().get(0);
+ " to fetch request"); fetchRequest.addAttribute(attr.getName(), attr.getType(), attr.isRequired(), attr.getCount());
private String getAttribute(List<OpenIDAttribute> attributes, String attributeName) { String attributeValue = ""; for (OpenIDAttribute attribute : attributes) { if (attribute.getName() != null && (attribute.getName().equals("ax" + attributeName) || attribute.getName().equals("ae" + attributeName))) { attributeValue = attribute.getValues().get(0); } } return attributeValue; }
public Builder withAuthenticationToken(OpenIDAuthenticationToken token) { this.username = token.getIdentityUrl(); for (OpenIDAttribute attribute : token.getAttributes()) { if (attribute.getName().equals("email")) { this.email = attribute.getValues().get(0); } if (attribute.getName().equals("firstname")) { this.firstname = attribute.getValues().get(0); } if (attribute.getName().equals("lastname")) { this.lastname = attribute.getValues().get(0); } if (attribute.getName().equals("fullname")) { this.fullname = attribute.getValues().get(0); } } return this; }
String displayName = null; for (OpenIDAttribute attribute : attributes) { if ("email".equals(attribute.getName()) && !attribute.getValues().isEmpty()) { email = attribute.getValues().get(0); } else if ("firstname".equals(attribute.getName()) && !attribute.getValues().isEmpty()) { firstName = attribute.getValues().get(0); } else if ("lastname".equals(attribute.getName()) && !attribute.getValues().isEmpty()) { lastName = attribute.getValues().get(0); } else if ("fullname".equals(attribute.getName()) && !attribute.getValues().isEmpty()) { displayName = attribute.getValues().get(0);
if (attribute.getName().equals("email")) { return attribute.getValues().get(0);
if (attribute.getName().equals("email")) { email = attribute.getValues().get(0); if (attribute.getName().equals("firstname")) { firstName = attribute.getValues().get(0); if (attribute.getName().equals("lastname")) { lastName = attribute.getValues().get(0); if (attribute.getName().equals("fullname")) { fullName = attribute.getValues().get(0);
if (attribute.getName().equals("email")) { email = attribute.getValues().get(0); if (attribute.getName().equals("firstname")) { firstName = attribute.getValues().get(0); if (attribute.getName().equals("lastname")) { lastName = attribute.getValues().get(0); if (attribute.getName().equals("fullname")) { fullName = attribute.getValues().get(0);
if (attribute.getName().equals("email")) { email = attribute.getValues().get(0); if (attribute.getName().equals("firstname")) { firstName = attribute.getValues().get(0); if (attribute.getName().equals("lastname")) { lastName = attribute.getValues().get(0); if (attribute.getName().equals("fullname")) { fullName = attribute.getValues().get(0);
+ " to fetch request"); fetchRequest.addAttribute(attr.getName(), attr.getType(), attr.isRequired(), attr.getCount());