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 FormUSERNAMElogger, SEPARATOR| Constructor and Description |
|---|
WordPressProfile() |
| Modifier and Type | Method and Description |
|---|---|
protected AttributesDefinition |
getAttributesDefinition() |
WordPressLinks |
getLinks() |
String |
getPictureUrl() |
Integer |
getPrimaryBlog() |
String |
getProfileUrl() |
getAccessToken, setAccessTokengetDisplayName, getEmail, getFamilyName, getFirstName, getGender, getLocale, getLocation, getUsernameaddAttribute, addAttributes, addPermission, addRole, build, getAttribute, getAttributes, getId, getPermissions, getRoles, getTypedId, hasAccess, hasAllRoles, hasAnyRole, isRemembered, setId, setRemembered, toStringprotected AttributesDefinition getAttributesDefinition()
getAttributesDefinition in class UserProfilepublic String getPictureUrl()
getPictureUrl in class CommonProfilepublic String getProfileUrl()
getProfileUrl in class CommonProfilepublic Integer getPrimaryBlog()
public WordPressLinks getLinks()
Copyright © 2015. All Rights Reserved.