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:
Externalizable
,Serializable
,org.pac4j.core.profile.UserProfile
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:
-
Field Summary
Fields inherited from class org.pac4j.core.profile.BasicUserProfile
logger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetContributorsEnabled.getCreatedAt.getDefaultProfile.getDefaultProfileImage.getDescription.getFavouritesCount.getFollowersCount.getFollowing.getFollowRequestSent.getFriendsCount.getGeoEnabled.getIsTranslator.getListedCount.getNotifications.org.pac4j.core.profile.Color
getProfileBackgroundColor.getProfileBackgroundImageUrl.getProfileBackgroundImageUrlHttps.getProfileBackgroundTile.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.getProfileUseBackgroundImage.getProtected.getShowAllInlineMedia.getStatusesCount.getTimeZone.getUtcOffset.getVerified.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, toString
Methods inherited from class org.pac4j.core.profile.BasicUserProfile
addAttribute, addAttributes, addAuthenticationAttribute, addAuthenticationAttributes, addRole, addRoles, asPrincipal, build, build, containsAttribute, containsAuthenticationAttribute, extractAttributeValues, getAttribute, getAttribute, getAttributes, getAuthenticationAttribute, getAuthenticationAttribute, getAuthenticationAttributes, getClientName, getId, getLinkedId, getRoles, getTypedId, isRemembered, readExternal, removeAttribute, removeAuthenticationAttribute, setClientName, setId, setLinkedId, setRemembered, setRoles, writeExternal
-
Constructor Details
-
TwitterProfile
public TwitterProfile()
-
-
Method Details
-
getDisplayName
- Overrides:
getDisplayName
in classorg.pac4j.core.profile.CommonProfile
-
getUsername
- Specified by:
getUsername
in interfaceorg.pac4j.core.profile.UserProfile
- Overrides:
getUsername
in classorg.pac4j.core.profile.CommonProfile
-
getLocale
- Overrides:
getLocale
in classorg.pac4j.core.profile.CommonProfile
-
getPictureUrl
- Overrides:
getPictureUrl
in classorg.pac4j.core.profile.CommonProfile
-
getProfileUrl
- Overrides:
getProfileUrl
in classorg.pac4j.core.profile.CommonProfile
-
getContributorsEnabled
getContributorsEnabled.
- Returns:
- a
Boolean
object
-
getCreatedAt
getCreatedAt.
- Returns:
- a
Date
object
-
getDefaultProfile
getDefaultProfile.
- Returns:
- a
Boolean
object
-
getDefaultProfileImage
getDefaultProfileImage.
- Returns:
- a
Boolean
object
-
getDescription
getDescription.
- Returns:
- a
String
object
-
getFavouritesCount
getFavouritesCount.
- Returns:
- a
Integer
object
-
getFollowRequestSent
getFollowRequestSent.
- Returns:
- a
Boolean
object
-
getFollowersCount
getFollowersCount.
- Returns:
- a
Integer
object
-
getFollowing
getFollowing.
- Returns:
- a
Boolean
object
-
getFriendsCount
getFriendsCount.
- Returns:
- a
Integer
object
-
getGeoEnabled
getGeoEnabled.
- Returns:
- a
Boolean
object
-
getIsTranslator
getIsTranslator.
- Returns:
- a
Boolean
object
-
getListedCount
getListedCount.
- Returns:
- a
Integer
object
-
getNotifications
getNotifications.
- Returns:
- a
Boolean
object
-
getProfileBackgroundColor
public org.pac4j.core.profile.Color getProfileBackgroundColor()getProfileBackgroundColor.
- Returns:
- a
Color
object
-
getProfileBackgroundImageUrl
getProfileBackgroundImageUrl.
- Returns:
- a
URI
object
-
getProfileBackgroundImageUrlHttps
getProfileBackgroundImageUrlHttps.
- Returns:
- a
URI
object
-
getProfileBackgroundTile
getProfileBackgroundTile.
- Returns:
- a
Boolean
object
-
getProfileImageUrlHttps
getProfileImageUrlHttps.
- Returns:
- a
URI
object
-
getProfileLinkColor
public org.pac4j.core.profile.Color getProfileLinkColor()getProfileLinkColor.
- Returns:
- a
Color
object
-
getProfileSidebarBorderColor
public org.pac4j.core.profile.Color getProfileSidebarBorderColor()getProfileSidebarBorderColor.
- Returns:
- a
Color
object
-
getProfileSidebarFillColor
public org.pac4j.core.profile.Color getProfileSidebarFillColor()getProfileSidebarFillColor.
- Returns:
- a
Color
object
-
getProfileTextColor
public org.pac4j.core.profile.Color getProfileTextColor()getProfileTextColor.
- Returns:
- a
Color
object
-
getProfileUseBackgroundImage
getProfileUseBackgroundImage.
- Returns:
- a
Boolean
object
-
getProtected
getProtected.
- Returns:
- a
Boolean
object
-
getShowAllInlineMedia
getShowAllInlineMedia.
- Returns:
- a
Boolean
object
-
getStatusesCount
getStatusesCount.
- Returns:
- a
Integer
object
-
getTimeZone
getTimeZone.
- Returns:
- a
String
object
-
getUtcOffset
getUtcOffset.
- Returns:
- a
Integer
object
-
getVerified
getVerified.
- Returns:
- a
Boolean
object
-