|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ProfileExternalIntegrationLogic
An interface for dealing with external integrations in Profile2
| Method Summary | |
|---|---|
ExternalIntegrationInfo |
getExternalIntegrationInfo(String userUuid)
Get the ExternalIntegrationInfo record for a user or an empty record if none. |
String |
getGoogleAuthenticationUrl()
Generate the authentication URL we need to use to present to the user |
String |
getTwitterName(ExternalIntegrationInfo info)
Gets the Twitter name associated with the stored details, if any. |
Map<String,String> |
getTwitterOAuthConsumerDetails()
Returns a map of the Twitter OAuth consumer 'key' and 'secret' |
void |
sendMessageToTwitter(String userUuid,
String message)
Send a message to twitter ( runs in a separate thread) |
boolean |
updateExternalIntegrationInfo(ExternalIntegrationInfo info)
Update a user's ExternalIntegrationInfo |
boolean |
validateTwitterCredentials(ExternalIntegrationInfo info)
Check if the stored Twitter credentials are valid. |
| Method Detail |
|---|
ExternalIntegrationInfo getExternalIntegrationInfo(String userUuid)
userUuid -
boolean updateExternalIntegrationInfo(ExternalIntegrationInfo info)
info - ExternalIntegrationInfo object for the user
Map<String,String> getTwitterOAuthConsumerDetails()
String getTwitterName(ExternalIntegrationInfo info)
info - ExternalIntegrationInfo object for the user
boolean validateTwitterCredentials(ExternalIntegrationInfo info)
info - ExternalIntegrationInfo object for the user
void sendMessageToTwitter(String userUuid,
String message)
Will only run if twitter integration is enabled globally (ie via sakai.properties) and if the user has linked their account.
Messages longer than 140 chars will be truncated to 140 chars. This is also validated client side.
userUuid - uuid of the usermessage - the messageString getGoogleAuthenticationUrl()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||