public abstract class AbstractOAuth1ChannelType extends AbstractChannelType
ChannelType.AuthStatus, ChannelType.AuthUrlPair| Constructor and Description |
|---|
AbstractOAuth1ChannelType() |
| Modifier and Type | Method and Description |
|---|---|
ChannelType.AuthUrlPair |
getAuthorisationUrls(Channel channel,
java.lang.String callbackUrl)
When creating a new channel of this type, this operation is called to find out where the user should be taken
in order to authorise Alfresco to publish content / status updates to that channel.
|
protected org.springframework.social.connect.Connection |
getConnectionForChannel(org.alfresco.service.cmr.repository.NodeRef channelNode) |
protected org.springframework.social.oauth1.OAuth1Parameters |
getOAuth1Parameters(java.lang.String callbackUrl)
Override this method to add additonal parameters onto the URL that the user is redirected to
to authorise access to their account.
|
protected java.lang.String |
getOAuthVerifierParamName() |
protected ChannelType.AuthStatus |
internalAcceptAuthorisation(Channel channel,
java.util.Map callbackHeaders,
java.util.Map callbackParams) |
void |
setConnectionFactory(org.springframework.social.connect.support.OAuth1ConnectionFactory connectionFactory) |
acceptAuthorisationCallback, getChannelService, getEncryptor, getIcon, getIconFileExtension, getMaximumStatusLength, getNodeService, getNodeUrl, getSupportedContentTypes, getSupportedMimeTypes, getTitle, publish, sendStatusUpdate, setChannelService, setEncryptor, setNodeService, unpublishclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanPublish, canPublishStatusUpdates, canUnpublish, getChannelNodeType, getIdprotected org.springframework.social.connect.Connection getConnectionForChannel(org.alfresco.service.cmr.repository.NodeRef channelNode)
public ChannelType.AuthUrlPair getAuthorisationUrls(Channel channel, java.lang.String callbackUrl)
ChannelTypegetAuthorisationUrls in interface ChannelTypegetAuthorisationUrls in class AbstractChannelTypechannel - The channel that needs to be authorised.callbackUrl - Where the user's browser needs to send the authorisation tokens once
the authorisation procedure is complete. If possible, the authorisation URL should include this information
so the service provider can send the tokens straight back to us via the browser without any intermediate steps
being needed.protected ChannelType.AuthStatus internalAcceptAuthorisation(Channel channel, java.util.Map callbackHeaders, java.util.Map callbackParams)
internalAcceptAuthorisation in class AbstractChannelTypeprotected org.springframework.social.oauth1.OAuth1Parameters getOAuth1Parameters(java.lang.String callbackUrl)
callbackUrl - OAuth1Parameters.NONEprotected java.lang.String getOAuthVerifierParamName()
public void setConnectionFactory(org.springframework.social.connect.support.OAuth1ConnectionFactory connectionFactory)
connectionFactory - the connectionFactory to setCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.