public class FacebookChannelType extends AbstractChannelType
ChannelType.AuthStatus, ChannelType.AuthUrlPair
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_REDIRECT_URI |
static String |
ID |
Constructor and Description |
---|
FacebookChannelType() |
Modifier and Type | Method and Description |
---|---|
boolean |
canPublish()
Does this channel type support publishing content?
|
boolean |
canPublishStatusUpdates()
Does this channel type support status updates?
|
boolean |
canUnpublish()
Does this channel type support unpublishing content? That is to say, once content has been published
to a channel of this type, can it later be removed from that channel?
|
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.
|
org.alfresco.service.namespace.QName |
getChannelNodeType()
Each channel is stored in the repository as a node.
|
String |
getId()
Returns the unique identifier of this channel type
|
String |
getNodeUrl(org.alfresco.service.cmr.repository.NodeRef node)
Returns the URL for a piece of content represented by the supplied
node . |
protected ChannelType.AuthStatus |
internalAcceptAuthorisation(Channel channel,
Map<String,String[]> callbackHeaders,
Map<String,String[]> callbackParams) |
void |
sendStatusUpdate(Channel channel,
String status)
Send the specified status update to the specified channel
|
void |
setPublishingHelper(FacebookPublishingHelper facebookPublishingHelper) |
void |
setRedirectUri(String redirectUri) |
acceptAuthorisationCallback, getChannelService, getEncryptor, getIcon, getIconFileExtension, getMaximumStatusLength, getNodeService, getSupportedContentTypes, getSupportedMimeTypes, getTitle, isHidden, publish, setChannelService, setEncryptor, setHidden, setNodeService, unpublish
public static final String ID
public static final String DEFAULT_REDIRECT_URI
public void setPublishingHelper(FacebookPublishingHelper facebookPublishingHelper)
public void setRedirectUri(String redirectUri)
public boolean canPublish()
ChannelType
public boolean canPublishStatusUpdates()
ChannelType
public boolean canUnpublish()
ChannelType
public org.alfresco.service.namespace.QName getChannelNodeType()
ChannelType
public String getId()
ChannelType
public void sendStatusUpdate(Channel channel, String status)
ChannelType
sendStatusUpdate
in interface ChannelType
sendStatusUpdate
in class AbstractChannelType
channel
- Channelstatus
- Stringpublic String getNodeUrl(org.alfresco.service.cmr.repository.NodeRef node)
ChannelType
node
.getNodeUrl
in interface ChannelType
getNodeUrl
in class AbstractChannelType
node
- The published content node in the live environment.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
Copyright © 2005–2017 Alfresco Software. All rights reserved.