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:
Externalizable,Serializable,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
-
-
Field Summary
-
Fields inherited from class org.pac4j.core.profile.BasicUserProfile
logger, SEPARATOR
-
-
Constructor Summary
Constructors Constructor Description StravaProfile()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<StravaGear>getBikes()List<StravaClub>getClubs()StringgetCountry()DategetCreatedAt()StringgetDatePreference()StringgetDisplayName()StringgetFamilyName()StringgetFirstName()IntegergetFollowerCount()IntegergetFriendCount()GendergetGender()StringgetLocation()StringgetMeasurementPreference()URIgetPictureUrl()StringgetProfileMedium()URIgetProfileUrl()IntegergetResourceState()List<StravaGear>getShoes()StringgetState()DategetUpdatedAt()BooleanisPremium()-
Methods inherited from class org.pac4j.oauth.profile.OAuth20Profile
getAccessToken, removeLoginData, setAccessToken
-
Methods inherited from class org.pac4j.core.profile.CommonProfile
getEmail, getLocale, getUsername, isExpired
-
Methods inherited from class org.pac4j.core.profile.BasicUserProfile
addAttribute, addAttributes, addAuthenticationAttribute, addAuthenticationAttributes, addPermission, addPermissions, addRole, addRoles, 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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.pac4j.core.profile.UserProfile
asPrincipal
-
-
-
-
Method Detail
-
getFirstName
public String getFirstName()
- Overrides:
getFirstNamein classCommonProfile
-
getFamilyName
public String getFamilyName()
- Overrides:
getFamilyNamein classCommonProfile
-
getDisplayName
public String getDisplayName()
- Overrides:
getDisplayNamein classCommonProfile
-
getPictureUrl
public URI getPictureUrl()
- Overrides:
getPictureUrlin classCommonProfile
-
getProfileUrl
public URI getProfileUrl()
- Overrides:
getProfileUrlin classCommonProfile
-
getLocation
public String getLocation()
- Overrides:
getLocationin classCommonProfile
-
getGender
public Gender getGender()
- Overrides:
getGenderin classCommonProfile
-
getResourceState
public Integer getResourceState()
-
getProfileMedium
public String getProfileMedium()
-
getState
public String getState()
-
getCountry
public String getCountry()
-
isPremium
public Boolean isPremium()
-
getCreatedAt
public Date getCreatedAt()
-
getUpdatedAt
public Date getUpdatedAt()
-
getFollowerCount
public Integer getFollowerCount()
-
getFriendCount
public Integer getFriendCount()
-
getDatePreference
public String getDatePreference()
-
getMeasurementPreference
public String getMeasurementPreference()
-
getBikes
public List<StravaGear> getBikes()
-
getShoes
public List<StravaGear> getShoes()
-
getClubs
public List<StravaClub> getClubs()
-
-