|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.repo.publishing.AbstractChannelType
org.alfresco.repo.publishing.facebook.FacebookChannelType
public class FacebookChannelType
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.alfresco.service.cmr.publishing.channels.ChannelType |
---|
ChannelType.AuthStatus |
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_REDIRECT_URI
|
static java.lang.String |
ID
|
Constructor Summary | |
---|---|
FacebookChannelType()
|
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? |
java.lang.String |
getAuthorisationUrl(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. |
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 |
java.lang.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,
java.util.Map callbackHeaders,
java.util.Map callbackParams)
|
void |
sendStatusUpdate(Channel channel,
java.lang.String status)
Send the specified status update to the specified channel |
void |
setPublishingHelper(FacebookPublishingHelper facebookPublishingHelper)
|
void |
setRedirectUri(java.lang.String redirectUri)
|
Methods inherited from class org.alfresco.repo.publishing.AbstractChannelType |
---|
acceptAuthorisationCallback, getChannelService, getEncryptor, getIcon, getIconFileExtension, getMaximumStatusLength, 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 |
---|
public static final java.lang.String ID
public static final java.lang.String DEFAULT_REDIRECT_URI
Constructor Detail |
---|
public FacebookChannelType()
Method Detail |
---|
public void setPublishingHelper(FacebookPublishingHelper facebookPublishingHelper)
public void setRedirectUri(java.lang.String redirectUri)
public boolean canPublish()
ChannelType
public boolean canPublishStatusUpdates()
ChannelType
public boolean canUnpublish()
ChannelType
public org.alfresco.service.namespace.QName getChannelNodeType()
ChannelType
public java.lang.String getId()
ChannelType
public void sendStatusUpdate(Channel channel, java.lang.String status)
ChannelType
sendStatusUpdate
in interface ChannelType
sendStatusUpdate
in class AbstractChannelType
public java.lang.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 java.lang.String getAuthorisationUrl(Channel channel, java.lang.String callbackUrl)
ChannelType
getAuthorisationUrl
in interface ChannelType
getAuthorisationUrl
in class AbstractChannelType
channel
- The channel that needs to be authorised.callbackUrl
- Where the service provider represented by this channel type should redirect the user to once
the authorisation procedure is complete.
protected ChannelType.AuthStatus internalAcceptAuthorisation(Channel channel, java.util.Map callbackHeaders, java.util.Map callbackParams)
internalAcceptAuthorisation
in class AbstractChannelType
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |