/*
* Copyright (C) 2005-2010 Alfresco Software Limited.
*
* This file is part of Alfresco
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Alfresco is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see .
*/
package org.alfresco.repo.publishing;
import java.util.Collection;
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;
/**
* @author Brian
*
*/
public class EnvironmentImpl implements Environment
{
private PublishingQueueFactory publishingQueueFactory;
private NodeRef nodeRef;
private String id;
private EnvironmentHelper environmentHelper;
/* (non-Javadoc)
* @see org.alfresco.service.cmr.publishing.Environment#checkPublishStatus(java.util.Collection)
*/
@Override
public Map checkPublishStatus(Collection nodes)
{
// TODO Auto-generated method stub
return null;
}
/* (non-Javadoc)
* @see org.alfresco.service.cmr.publishing.Environment#getId()
*/
@Override
public String getId()
{
return id;
}
/* (non-Javadoc)
* @see org.alfresco.service.cmr.publishing.Environment#getPublishingEvents(org.alfresco.service.cmr.publishing.PublishingEventFilter)
*/
@Override
public List getPublishingEvents(PublishingEventFilter filter)
{
// TODO Auto-generated method stub
return null;
}
/* (non-Javadoc)
* @see org.alfresco.service.cmr.publishing.Environment#getPublishingQueue()
*/
@Override
public PublishingQueue getPublishingQueue()
{
return publishingQueueFactory.createPublishingQueueObject(nodeRef);
}
/**
* @param node
*/
public void setNodeRef(NodeRef node)
{
this.nodeRef = node;
this.id = node.toString();
}
/**
* @param publishingObjectFactory
*/
public void setPublishingQueueFactory(PublishingQueueFactory publishingQueueFactory)
{
this.publishingQueueFactory = publishingQueueFactory;
}
/**
* @param environmentHelper
*/
public void setEnvironmentHelper(EnvironmentHelper environmentHelper)
{
this.environmentHelper = environmentHelper;
}
}