|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.social.tripit.connect.TripItApiAdapter
public class TripItApiAdapter
TripIt ApiAdapter implementation.
Constructor Summary | |
---|---|
TripItApiAdapter()
|
Method Summary | |
---|---|
UserProfile |
fetchUserProfile(TripItApi api)
Implements Connection.fetchUserProfile() for connections to the given API. |
void |
setConnectionValues(TripItApi api,
ConnectionValues values)
Sets values for ConnectionKey.getProviderUserId() , Connection.getDisplayName() ,
Connection.getProfileUrl() , and Connection.getImageUrl() for connections to the given API. |
boolean |
test(TripItApi api)
Implements Connection.test() for connections to the given API. |
void |
updateStatus(TripItApi api,
java.lang.String message)
Implements Connection.updateStatus(String) for connections to the given API. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TripItApiAdapter()
Method Detail |
---|
public boolean test(TripItApi api)
ApiAdapter
Connection.test()
for connections to the given API.
test
in interface ApiAdapter<TripItApi>
api
- the API binding
public void setConnectionValues(TripItApi api, ConnectionValues values)
ApiAdapter
ConnectionKey.getProviderUserId()
, Connection.getDisplayName()
,
Connection.getProfileUrl()
, and Connection.getImageUrl()
for connections to the given API.
setConnectionValues
in interface ApiAdapter<TripItApi>
api
- the API bindingvalues
- the connection values to setpublic UserProfile fetchUserProfile(TripItApi api)
ApiAdapter
Connection.fetchUserProfile()
for connections to the given API.
Should never return null.
If the provider's API does not expose user profile data, this method should return UserProfile.EMPTY
.
fetchUserProfile
in interface ApiAdapter<TripItApi>
api
- the API binding
UserProfileBuilder
public void updateStatus(TripItApi api, java.lang.String message)
ApiAdapter
Connection.updateStatus(String)
for connections to the given API.
If the provider does not have a status concept calling this method should have no effect.
updateStatus
in interface ApiAdapter<TripItApi>
api
- the API bindingmessage
- the status message
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |