public class WordPressProfile extends OAuth20Profile
This class is the user profile for WordPress with appropriate getters.
It is returned by the WordPressClient
.
Method : | From the JSON profile response : |
---|---|
The attributes of the CommonProfile |
|
String getEmail() | the email attribute |
String getFirstName() | null |
String getFamilyName() | null |
String getDisplayName() | the display_name attribute |
String getUsername() | the username attribute |
Gender getGender() | Gender.UNSPECIFIED |
Locale getLocale() | null |
String getPictureUrl() | the avatar_URL attribute |
String getProfileUrl() | the profile_URL attribute |
String getLocation() | null |
More specific attributes | |
Integer getPrimaryBlog() | the primary_blog attribute |
WordPressLinks getLinks() | the links attribute |
WordPressClient
,
Serialized FormUSERNAME
logger, SEPARATOR
Constructor and Description |
---|
WordPressProfile() |
Modifier and Type | Method and Description |
---|---|
protected AttributesDefinition |
getAttributesDefinition()
Return the attributes definition for this user profile.
|
WordPressLinks |
getLinks() |
String |
getPictureUrl()
Return the url of the picture of the user.
|
Integer |
getPrimaryBlog() |
String |
getProfileUrl()
Return the url of the profile of the user.
|
clear, getAccessToken, setAccessToken
getDisplayName, getEmail, getFamilyName, getFirstName, getGender, getLocale, getLocation, getUsername
addAttribute, addAttributes, addPermission, addPermissions, addRole, addRoles, build, getAttribute, getAttribute, getAttributes, getId, getPermissions, getRoles, getTypedId, isRemembered, readExternal, setId, setRemembered, toString, writeExternal
protected AttributesDefinition getAttributesDefinition()
UserProfile
getAttributesDefinition
in class UserProfile
public String getPictureUrl()
CommonProfile
getPictureUrl
in class CommonProfile
public String getProfileUrl()
CommonProfile
getProfileUrl
in class CommonProfile
public Integer getPrimaryBlog()
public WordPressLinks getLinks()
Copyright © 2016. All rights reserved.