mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Removed Environment from the Publishing Foundation API.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28957 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -22,13 +22,9 @@ package org.alfresco.repo.publishing;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collection;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.alfresco.service.cmr.publishing.Environment;
|
||||
import org.alfresco.service.cmr.publishing.NodePublishStatus;
|
||||
import org.alfresco.service.cmr.publishing.PublishingEvent;
|
||||
import org.alfresco.service.cmr.publishing.PublishingEventFilter;
|
||||
import org.alfresco.service.cmr.publishing.PublishingQueue;
|
||||
import org.alfresco.service.cmr.repository.NodeRef;
|
||||
|
||||
@@ -37,13 +33,12 @@ import org.alfresco.service.cmr.repository.NodeRef;
|
||||
* @author Nick Smith
|
||||
*
|
||||
*/
|
||||
public class EnvironmentImpl implements Environment
|
||||
public class EnvironmentImpl
|
||||
{
|
||||
private PublishingQueueFactory publishingQueueFactory;
|
||||
private NodeRef nodeRef;
|
||||
private String id;
|
||||
private EnvironmentHelper environmentHelper;
|
||||
private PublishingEventHelper publishingEventHelper;
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
@@ -78,15 +73,6 @@ public class EnvironmentImpl implements Environment
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public List<PublishingEvent> getPublishingEvents(PublishingEventFilter filter)
|
||||
{
|
||||
NodeRef queue = environmentHelper.getPublishingQueue(nodeRef);
|
||||
return publishingEventHelper.findPublishingEvents(queue, filter);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@@ -95,14 +81,6 @@ public class EnvironmentImpl implements Environment
|
||||
return publishingQueueFactory.createPublishingQueueObject(nodeRef);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public PublishingEventFilter createPublishingEventFilter()
|
||||
{
|
||||
return new PublishingEventFilterImpl();
|
||||
}
|
||||
|
||||
public NodeRef getNodeRef()
|
||||
{
|
||||
return nodeRef;
|
||||
@@ -132,13 +110,5 @@ public class EnvironmentImpl implements Environment
|
||||
{
|
||||
this.environmentHelper = environmentHelper;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param publishingEventHelper the publishingEventHelper to set
|
||||
*/
|
||||
public void setPublishingEventHelper(PublishingEventHelper publishingEventHelper)
|
||||
{
|
||||
this.publishingEventHelper = publishingEventHelper;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user