public class MockChannelType extends AbstractChannelType
ChannelType.AuthStatus, ChannelType.AuthUrlPair| Constructor and Description |
|---|
MockChannelType() |
| 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.
|
Map<String,String> |
getCapabilities() |
org.alfresco.service.namespace.QName |
getChannelNodeType()
Each channel is stored in the repository as a node.
|
org.alfresco.service.namespace.QName |
getContentRootNodeType() |
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. |
Set<org.alfresco.service.namespace.QName> |
getSupportedContentTypes()
Returns the set of content types supported by channels of this type.
|
Set<String> |
getSupportedMimeTypes()
Returns the set of MIME types supported by channels of this type.
|
void |
publish(org.alfresco.service.cmr.repository.NodeRef nodeToPublish,
Map<org.alfresco.service.namespace.QName,Serializable> properties) |
void |
sendStatusUpdate(Channel channel,
String status)
Send the specified status update to the specified channel
|
void |
unpublish(org.alfresco.service.cmr.repository.NodeRef nodeToUnpublish,
Map<org.alfresco.service.namespace.QName,Serializable> properties) |
acceptAuthorisationCallback, getChannelService, getEncryptor, getIcon, getIconFileExtension, getMaximumStatusLength, getNodeService, getTitle, internalAcceptAuthorisation, isHidden, setChannelService, setEncryptor, setHidden, setNodeServicepublic static final String ID
public String getId()
public org.alfresco.service.namespace.QName getChannelNodeType()
ChannelTypepublic org.alfresco.service.namespace.QName getContentRootNodeType()
public void publish(org.alfresco.service.cmr.repository.NodeRef nodeToPublish,
Map<org.alfresco.service.namespace.QName,Serializable> properties)
publish in interface ChannelTypePublishingOperationspublish in class AbstractChannelTypepublic void unpublish(org.alfresco.service.cmr.repository.NodeRef nodeToUnpublish,
Map<org.alfresco.service.namespace.QName,Serializable> properties)
unpublish in interface ChannelTypePublishingOperationsunpublish in class AbstractChannelTypepublic void sendStatusUpdate(Channel channel, String status)
sendStatusUpdate in interface ChannelTypesendStatusUpdate in class AbstractChannelTypechannel - Channelstatus - Stringpublic boolean canPublish()
public boolean canUnpublish()
public Set<String> getSupportedMimeTypes()
getSupportedMimeTypes in interface ChannelTypegetSupportedMimeTypes in class AbstractChannelTypepublic Set<org.alfresco.service.namespace.QName> getSupportedContentTypes()
getSupportedContentTypes in interface ChannelTypegetSupportedContentTypes in class AbstractChannelTypepublic boolean canPublishStatusUpdates()
public String getNodeUrl(org.alfresco.service.cmr.repository.NodeRef node)
node.getNodeUrl in interface ChannelTypegetNodeUrl in class AbstractChannelTypenode - The published content node in the live environment.public ChannelType.AuthUrlPair getAuthorisationUrls(Channel channel, 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.Copyright © 2005–2017 Alfresco Software. All rights reserved.