|
|||||||||
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.test.TestChannelType3
public class TestChannelType3
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.alfresco.service.cmr.publishing.channels.ChannelType |
---|
ChannelType.AuthStatus |
Constructor Summary | |
---|---|
TestChannelType3()
|
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 |
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 . |
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. |
void |
publish(org.alfresco.service.cmr.repository.NodeRef nodeToPublish,
java.util.Map properties)
|
void |
sendStatusUpdate(Channel channel,
java.lang.String status)
Send the specified status update to the specified channel |
void |
unpublish(org.alfresco.service.cmr.repository.NodeRef nodeToUnpublish,
java.util.Map properties)
|
Methods inherited from class org.alfresco.repo.publishing.AbstractChannelType |
---|
acceptAuthorisationCallback, getChannelService, getEncryptor, getIcon, getIconFileExtension, getNodeService, internalAcceptAuthorisation, setChannelService, setEncryptor, setNodeService |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TestChannelType3()
Method Detail |
---|
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 int getMaximumStatusLength()
AbstractChannelType
getMaximumStatusLength
in interface ChannelType
getMaximumStatusLength
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.util.Set getSupportedContentTypes()
ChannelType
getSupportedContentTypes
in interface ChannelType
getSupportedContentTypes
in class AbstractChannelType
public java.util.Set getSupportedMimeTypes()
ChannelType
getSupportedMimeTypes
in interface ChannelType
getSupportedMimeTypes
in class AbstractChannelType
public void publish(org.alfresco.service.cmr.repository.NodeRef nodeToPublish, java.util.Map properties)
publish
in interface ChannelTypePublishingOperations
publish
in class AbstractChannelType
public void unpublish(org.alfresco.service.cmr.repository.NodeRef nodeToUnpublish, java.util.Map properties)
unpublish
in interface ChannelTypePublishingOperations
unpublish
in class AbstractChannelType
public void sendStatusUpdate(Channel channel, java.lang.String status)
ChannelType
sendStatusUpdate
in interface ChannelType
sendStatusUpdate
in class AbstractChannelType
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |