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.ColorgetProfileBackgroundColor.getProfileBackgroundImageUrl.getProfileBackgroundImageUrlHttps.getProfileBackgroundTile.getProfileImageUrlHttps.org.pac4j.core.profile.ColorgetProfileLinkColor.org.pac4j.core.profile.ColorgetProfileSidebarBorderColor.org.pac4j.core.profile.ColorgetProfileSidebarFillColor.org.pac4j.core.profile.ColorgetProfileTextColor.getProfileUseBackgroundImage.getProtected.getShowAllInlineMedia.getStatusesCount.getTimeZone.getUtcOffset.getVerified.Methods inherited from class org.pac4j.oauth.profile.OAuth10Profile
getAccessSecret, removeLoginData, setAccessSecretMethods inherited from class org.pac4j.oauth.profile.OAuth20Profile
getAccessToken, getRefreshToken, setAccessToken, setRefreshTokenMethods inherited from class org.pac4j.core.profile.CommonProfile
getAttributeAsDate, getAttributeAsString, getAttributeAsType, getEmail, getFamilyName, getFirstName, getGender, getLocation, isExpired, toStringMethods inherited from class org.pac4j.core.profile.BasicUserProfile
addAttribute, addAttributes, addAuthenticationAttribute, addAuthenticationAttributes, addRole, addRoles, asPrincipal, build, build, canEqual, containsAttribute, containsAuthenticationAttribute, equals, extractAttributeValues, getAttribute, getAttribute, getAttributes, getAuthenticationAttribute, getAuthenticationAttribute, getAuthenticationAttributes, getClientName, getId, getLinkedId, getRoles, getTypedId, hashCode, isRemembered, readExternal, removeAttribute, removeAuthenticationAttribute, setClientName, setId, setLinkedId, setRemembered, setRoles, writeExternal
-
Constructor Details
-
TwitterProfile
public TwitterProfile()
-
-
Method Details
-
getDisplayName
- Overrides:
getDisplayNamein classorg.pac4j.core.profile.CommonProfile
-
getUsername
- Specified by:
getUsernamein interfaceorg.pac4j.core.profile.UserProfile- Overrides:
getUsernamein classorg.pac4j.core.profile.CommonProfile
-
getLocale
- Overrides:
getLocalein classorg.pac4j.core.profile.CommonProfile
-
getPictureUrl
- Overrides:
getPictureUrlin classorg.pac4j.core.profile.CommonProfile
-
getProfileUrl
- Overrides:
getProfileUrlin classorg.pac4j.core.profile.CommonProfile
-
getContributorsEnabled
getContributorsEnabled.
- Returns:
- a
Booleanobject
-
getCreatedAt
getCreatedAt.
- Returns:
- a
Dateobject
-
getDefaultProfile
getDefaultProfile.
- Returns:
- a
Booleanobject
-
getDefaultProfileImage
getDefaultProfileImage.
- Returns:
- a
Booleanobject
-
getDescription
getDescription.
- Returns:
- a
Stringobject
-
getFavouritesCount
getFavouritesCount.
- Returns:
- a
Integerobject
-
getFollowRequestSent
getFollowRequestSent.
- Returns:
- a
Booleanobject
-
getFollowersCount
getFollowersCount.
- Returns:
- a
Integerobject
-
getFollowing
getFollowing.
- Returns:
- a
Booleanobject
-
getFriendsCount
getFriendsCount.
- Returns:
- a
Integerobject
-
getGeoEnabled
getGeoEnabled.
- Returns:
- a
Booleanobject
-
getIsTranslator
getIsTranslator.
- Returns:
- a
Booleanobject
-
getListedCount
getListedCount.
- Returns:
- a
Integerobject
-
getNotifications
getNotifications.
- Returns:
- a
Booleanobject
-
getProfileBackgroundColor
public org.pac4j.core.profile.Color getProfileBackgroundColor()getProfileBackgroundColor.
- Returns:
- a
Colorobject
-
getProfileBackgroundImageUrl
getProfileBackgroundImageUrl.
- Returns:
- a
URIobject
-
getProfileBackgroundImageUrlHttps
getProfileBackgroundImageUrlHttps.
- Returns:
- a
URIobject
-
getProfileBackgroundTile
getProfileBackgroundTile.
- Returns:
- a
Booleanobject
-
getProfileImageUrlHttps
getProfileImageUrlHttps.
- Returns:
- a
URIobject
-
getProfileLinkColor
public org.pac4j.core.profile.Color getProfileLinkColor()getProfileLinkColor.
- Returns:
- a
Colorobject
-
getProfileSidebarBorderColor
public org.pac4j.core.profile.Color getProfileSidebarBorderColor()getProfileSidebarBorderColor.
- Returns:
- a
Colorobject
-
getProfileSidebarFillColor
public org.pac4j.core.profile.Color getProfileSidebarFillColor()getProfileSidebarFillColor.
- Returns:
- a
Colorobject
-
getProfileTextColor
public org.pac4j.core.profile.Color getProfileTextColor()getProfileTextColor.
- Returns:
- a
Colorobject
-
getProfileUseBackgroundImage
getProfileUseBackgroundImage.
- Returns:
- a
Booleanobject
-
getProtected
getProtected.
- Returns:
- a
Booleanobject
-
getShowAllInlineMedia
getShowAllInlineMedia.
- Returns:
- a
Booleanobject
-
getStatusesCount
getStatusesCount.
- Returns:
- a
Integerobject
-
getTimeZone
getTimeZone.
- Returns:
- a
Stringobject
-
getUtcOffset
getUtcOffset.
- Returns:
- a
Integerobject
-
getVerified
getVerified.
- Returns:
- a
Booleanobject
-