public interface ProfileExternalIntegrationLogic
| Modifier and Type | Method and Description |
|---|---|
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)
Will only run if twitter integration is enabled globally (ie via sakai.properties)
and if the user has linked their account.
|
boolean |
updateExternalIntegrationInfo(ExternalIntegrationInfo info)
Update a user's ExternalIntegrationInfo
|
boolean |
validateTwitterCredentials(ExternalIntegrationInfo info)
Check if the stored Twitter credentials are valid.
|
ExternalIntegrationInfo getExternalIntegrationInfo(String userUuid)
userUuid - boolean updateExternalIntegrationInfo(ExternalIntegrationInfo info)
info - ExternalIntegrationInfo object for the userMap<String,String> getTwitterOAuthConsumerDetails()
String getTwitterName(ExternalIntegrationInfo info)
info - ExternalIntegrationInfo object for the userboolean validateTwitterCredentials(ExternalIntegrationInfo info)
info - ExternalIntegrationInfo object for the uservoid 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()
Copyright © 2008–2018 The Sakai Foundation. All rights reserved.