org.alfresco.repo.publishing.flickr
Class FlickrChannelType

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

public class FlickrChannelType
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
FlickrChannelType()
           
 
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
protected  org.springframework.social.oauth1.OAuth1Parameters getOAuth1Parameters(java.lang.String callbackUrl)
          Override this method to add additonal parameters onto the URL that the user is redirected to to authorise access to their account.
 java.util.Set getSupportedMimeTypes()
          Returns the set of MIME types supported by channels of this type.
 void publish(org.alfresco.service.cmr.repository.NodeRef nodeToPublish, java.util.Map channelProperties)
           
 void setContentService(ContentService contentService)
           
 void setFlickrHelper(FlickrPublishingHelper flickrHelper)
           
 void setSupportedMimeTypes(java.util.Set mimeTypes)
           
 void setTaggingService(TaggingService taggingService)
           
 void unpublish(org.alfresco.service.cmr.repository.NodeRef nodeToUnpublish, java.util.Map channelProperties)
           
 
Methods inherited from class org.alfresco.repo.publishing.AbstractOAuth1ChannelType
getAuthorisationUrl, getConnectionForChannel, getOAuthVerifierParamName, internalAcceptAuthorisation, setConnectionFactory
 
Methods inherited from class org.alfresco.repo.publishing.AbstractChannelType
acceptAuthorisationCallback, getChannelService, getEncryptor, getIcon, getIconFileExtension, getMaximumStatusLength, getNodeService, getNodeUrl, getSupportedContentTypes, sendStatusUpdate, setChannelService, setEncryptor, setNodeService
 
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

FlickrChannelType

public FlickrChannelType()
Method Detail

setSupportedMimeTypes

public void setSupportedMimeTypes(java.util.Set mimeTypes)

setContentService

public void setContentService(ContentService contentService)

setTaggingService

public void setTaggingService(TaggingService taggingService)

setFlickrHelper

public void setFlickrHelper(FlickrPublishingHelper flickrHelper)

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:

getSupportedMimeTypes

public java.util.Set getSupportedMimeTypes()
Description copied from interface: ChannelType
Returns the set of MIME types supported by channels of this type.

Specified by:
getSupportedMimeTypes in interface ChannelType
Overrides:
getSupportedMimeTypes in class AbstractChannelType
Returns:
The set of MIME types supported by channels of this type or an empty set if content of any MIME type can be published.

publish

public void publish(org.alfresco.service.cmr.repository.NodeRef nodeToPublish,
                    java.util.Map channelProperties)
Specified by:
publish in interface ChannelTypePublishingOperations
Overrides:
publish in class AbstractChannelType

unpublish

public void unpublish(org.alfresco.service.cmr.repository.NodeRef nodeToUnpublish,
                      java.util.Map channelProperties)
Specified by:
unpublish in interface ChannelTypePublishingOperations
Overrides:
unpublish in class AbstractChannelType

getOAuth1Parameters

protected org.springframework.social.oauth1.OAuth1Parameters getOAuth1Parameters(java.lang.String callbackUrl)
Description copied from class: AbstractOAuth1ChannelType
Override this method to add additonal parameters onto the URL that the user is redirected to to authorise access to their account. By default, no parameters are added, but this may be useful to specify things such as the permissions being sought, and so on.

Overrides:
getOAuth1Parameters in class AbstractOAuth1ChannelType
Returns:
Do not return null. If no parameters are to be added, return OAuth1Parameters.NONE


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