</BUG>
import org.opennms.netmgt.model.ncs.NCSComponent;
import org.opennms.netmgt.ncs.rest.NCSRestService.ComponentList;
public interface NCSComponentService {
<BUG>public void setEventForwarder(EventForwarder eventForwarder) throws Exception;
</BUG>
public NCSComponent getComponent(String type, String foreignSource, String foreignId);
public ComponentList findComponentsWithAttribute(String string, String string2);
public NCSComponent addOrUpdateComponents(NCSComponent component, boolean deleteOrphans);
public NCSComponent addSubcomponent(String type, String foreignSource, String foreignId, NCSComponent subComponent, boolean deleteOrphans);

package org.opennms.netmgt.ncs.persistence;
import org.opennms.netmgt.model.events.EventProxy;
import org.opennms.netmgt.model.ncs.NCSComponent;
import org.opennms.netmgt.ncs.rest.NCSRestService.ComponentList;
public interface NCSComponentService {
public void setEventProxy(EventProxy eventProxy) throws Exception;
public NCSComponent getComponent(String type, String foreignSource, String foreignId);
public ComponentList findComponentsWithAttribute(String string, String string2);
public NCSComponent addOrUpdateComponents(NCSComponent component, boolean deleteOrphans);
public NCSComponent addSubcomponent(String type, String foreignSource, String foreignId, NCSComponent subComponent, boolean deleteOrphans);
