org.alfresco.repo.publishing.twitter
Class TwitterChannelType

java.lang.Object
  extended by org.alfresco.repo.publishing.AbstractChannelType
      extended by org.alfresco.repo.publishing.AbstractOAuth1ChannelType
          extended by org.alfresco.repo.publishing.twitter.TwitterChannelType
All Implemented Interfaces:
ChannelTypePublishingOperations, ChannelType

public class TwitterChannelType
extends AbstractOAuth1ChannelType

Since:
4.0

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.alfresco.service.cmr.publishing.channels.ChannelType
ChannelType.AuthStatus
 
Field Summary
static java.lang.String ID
           
 
Constructor Summary
TwitterChannelType()
           
 
Method Summary
 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?
 org.alfresco.service.namespace.QName getChannelNodeType()
          Each channel is stored in the repository as a node.
 java.lang.String getId()
          Returns the unique identifier of this channel type
 int getMaximumStatusLength()
          If this channel type supports status updates then this operation returns the maximum permitted length of those status updates.
 java.lang.String getNodeUrl(org.alfresco.service.cmr.repository.NodeRef node)
          Returns the URL for a piece of content represented by the supplied node.
 void sendStatusUpdate(Channel channel, java.lang.String status)
          Send the specified status update to the specified channel
 
Methods inherited from class org.alfresco.repo.publishing.AbstractOAuth1ChannelType
getAuthorisationUrl, getConnectionForChannel, getOAuth1Parameters, getOAuthVerifierParamName, internalAcceptAuthorisation, setConnectionFactory
 
Methods inherited from class org.alfresco.repo.publishing.AbstractChannelType
acceptAuthorisationCallback, getChannelService, getEncryptor, getIcon, getIconFileExtension, getNodeService, getSupportedContentTypes, getSupportedMimeTypes, publish, setChannelService, setEncryptor, setNodeService, unpublish
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID

public static final java.lang.String ID
See Also:
Constant Field Values
Constructor Detail

TwitterChannelType

public TwitterChannelType()
Method Detail

canPublish

public boolean canPublish()
Description copied from interface: ChannelType
Does this channel type support publishing content?

Returns:

canPublishStatusUpdates

public boolean canPublishStatusUpdates()
Description copied from interface: ChannelType
Does this channel type support status updates?

Returns:

canUnpublish

public boolean canUnpublish()
Description copied from interface: ChannelType
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?

Returns:

getChannelNodeType

public org.alfresco.service.namespace.QName getChannelNodeType()
Description copied from interface: ChannelType
Each channel is stored in the repository as a node. This operation returns the qualified name of the type of that node.

Returns:

getId

public java.lang.String getId()
Description copied from interface: ChannelType
Returns the unique identifier of this channel type

Returns:

getMaximumStatusLength

public int getMaximumStatusLength()
Description copied from class: AbstractChannelType
If this channel type supports status updates then this operation returns the maximum permitted length of those status updates.

Specified by:
getMaximumStatusLength in interface ChannelType
Overrides:
getMaximumStatusLength in class AbstractChannelType
Returns:
The maximum length of status updates on channels of this type. A value of zero indicates that there is no maximum.

sendStatusUpdate

public void sendStatusUpdate(Channel channel,
                             java.lang.String status)
Description copied from interface: ChannelType
Send the specified status update to the specified channel

Specified by:
sendStatusUpdate in interface ChannelType
Overrides:
sendStatusUpdate in class AbstractChannelType

getNodeUrl

public java.lang.String getNodeUrl(org.alfresco.service.cmr.repository.NodeRef node)
Description copied from interface: ChannelType
Returns the URL for a piece of content represented by the supplied node.

Specified by:
getNodeUrl in interface ChannelType
Overrides:
getNodeUrl in class AbstractChannelType
Parameters:
node - The published content node in the live environment.
Returns:
a URL for the published content.


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.