A
- The API type, e.g. Twitter, Flickr, LinkedIn, etc.public abstract class AbstractOAuth1ChannelType<A> extends AbstractChannelType
ChannelType.AuthStatus, ChannelType.AuthUrlPair
Constructor and Description |
---|
AbstractOAuth1ChannelType() |
Modifier and Type | Method and Description |
---|---|
ChannelType.AuthUrlPair |
getAuthorisationUrls(Channel channel,
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<A> |
getConnectionForChannel(org.alfresco.service.cmr.repository.NodeRef channelNode) |
protected org.springframework.social.oauth1.OAuth1Parameters |
getOAuth1Parameters(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 String |
getOAuthVerifierParamName() |
protected ChannelType.AuthStatus |
internalAcceptAuthorisation(Channel channel,
Map<String,String[]> callbackHeaders,
Map<String,String[]> callbackParams) |
void |
setConnectionFactory(org.springframework.social.connect.support.OAuth1ConnectionFactory<A> connectionFactory) |
acceptAuthorisationCallback, getChannelService, getEncryptor, getIcon, getIconFileExtension, getMaximumStatusLength, getNodeService, getNodeUrl, getSupportedContentTypes, getSupportedMimeTypes, getTitle, isHidden, publish, sendStatusUpdate, setChannelService, setEncryptor, setHidden, setNodeService, unpublish
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canPublish, canPublishStatusUpdates, canUnpublish, getChannelNodeType, getId
protected org.springframework.social.connect.Connection<A> getConnectionForChannel(org.alfresco.service.cmr.repository.NodeRef channelNode)
public ChannelType.AuthUrlPair getAuthorisationUrls(Channel channel, String callbackUrl)
ChannelType
getAuthorisationUrls
in interface ChannelType
getAuthorisationUrls
in class AbstractChannelType
channel
- 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, Map<String,String[]> callbackHeaders, Map<String,String[]> callbackParams)
internalAcceptAuthorisation
in class AbstractChannelType
protected org.springframework.social.oauth1.OAuth1Parameters getOAuth1Parameters(String callbackUrl)
callbackUrl
- StringOAuth1Parameters.NONE
protected String getOAuthVerifierParamName()
public void setConnectionFactory(org.springframework.social.connect.support.OAuth1ConnectionFactory<A> connectionFactory)
connectionFactory
- the connectionFactory to setCopyright © 2005–2017 Alfresco Software. All rights reserved.