Package org.pac4j.oauth.profile.strava
Class StravaProfile
- java.lang.Object
-
- org.pac4j.core.profile.BasicUserProfile
-
- org.pac4j.core.profile.CommonProfile
-
- org.pac4j.oauth.profile.OAuth20Profile
-
- org.pac4j.oauth.profile.strava.StravaProfile
-
- All Implemented Interfaces:
java.io.Externalizable,java.io.Serializable,org.pac4j.core.profile.UserProfile
public class StravaProfile extends OAuth20Profile
This class is the user profile for Strava with appropriate getters.
It is returned by the
StravaClient.- Since:
- 1.7.0
- Author:
- Adrian Papusoi
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StravaProfile()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<StravaGear>getBikes()java.util.List<StravaClub>getClubs()java.lang.StringgetCountry()java.util.DategetCreatedAt()java.lang.StringgetDatePreference()java.lang.StringgetDisplayName()java.lang.StringgetFamilyName()java.lang.StringgetFirstName()java.lang.IntegergetFollowerCount()java.lang.IntegergetFriendCount()org.pac4j.core.profile.GendergetGender()java.lang.StringgetLocation()java.lang.StringgetMeasurementPreference()java.net.URIgetPictureUrl()java.lang.StringgetProfileMedium()java.net.URIgetProfileUrl()java.lang.IntegergetResourceState()java.util.List<StravaGear>getShoes()java.lang.StringgetState()java.util.DategetUpdatedAt()java.lang.BooleanisPremium()-
Methods inherited from class org.pac4j.oauth.profile.OAuth20Profile
getAccessToken, getRefreshToken, removeLoginData, setAccessToken, setRefreshToken
-
Methods inherited from class org.pac4j.core.profile.CommonProfile
getAttributeAsDate, getEmail, getLocale, getUsername, 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
-
getFirstName
public java.lang.String getFirstName()
- Overrides:
getFirstNamein classorg.pac4j.core.profile.CommonProfile
-
getFamilyName
public java.lang.String getFamilyName()
- Overrides:
getFamilyNamein classorg.pac4j.core.profile.CommonProfile
-
getDisplayName
public java.lang.String getDisplayName()
- Overrides:
getDisplayNamein 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
-
getLocation
public java.lang.String getLocation()
- Overrides:
getLocationin classorg.pac4j.core.profile.CommonProfile
-
getGender
public org.pac4j.core.profile.Gender getGender()
- Overrides:
getGenderin classorg.pac4j.core.profile.CommonProfile
-
getResourceState
public java.lang.Integer getResourceState()
-
getProfileMedium
public java.lang.String getProfileMedium()
-
getState
public java.lang.String getState()
-
getCountry
public java.lang.String getCountry()
-
isPremium
public java.lang.Boolean isPremium()
-
getCreatedAt
public java.util.Date getCreatedAt()
-
getUpdatedAt
public java.util.Date getUpdatedAt()
-
getFollowerCount
public java.lang.Integer getFollowerCount()
-
getFriendCount
public java.lang.Integer getFriendCount()
-
getDatePreference
public java.lang.String getDatePreference()
-
getMeasurementPreference
public java.lang.String getMeasurementPreference()
-
getBikes
public java.util.List<StravaGear> getBikes()
-
getShoes
public java.util.List<StravaGear> getShoes()
-
getClubs
public java.util.List<StravaClub> getClubs()
-
-