public abstract class AbstractChannelType extends java.lang.Object implements ChannelType, ChannelTypePublishingOperations
ChannelType.AuthStatus, ChannelType.AuthUrlPair| Constructor and Description |
|---|
AbstractChannelType() |
| Modifier and Type | Method and Description |
|---|---|
ChannelType.AuthStatus |
acceptAuthorisationCallback(Channel channel,
java.util.Map callbackHeaders,
java.util.Map callbackParams)
This operation is called after the service provider represented by this channel type has redirected the user
back to Alfresco.
|
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 ChannelService |
getChannelService() |
protected MetadataEncryptor |
getEncryptor() |
org.springframework.core.io.Resource |
getIcon(java.lang.String sizeSuffix)
Obtain the resource that represents an icon for this channel type.
|
java.lang.String |
getIconFileExtension() |
int |
getMaximumStatusLength()
If this channel type supports status updates then this operation returns the maximum permitted
length of those status updates.
|
protected org.alfresco.service.cmr.repository.NodeService |
getNodeService() |
java.lang.String |
getNodeUrl(org.alfresco.service.cmr.repository.NodeRef node)
Returns the URL for a piece of content represented by the supplied
node. |
java.util.Set |
getSupportedContentTypes()
Returns the set of content types supported by channels of this type.
|
java.util.Set |
getSupportedMimeTypes()
Returns the set of MIME types supported by channels of this type.
|
java.lang.String |
getTitle()
Returns the title (display name) of this channel type.
|
protected ChannelType.AuthStatus |
internalAcceptAuthorisation(Channel channel,
java.util.Map callbackHeaders,
java.util.Map callbackParams) |
void |
publish(org.alfresco.service.cmr.repository.NodeRef nodeToPublish,
java.util.Map channelProperties) |
void |
sendStatusUpdate(Channel channel,
java.lang.String status)
Send the specified status update to the specified channel
|
void |
setChannelService(ChannelService channelService) |
void |
setEncryptor(MetadataEncryptor encryptor) |
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService) |
void |
unpublish(org.alfresco.service.cmr.repository.NodeRef nodeToUnpublish,
java.util.Map channelProperties) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanPublish, canPublishStatusUpdates, canUnpublish, getChannelNodeType, getIdpublic void setChannelService(ChannelService channelService)
protected ChannelService getChannelService()
public void setEncryptor(MetadataEncryptor encryptor)
protected MetadataEncryptor getEncryptor()
protected org.alfresco.service.cmr.repository.NodeService getNodeService()
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
public java.lang.String getTitle()
ChannelTypegetTitle in interface ChannelTypepublic int getMaximumStatusLength()
getMaximumStatusLength in interface ChannelTypepublic ChannelType.AuthUrlPair getAuthorisationUrls(Channel channel, java.lang.String callbackUrl)
ChannelTypegetAuthorisationUrls in interface ChannelTypechannel - 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.public final ChannelType.AuthStatus acceptAuthorisationCallback(Channel channel, java.util.Map callbackHeaders, java.util.Map callbackParams)
ChannelTypeacceptAuthorisationCallback in interface ChannelTypechannel - The channel related to this authorisation callback.callbackHeaders - All the HTTP headers received in the callback.callbackParams - All the HTTP parameters received in the callback.protected ChannelType.AuthStatus internalAcceptAuthorisation(Channel channel, java.util.Map callbackHeaders, java.util.Map callbackParams)
public org.springframework.core.io.Resource getIcon(java.lang.String sizeSuffix)
ChannelTypegetIcon in interface ChannelTypesizeSuffix - A text representation of the icon size required. "16", "32", etc.null otherwise.public java.lang.String getIconFileExtension()
public java.util.Set getSupportedContentTypes()
ChannelTypegetSupportedContentTypes in interface ChannelTypepublic java.util.Set getSupportedMimeTypes()
ChannelTypegetSupportedMimeTypes in interface ChannelTypepublic void sendStatusUpdate(Channel channel, java.lang.String status)
ChannelTypesendStatusUpdate in interface ChannelTypepublic void publish(org.alfresco.service.cmr.repository.NodeRef nodeToPublish,
java.util.Map channelProperties)
publish in interface ChannelTypePublishingOperationspublic void unpublish(org.alfresco.service.cmr.repository.NodeRef nodeToUnpublish,
java.util.Map channelProperties)
unpublish in interface ChannelTypePublishingOperationspublic java.lang.String getNodeUrl(org.alfresco.service.cmr.repository.NodeRef node)
ChannelTypenode.getNodeUrl in interface ChannelTypenode - The published content node in the live environment.Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.