|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.crowd.openid.server.model.profile.SREGAttributes
public class SREGAttributes
Stores a map of name-value pairs of attributes defined by the SREG specification. Also provides convenience methods for accessing the attribute values with JavaBean style getters and setters for the attributes. See http://openid.net/specs/openid-simple-registration-extension-1_0.html
Field Summary | |
---|---|
static String |
COUNTRY
|
static String |
DOB
|
static String |
EMAIL
|
static String |
FULLNAME
|
static String |
GENDER
|
static String |
LANGUAGE
|
static String |
NICKNAME
|
static String |
POSTCODE
|
static String |
TIMEZONE
|
Constructor Summary | |
---|---|
SREGAttributes()
|
|
SREGAttributes(Profile profile)
Obtain SREG attributes from a profile's attributes. |
Method Summary | |
---|---|
void |
addAttribute(String name,
String value)
Safe "put" method to attributes map. |
String |
getAttribute(String name)
|
static List |
getAttributeNames()
Returns of all SREG attribute names. |
Map |
getAttributes()
|
String |
getCountry()
|
String |
getDob()
|
int |
getDobDay()
|
int |
getDobMonth()
|
int |
getDobYear()
|
String |
getEmail()
|
String |
getFullname()
|
String |
getGender()
|
String |
getLanguage()
|
String |
getNickname()
|
String |
getPostcode()
|
String |
getTimezone()
|
void |
setAttributes(Map attributes)
|
void |
setCountry(String country)
|
void |
setDob(int day,
int month,
int year)
|
void |
setDob(String dob)
|
void |
setEmail(String email)
|
void |
setFullname(String fullname)
|
void |
setGender(String gender)
|
void |
setLanguage(String language)
|
void |
setNickname(String nickname)
|
void |
setPostcode(String postcode)
|
void |
setTimezone(String timezone)
|
Set |
toAttributes()
Converts the SREG attributes to a set of Attributes. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String NICKNAME
public static final String EMAIL
public static final String FULLNAME
public static final String DOB
public static final String GENDER
public static final String POSTCODE
public static final String COUNTRY
public static final String LANGUAGE
public static final String TIMEZONE
Constructor Detail |
---|
public SREGAttributes()
public SREGAttributes(Profile profile)
profile
- profile to search attributes.Method Detail |
---|
public void addAttribute(String name, String value)
name
- name of attribute.value
- value of attribute.public Set toAttributes()
public static List getAttributeNames()
public String getAttribute(String name)
public Map getAttributes()
public void setAttributes(Map attributes)
public String getNickname()
public void setNickname(String nickname)
public String getEmail()
public void setEmail(String email)
public String getFullname()
public void setFullname(String fullname)
public String getDob()
public void setDob(int day, int month, int year)
public int getDobDay()
public int getDobMonth()
public int getDobYear()
public void setDob(String dob)
public String getPostcode()
public void setPostcode(String postcode)
public String getGender()
public void setGender(String gender)
public String getCountry()
public void setCountry(String country)
public String getLanguage()
public void setLanguage(String language)
public String getTimezone()
public void setTimezone(String timezone)
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |