public class PublishingEventHelper extends Object
Modifier and Type | Field and Description |
---|---|
static String |
WORKFLOW_DEFINITION_NAME |
Constructor and Description |
---|
PublishingEventHelper() |
Modifier and Type | Method and Description |
---|---|
void |
cancelEvent(String id) |
org.alfresco.service.cmr.repository.NodeRef |
createNode(org.alfresco.service.cmr.repository.NodeRef queueNode,
PublishingDetails details) |
PublishingDetails |
createPublishingDetails() |
List<org.alfresco.service.cmr.repository.NodeRef> |
findPublishingEventNodes(org.alfresco.service.cmr.repository.NodeRef queue,
PublishingEventFilter filter) |
List<PublishingEvent> |
findPublishingEvents(org.alfresco.service.cmr.repository.NodeRef queue,
PublishingEventFilter filter) |
List<org.alfresco.service.cmr.repository.NodeRef> |
getEventNodesForPublishedNode(org.alfresco.service.cmr.repository.NodeRef queue,
org.alfresco.service.cmr.repository.NodeRef publishedNode)
Returns a
List of the NodeRef s representing PublishingEvents that were scheduled to publish the specified publishedNode . |
List<org.alfresco.service.cmr.repository.NodeRef> |
getEventNodesForPublishedNodes(org.alfresco.service.cmr.repository.NodeRef queue,
Collection<org.alfresco.service.cmr.repository.NodeRef> publishedNodes)
Returns a
List of the NodeRef s representing PublishingEvents that were scheduled to publish at least one of the specified publishedNodes . |
List<org.alfresco.service.cmr.repository.NodeRef> |
getEventNodesForPublishedNodes(org.alfresco.service.cmr.repository.NodeRef queue,
org.alfresco.service.cmr.repository.NodeRef... publishedNodes)
Returns a
List of the NodeRef s representing PublishingEvents that were scheduled to publish at least one of the specified publishedNodes . |
List<org.alfresco.service.cmr.repository.NodeRef> |
getEventNodesForUnpublishedNode(org.alfresco.service.cmr.repository.NodeRef queue,
org.alfresco.service.cmr.repository.NodeRef unpublishedNode)
Returns a
List of the NodeRef s representing PublishingEvents that were scheduled to unpublish the specified unpublishedNode . |
List<org.alfresco.service.cmr.repository.NodeRef> |
getEventNodesForUnpublishedNodes(org.alfresco.service.cmr.repository.NodeRef queue,
Collection<org.alfresco.service.cmr.repository.NodeRef> unpublishedNodes)
Returns a
List of the NodeRef s 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(String id) |
org.alfresco.service.cmr.repository.NodeRef |
getPublishingEventNode(String id) |
List<PublishingEvent> |
getPublishingEvents(List<org.alfresco.service.cmr.repository.NodeRef> eventNodes) |
Calendar |
getScheduledTime(Map<org.alfresco.service.namespace.QName,Serializable> eventProperties) |
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 |
setExcludedAspects(Collection<String> excludedAspects)
Sets a list of excluded aspects, assumes the fully qualified name.
|
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(String workflowEngineId) |
void |
setWorkflowService(WorkflowService workflowService) |
String |
startPublishingWorkflow(org.alfresco.service.cmr.repository.NodeRef eventNode,
Calendar scheduledTime) |
public static final String WORKFLOW_DEFINITION_NAME
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
nodeService
- the nodeService to setpublic void setContentService(ContentService contentService)
contentService
- the contentService to setpublic void setTransferManifestNodeFactory(TransferManifestNodeFactory transferManifestNodeFactory)
transferManifestNodeFactory
- the transferManifestNodeFactory to setpublic void setVersionService(VersionService versionService)
versionService
- the versionService to setpublic void setWorkflowService(WorkflowService workflowService)
workflowService
- the workflowService to setpublic void setWorkflowEngineId(String workflowEngineId)
workflowEngineId
- the workflowEngineId to setpublic void setSerializer(NodeSnapshotSerializer serializer)
serializer
- the serializer to setpublic void setPermissionService(org.alfresco.service.cmr.security.PermissionService permissionService)
permissionService
- the permissionService to setpublic PublishingEvent getPublishingEvent(org.alfresco.service.cmr.repository.NodeRef eventNode) throws org.alfresco.error.AlfrescoRuntimeException
org.alfresco.error.AlfrescoRuntimeException
public List<PublishingEvent> getPublishingEvents(List<org.alfresco.service.cmr.repository.NodeRef> eventNodes)
public org.alfresco.service.cmr.repository.NodeRef createNode(org.alfresco.service.cmr.repository.NodeRef queueNode, PublishingDetails details) throws Exception
Exception
public List<org.alfresco.service.cmr.repository.NodeRef> findPublishingEventNodes(org.alfresco.service.cmr.repository.NodeRef queue, PublishingEventFilter filter)
public List<org.alfresco.service.cmr.repository.NodeRef> getEventNodesForPublishedNodes(org.alfresco.service.cmr.repository.NodeRef queue, org.alfresco.service.cmr.repository.NodeRef... publishedNodes)
List
of the NodeRef
s representing PublishingEvents that were scheduled to publish at least one of the specified publishedNodes
.queue
- NodeRefpublishedNodes
- NodeRef..public List<org.alfresco.service.cmr.repository.NodeRef> getEventNodesForPublishedNodes(org.alfresco.service.cmr.repository.NodeRef queue, Collection<org.alfresco.service.cmr.repository.NodeRef> publishedNodes)
List
of the NodeRef
s representing PublishingEvents that were scheduled to publish at least one of the specified publishedNodes
.queue
- NodeRefpublic List<org.alfresco.service.cmr.repository.NodeRef> getEventNodesForUnpublishedNodes(org.alfresco.service.cmr.repository.NodeRef queue, Collection<org.alfresco.service.cmr.repository.NodeRef> unpublishedNodes)
List
of the NodeRef
s representing PublishingEvents that were scheduled to unpublish at least one of the specified unpublishedNodes
.queue
- NodeRefpublic List<org.alfresco.service.cmr.repository.NodeRef> getEventNodesForPublishedNode(org.alfresco.service.cmr.repository.NodeRef queue, org.alfresco.service.cmr.repository.NodeRef publishedNode)
List
of the NodeRef
s representing PublishingEvents that were scheduled to publish the specified publishedNode
.queue
- NodeRefpublishedNode
- NodeRefpublic List<org.alfresco.service.cmr.repository.NodeRef> getEventNodesForUnpublishedNode(org.alfresco.service.cmr.repository.NodeRef queue, org.alfresco.service.cmr.repository.NodeRef unpublishedNode)
List
of the NodeRef
s representing PublishingEvents that were scheduled to unpublish the specified unpublishedNode
.queue
- NodeRefunpublishedNode
- NodeRefpublic List<PublishingEvent> findPublishingEvents(org.alfresco.service.cmr.repository.NodeRef queue, PublishingEventFilter filter)
public PublishingEvent getPublishingEvent(String id)
public org.alfresco.service.cmr.repository.NodeRef getPublishingEventNode(String id)
public String startPublishingWorkflow(org.alfresco.service.cmr.repository.NodeRef eventNode, Calendar scheduledTime)
public Calendar getScheduledTime(org.alfresco.service.cmr.repository.NodeRef eventNode)
public Calendar getScheduledTime(Map<org.alfresco.service.namespace.QName,Serializable> eventProperties)
public org.alfresco.service.cmr.repository.NodeRef getLastPublishEvent(org.alfresco.service.cmr.repository.NodeRef source, org.alfresco.service.cmr.repository.NodeRef channelNode)
public void cancelEvent(String id)
public org.alfresco.service.cmr.repository.AssociationRef linkToLastEvent(org.alfresco.service.cmr.repository.NodeRef publishedNode, org.alfresco.service.cmr.repository.NodeRef eventNode)
public PublishingDetails createPublishingDetails()
public void setExcludedAspects(Collection<String> excludedAspects)
Copyright © 2005–2017 Alfresco Software. All rights reserved.