Package org.pac4j.oauth.profile.twitter
Class TwitterProfile
- java.lang.Object
-
- org.pac4j.core.profile.BasicUserProfile
-
- org.pac4j.core.profile.CommonProfile
-
- org.pac4j.oauth.profile.OAuth20Profile
-
- org.pac4j.oauth.profile.OAuth10Profile
-
- org.pac4j.oauth.profile.twitter.TwitterProfile
-
- All Implemented Interfaces:
java.io.Externalizable
,java.io.Serializable
,org.pac4j.core.profile.UserProfile
public class TwitterProfile extends OAuth10Profile
This class is the user profile for Twitter with appropriate getters.
It is returned by the
TwitterClient
.- Since:
- 1.1.0
- Author:
- Jerome Leleu
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TwitterProfile()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Boolean
getContributorsEnabled()
java.util.Date
getCreatedAt()
java.lang.Boolean
getDefaultProfile()
java.lang.Boolean
getDefaultProfileImage()
java.lang.String
getDescription()
java.lang.String
getDisplayName()
java.lang.Integer
getFavouritesCount()
java.lang.Integer
getFollowersCount()
java.lang.Boolean
getFollowing()
java.lang.Boolean
getFollowRequestSent()
java.lang.Integer
getFriendsCount()
java.lang.Boolean
getGeoEnabled()
java.lang.Boolean
getIsTranslator()
java.lang.Integer
getListedCount()
java.util.Locale
getLocale()
java.lang.Boolean
getNotifications()
java.net.URI
getPictureUrl()
org.pac4j.core.profile.Color
getProfileBackgroundColor()
java.net.URI
getProfileBackgroundImageUrl()
java.net.URI
getProfileBackgroundImageUrlHttps()
java.lang.Boolean
getProfileBackgroundTile()
java.net.URI
getProfileImageUrlHttps()
org.pac4j.core.profile.Color
getProfileLinkColor()
org.pac4j.core.profile.Color
getProfileSidebarBorderColor()
org.pac4j.core.profile.Color
getProfileSidebarFillColor()
org.pac4j.core.profile.Color
getProfileTextColor()
java.net.URI
getProfileUrl()
java.lang.Boolean
getProfileUseBackgroundImage()
java.lang.Boolean
getProtected()
java.lang.Boolean
getShowAllInlineMedia()
java.lang.Integer
getStatusesCount()
java.lang.String
getTimeZone()
java.lang.String
getUsername()
java.lang.Integer
getUtcOffset()
java.lang.Boolean
getVerified()
-
Methods inherited from class org.pac4j.oauth.profile.OAuth10Profile
getAccessSecret, removeLoginData, setAccessSecret
-
Methods inherited from class org.pac4j.oauth.profile.OAuth20Profile
getAccessToken, setAccessToken
-
Methods inherited from class org.pac4j.core.profile.CommonProfile
getAttributeAsDate, getEmail, getFamilyName, getFirstName, getGender, getLocation, isExpired
-
Methods inherited from class org.pac4j.core.profile.BasicUserProfile
addAttribute, addAttributes, addAuthenticationAttribute, addAuthenticationAttributes, addPermission, addPermissions, addRole, addRoles, asPrincipal, build, build, containsAttribute, containsAuthenicationAttribute, extractAttributeValues, getAttribute, getAttribute, getAttributes, getAuthenticationAttribute, getAuthenticationAttribute, getAuthenticationAttributes, getClientName, getId, getLinkedId, getPermissions, getRoles, getTypedId, isRemembered, readExternal, removeAttribute, removeAuthenticationAttribute, setClientName, setId, setLinkedId, setPermissions, setRemembered, setRoles, toString, writeExternal
-
-
-
-
Method Detail
-
getDisplayName
public java.lang.String getDisplayName()
- Overrides:
getDisplayName
in classorg.pac4j.core.profile.CommonProfile
-
getUsername
public java.lang.String getUsername()
- Specified by:
getUsername
in interfaceorg.pac4j.core.profile.UserProfile
- Overrides:
getUsername
in classorg.pac4j.core.profile.CommonProfile
-
getLocale
public java.util.Locale getLocale()
- Overrides:
getLocale
in classorg.pac4j.core.profile.CommonProfile
-
getPictureUrl
public java.net.URI getPictureUrl()
- Overrides:
getPictureUrl
in classorg.pac4j.core.profile.CommonProfile
-
getProfileUrl
public java.net.URI getProfileUrl()
- Overrides:
getProfileUrl
in classorg.pac4j.core.profile.CommonProfile
-
getContributorsEnabled
public java.lang.Boolean getContributorsEnabled()
-
getCreatedAt
public java.util.Date getCreatedAt()
-
getDefaultProfile
public java.lang.Boolean getDefaultProfile()
-
getDefaultProfileImage
public java.lang.Boolean getDefaultProfileImage()
-
getDescription
public java.lang.String getDescription()
-
getFavouritesCount
public java.lang.Integer getFavouritesCount()
-
getFollowRequestSent
public java.lang.Boolean getFollowRequestSent()
-
getFollowersCount
public java.lang.Integer getFollowersCount()
-
getFollowing
public java.lang.Boolean getFollowing()
-
getFriendsCount
public java.lang.Integer getFriendsCount()
-
getGeoEnabled
public java.lang.Boolean getGeoEnabled()
-
getIsTranslator
public java.lang.Boolean getIsTranslator()
-
getListedCount
public java.lang.Integer getListedCount()
-
getNotifications
public java.lang.Boolean getNotifications()
-
getProfileBackgroundColor
public org.pac4j.core.profile.Color getProfileBackgroundColor()
-
getProfileBackgroundImageUrl
public java.net.URI getProfileBackgroundImageUrl()
-
getProfileBackgroundImageUrlHttps
public java.net.URI getProfileBackgroundImageUrlHttps()
-
getProfileBackgroundTile
public java.lang.Boolean getProfileBackgroundTile()
-
getProfileImageUrlHttps
public java.net.URI getProfileImageUrlHttps()
-
getProfileLinkColor
public org.pac4j.core.profile.Color getProfileLinkColor()
-
getProfileSidebarBorderColor
public org.pac4j.core.profile.Color getProfileSidebarBorderColor()
-
getProfileSidebarFillColor
public org.pac4j.core.profile.Color getProfileSidebarFillColor()
-
getProfileTextColor
public org.pac4j.core.profile.Color getProfileTextColor()
-
getProfileUseBackgroundImage
public java.lang.Boolean getProfileUseBackgroundImage()
-
getProtected
public java.lang.Boolean getProtected()
-
getShowAllInlineMedia
public java.lang.Boolean getShowAllInlineMedia()
-
getStatusesCount
public java.lang.Integer getStatusesCount()
-
getTimeZone
public java.lang.String getTimeZone()
-
getUtcOffset
public java.lang.Integer getUtcOffset()
-
getVerified
public java.lang.Boolean getVerified()
-
-