mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Removed the Environment from the publishing implementation.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29183 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -47,7 +47,7 @@ public class PublishingQueueImpl implements PublishingQueue
|
||||
private TransferManifestNodeFactory transferManifestNodeFactory;
|
||||
private VersionService versionService;
|
||||
private PublishingEventHelper publishingEventHelper;
|
||||
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@@ -73,13 +73,29 @@ public class PublishingQueueImpl implements PublishingQueue
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public List<PublishingEvent> getPublishingEvents(PublishingEventFilter filter)
|
||||
{
|
||||
return publishingEventHelper.findPublishingEvents(nodeRef, filter);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public PublishingEventFilter createPublishingEventFilter()
|
||||
{
|
||||
return new PublishingEventFilterImpl();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public String scheduleNewEvent(PublishingPackage publishingPackage, String channelName, Calendar schedule, String comment, StatusUpdate statusUpdate)
|
||||
public String scheduleNewEvent(PublishingPackage publishingPackage, String channelId, Calendar schedule, String comment, StatusUpdate statusUpdate)
|
||||
{
|
||||
try
|
||||
{
|
||||
NodeRef eventNode = publishingEventHelper.createNode(nodeRef, publishingPackage, channelName, schedule, comment, statusUpdate);
|
||||
NodeRef eventNode = publishingEventHelper.createNode(nodeRef, publishingPackage, channelId, schedule, comment, statusUpdate);
|
||||
publishingEventHelper.startPublishingWorkflow(eventNode, schedule);
|
||||
return eventNode.toString();
|
||||
}
|
||||
@@ -123,19 +139,5 @@ public class PublishingQueueImpl implements PublishingQueue
|
||||
this.versionService = versionService;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public List<PublishingEvent> getPublishingEvents(PublishingEventFilter filter)
|
||||
{
|
||||
return publishingEventHelper.findPublishingEvents(nodeRef, filter);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public PublishingEventFilter createPublishingEventFilter()
|
||||
{
|
||||
return new PublishingEventFilterImpl();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user