org.alfresco.repo.publishing
Class PublishingEventHelper

java.lang.Object
  extended by org.alfresco.repo.publishing.PublishingEventHelper

public class PublishingEventHelper
extends java.lang.Object

Since:
4.0

Field Summary
static java.lang.String WORKFLOW_DEFINITION_NAME
           
 
Constructor Summary
PublishingEventHelper()
           
 
Method Summary
 void cancelEvent(java.lang.String id)
           
 org.alfresco.service.cmr.repository.NodeRef createNode(org.alfresco.service.cmr.repository.NodeRef queueNode, PublishingDetails details)
           
 PublishingDetails createPublishingDetails()
           
 java.util.List findPublishingEventNodes(org.alfresco.service.cmr.repository.NodeRef queue, PublishingEventFilter filter)
           
 java.util.List findPublishingEvents(org.alfresco.service.cmr.repository.NodeRef queue, PublishingEventFilter filter)
           
 java.util.List getEventNodesForPublishedNode(org.alfresco.service.cmr.repository.NodeRef queue, org.alfresco.service.cmr.repository.NodeRef publishedNode)
          Returns a List of the NodeRefs representing PublishingEvents that were scheduled to publish the specified publishedNode.
 java.util.List getEventNodesForPublishedNodes(org.alfresco.service.cmr.repository.NodeRef queue, java.util.Collection publishedNodes)
          Returns a List of the NodeRefs representing PublishingEvents that were scheduled to publish at least one of the specified publishedNodes.
 java.util.List getEventNodesForPublishedNodes(org.alfresco.service.cmr.repository.NodeRef queue, org.alfresco.service.cmr.repository.NodeRef[] publishedNodes)
          Returns a List of the NodeRefs representing PublishingEvents that were scheduled to publish at least one of the specified publishedNodes.
 java.util.List getEventNodesForUnpublishedNode(org.alfresco.service.cmr.repository.NodeRef queue, org.alfresco.service.cmr.repository.NodeRef unpublishedNode)
          Returns a List of the NodeRefs representing PublishingEvents that were scheduled to unpublish the specified unpublishedNode.
 java.util.List getEventNodesForUnpublishedNodes(org.alfresco.service.cmr.repository.NodeRef queue, java.util.Collection unpublishedNodes)
          Returns a List of the NodeRefs representing PublishingEvents that were scheduled to unpublish at least one of the specified unpublishedNodes.
 org.alfresco.service.cmr.repository.NodeRef getLastPublishEvent(org.alfresco.service.cmr.repository.NodeRef source, org.alfresco.service.cmr.repository.NodeRef channelNode)
           
 PublishingEvent getPublishingEvent(org.alfresco.service.cmr.repository.NodeRef eventNode)
           
 PublishingEvent getPublishingEvent(java.lang.String id)
           
 org.alfresco.service.cmr.repository.NodeRef getPublishingEventNode(java.lang.String id)
           
 java.util.List getPublishingEvents(java.util.List eventNodes)
           
 java.util.Calendar getScheduledTime(java.util.Map eventProperties)
           
 java.util.Calendar getScheduledTime(org.alfresco.service.cmr.repository.NodeRef eventNode)
           
 org.alfresco.service.cmr.repository.AssociationRef linkToLastEvent(org.alfresco.service.cmr.repository.NodeRef publishedNode, org.alfresco.service.cmr.repository.NodeRef eventNode)
           
 void setContentService(ContentService contentService)
           
 void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
           
 void setPermissionService(org.alfresco.service.cmr.security.PermissionService permissionService)
           
 void setSerializer(NodeSnapshotSerializer serializer)
           
 void setTransferManifestNodeFactory(TransferManifestNodeFactory transferManifestNodeFactory)
           
 void setVersionService(VersionService versionService)
           
 void setWorkflowEngineId(java.lang.String workflowEngineId)
           
 void setWorkflowService(WorkflowService workflowService)
           
 java.lang.String startPublishingWorkflow(org.alfresco.service.cmr.repository.NodeRef eventNode, java.util.Calendar scheduledTime)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WORKFLOW_DEFINITION_NAME

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

PublishingEventHelper

public PublishingEventHelper()
Method Detail

setNodeService

public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
Parameters:
nodeService - the nodeService to set

setContentService

public void setContentService(ContentService contentService)
Parameters:
contentService - the contentService to set

setTransferManifestNodeFactory

public void setTransferManifestNodeFactory(TransferManifestNodeFactory transferManifestNodeFactory)
Parameters:
transferManifestNodeFactory - the transferManifestNodeFactory to set

setVersionService

public void setVersionService(VersionService versionService)
Parameters:
versionService - the versionService to set

setWorkflowService

public void setWorkflowService(WorkflowService workflowService)
Parameters:
workflowService - the workflowService to set

setWorkflowEngineId

public void setWorkflowEngineId(java.lang.String workflowEngineId)
Parameters:
workflowEngineId - the workflowEngineId to set

setSerializer

public void setSerializer(NodeSnapshotSerializer serializer)
Parameters:
serializer - the serializer to set

setPermissionService

public void setPermissionService(org.alfresco.service.cmr.security.PermissionService permissionService)
Parameters:
permissionService - the permissionService to set

getPublishingEvent

public PublishingEvent getPublishingEvent(org.alfresco.service.cmr.repository.NodeRef eventNode)
                                   throws org.alfresco.error.AlfrescoRuntimeException
Throws:
org.alfresco.error.AlfrescoRuntimeException

getPublishingEvents

public java.util.List getPublishingEvents(java.util.List eventNodes)

createNode

public org.alfresco.service.cmr.repository.NodeRef createNode(org.alfresco.service.cmr.repository.NodeRef queueNode,
                                                              PublishingDetails details)
                                                       throws java.lang.Exception
Throws:
java.lang.Exception

findPublishingEventNodes

public java.util.List findPublishingEventNodes(org.alfresco.service.cmr.repository.NodeRef queue,
                                               PublishingEventFilter filter)

getEventNodesForPublishedNodes

public java.util.List getEventNodesForPublishedNodes(org.alfresco.service.cmr.repository.NodeRef queue,
                                                     org.alfresco.service.cmr.repository.NodeRef[] publishedNodes)
Returns a List of the NodeRefs representing PublishingEvents that were scheduled to publish at least one of the specified publishedNodes.

Parameters:
queue -
publishedNodes -
Returns:

getEventNodesForPublishedNodes

public java.util.List getEventNodesForPublishedNodes(org.alfresco.service.cmr.repository.NodeRef queue,
                                                     java.util.Collection publishedNodes)
Returns a List of the NodeRefs representing PublishingEvents that were scheduled to publish at least one of the specified publishedNodes.

Parameters:
queue -
publishedNodes -
Returns:

getEventNodesForUnpublishedNodes

public java.util.List getEventNodesForUnpublishedNodes(org.alfresco.service.cmr.repository.NodeRef queue,
                                                       java.util.Collection unpublishedNodes)
Returns a List of the NodeRefs representing PublishingEvents that were scheduled to unpublish at least one of the specified unpublishedNodes.

Parameters:
queue -
unpublishedNodes -
Returns:

getEventNodesForPublishedNode

public java.util.List getEventNodesForPublishedNode(org.alfresco.service.cmr.repository.NodeRef queue,
                                                    org.alfresco.service.cmr.repository.NodeRef publishedNode)
Returns a List of the NodeRefs representing PublishingEvents that were scheduled to publish the specified publishedNode.

Parameters:
queue -
publishedNode -
Returns:

getEventNodesForUnpublishedNode

public java.util.List getEventNodesForUnpublishedNode(org.alfresco.service.cmr.repository.NodeRef queue,
                                                      org.alfresco.service.cmr.repository.NodeRef unpublishedNode)
Returns a List of the NodeRefs representing PublishingEvents that were scheduled to unpublish the specified unpublishedNode.

Parameters:
queue -
unpublishedNode -
Returns:

findPublishingEvents

public java.util.List findPublishingEvents(org.alfresco.service.cmr.repository.NodeRef queue,
                                           PublishingEventFilter filter)

getPublishingEvent

public PublishingEvent getPublishingEvent(java.lang.String id)

getPublishingEventNode

public org.alfresco.service.cmr.repository.NodeRef getPublishingEventNode(java.lang.String id)

startPublishingWorkflow

public java.lang.String startPublishingWorkflow(org.alfresco.service.cmr.repository.NodeRef eventNode,
                                                java.util.Calendar scheduledTime)

getScheduledTime

public java.util.Calendar getScheduledTime(org.alfresco.service.cmr.repository.NodeRef eventNode)

getScheduledTime

public java.util.Calendar getScheduledTime(java.util.Map eventProperties)

getLastPublishEvent

public org.alfresco.service.cmr.repository.NodeRef getLastPublishEvent(org.alfresco.service.cmr.repository.NodeRef source,
                                                                       org.alfresco.service.cmr.repository.NodeRef channelNode)

cancelEvent

public void cancelEvent(java.lang.String id)

linkToLastEvent

public org.alfresco.service.cmr.repository.AssociationRef linkToLastEvent(org.alfresco.service.cmr.repository.NodeRef publishedNode,
                                                                          org.alfresco.service.cmr.repository.NodeRef eventNode)

createPublishingDetails

public PublishingDetails createPublishingDetails()


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