|
Spring Social | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A
- a strongly-typed binding to the service provider's APIpublic interface Connection<A>
A link to a service provider user.
Allows the client application to access or update user information using the provider's API.
Exposes a set of operations that are common across all service providers, including
the ability to access user profile information
and update user status
.
Method Summary | |
---|---|
ConnectionData |
createData()
Creates a data transfer object that can be used to persist the state of this connection. |
UserProfile |
fetchUserProfile()
Fetch a normalized model of the user's profile on the provider system. |
A |
getApi()
A Java binding to the service provider's native API. |
java.lang.String |
getDisplayName()
A display name or label for this connection. |
java.lang.String |
getImageUrl()
A link to a image that visualizes this connection. |
ConnectionKey |
getKey()
The key identifying this connection. |
java.lang.String |
getProfileUrl()
The public URL of the connected user's profile at the provider's site. |
boolean |
hasExpired()
Returns true if this connection has expired. |
void |
refresh()
Refresh this connection. |
void |
sync()
Sync's this connection object with the current state of the external user's profile. |
boolean |
test()
Test this connection. |
void |
updateStatus(java.lang.String message)
Update the user's status on the provider's system. |
Method Detail |
---|
ConnectionKey getKey()
java.lang.String getDisplayName()
sync()
java.lang.String getProfileUrl()
sync()
java.lang.String getImageUrl()
sync()
void sync()
boolean test()
api
will fail.
Used to proactively test authorization credentials such as an API access token before invoking the service API.
boolean hasExpired()
test()
return false, and any service API invocations fail.
If expired, you may call refresh()
to renew the connection.
Not supported by all Connection implementations; always returns false if not supported.
void refresh()
hasExpired()
returns false.
Not supported by all connection implementations; if not supported, this method is a no-op.
UserProfile fetchUserProfile()
void updateStatus(java.lang.String message)
message
- the status messageA getApi()
ConnectionData createData()
|
Spring Social | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |