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.BooleangetContributorsEnabled()java.util.DategetCreatedAt()java.lang.BooleangetDefaultProfile()java.lang.BooleangetDefaultProfileImage()java.lang.StringgetDescription()java.lang.StringgetDisplayName()java.lang.IntegergetFavouritesCount()java.lang.IntegergetFollowersCount()java.lang.BooleangetFollowing()java.lang.BooleangetFollowRequestSent()java.lang.IntegergetFriendsCount()java.lang.BooleangetGeoEnabled()java.lang.BooleangetIsTranslator()java.lang.IntegergetListedCount()java.util.LocalegetLocale()java.lang.BooleangetNotifications()java.net.URIgetPictureUrl()org.pac4j.core.profile.ColorgetProfileBackgroundColor()java.net.URIgetProfileBackgroundImageUrl()java.net.URIgetProfileBackgroundImageUrlHttps()java.lang.BooleangetProfileBackgroundTile()java.net.URIgetProfileImageUrlHttps()org.pac4j.core.profile.ColorgetProfileLinkColor()org.pac4j.core.profile.ColorgetProfileSidebarBorderColor()org.pac4j.core.profile.ColorgetProfileSidebarFillColor()org.pac4j.core.profile.ColorgetProfileTextColor()java.net.URIgetProfileUrl()java.lang.BooleangetProfileUseBackgroundImage()java.lang.BooleangetProtected()java.lang.BooleangetShowAllInlineMedia()java.lang.IntegergetStatusesCount()java.lang.StringgetTimeZone()java.lang.StringgetUsername()java.lang.IntegergetUtcOffset()java.lang.BooleangetVerified()-
Methods inherited from class org.pac4j.oauth.profile.OAuth10Profile
getAccessSecret, removeLoginData, setAccessSecret
-
Methods inherited from class org.pac4j.oauth.profile.OAuth20Profile
getAccessToken, getRefreshToken, setAccessToken, setRefreshToken
-
Methods inherited from class org.pac4j.core.profile.CommonProfile
getAttributeAsDate, getAttributeAsString, getAttributeAsType, 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:
getDisplayNamein classorg.pac4j.core.profile.CommonProfile
-
getUsername
public java.lang.String getUsername()
- Specified by:
getUsernamein interfaceorg.pac4j.core.profile.UserProfile- Overrides:
getUsernamein classorg.pac4j.core.profile.CommonProfile
-
getLocale
public java.util.Locale getLocale()
- Overrides:
getLocalein classorg.pac4j.core.profile.CommonProfile
-
getPictureUrl
public java.net.URI getPictureUrl()
- Overrides:
getPictureUrlin classorg.pac4j.core.profile.CommonProfile
-
getProfileUrl
public java.net.URI getProfileUrl()
- Overrides:
getProfileUrlin 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()
-
-