<CONTEXT>import org.opennms.netmgt.provision.persist.ForeignSourceRepository;</BUG>import org.opennms.netmgt.provision.persist.foreignsource.ForeignSource;public interface ForeignSourceService {void setActiveForeignSourceRepository(ForeignSourceRepository repo);<extra_id_0>import org.opennms.netmgt.provision.persist.foreignsource.ForeignSource;public interface ForeignSourceService {void setActiveForeignSourceRepository(ForeignSourceRepository repo);<BUG>void setPendingForeignSourceRepository(ForeignSourceRepository repo);ForeignSource getForeignSource(String name);</BUG>ForeignSource saveForeignSource(String name, ForeignSource fs);ForeignSource deployForeignSource(String name);ForeignSource deleteForeignSource(String name);ForeignSource deletePath(String foreignSourceName, String dataPath);</CONTEXT>
package org.opennms.web.svclayer.support;import java.util.Map;import java.util.Set;import org.opennms.netmgt.provision.persist.ForeignSourceRepository;Set<ForeignSource> getAllForeignSources();ForeignSource getForeignSource(String name);