/* ********************************************************************** **
** Copyright notice **
** **
** (c) 2005-2009 RSSOwl Development Team **
** http://www.rssowl.org/ **
** **
** All rights reserved **
** **
** This program and the accompanying materials are made available under **
** the terms of the Eclipse Public License v1.0 which accompanies this **
** distribution, and is available at: **
** http://www.rssowl.org/legal/epl-v10.html **
** **
** A copy is found in the file epl-v10.html and important notices to the **
** license from the team is found in the textfile LICENSE.txt distributed **
** in this package. **
** **
** This copyright notice MUST APPEAR in all copies of the file! **
** **
** Contributors: **
** RSSOwl Development Team - initial API and implementation **
** **
** ********************************************************************** */
package org.rssowl.core.internal.newsaction;
import org.rssowl.core.INewsAction;
import org.rssowl.core.persist.IEntity;
import org.rssowl.core.persist.INews;
import java.util.Collections;
import java.util.List;
import java.util.Map;
/**
* An instance of {@link INewsAction} to stop filtering of a news by simply
* doing nothing.
*
* @author bpasero
*/
public class StopFilterNewsAction implements INewsAction {
/*
* @see org.rssowl.core.INewsAction#run(java.util.List, java.util.Map,
* java.lang.Object)
*/
public List<IEntity> run(List<INews> news, Map<INews, INews> replacements, Object data) {
return Collections.emptyList();
}
/*
* @see org.rssowl.core.INewsAction#conflictsWith(org.rssowl.core.INewsAction)
*/
public boolean conflictsWith(INewsAction otherAction) {
return false;
}
/*
* @see org.rssowl.core.INewsAction#getLabel(java.lang.Object)
*/
public String getLabel(Object data) {
return null;
}
}