/* * JBoss, Home of Professional Open Source. * * See the LEGAL.txt file distributed with this work for information regarding copyright ownership and licensing. * * See the AUTHORS.txt file distributed with this work for a full listing of individual contributors. */ package org.teiid.designer.core.search.commands; import java.util.Collection; import org.teiid.designer.core.index.IndexSelector; import org.teiid.designer.core.search.runtime.RelatedObjectRecord; /** * Command that helps find all the objects that have relationships to a given object. * * @since 8.0 */ public interface FindRelatedObjectsCommand extends SearchCommand { /** * Set the IndexSelector that will be used to obtain models that will be searched. * @param selector the index selector that should be used, or null if the * {@link org.teiid.designer.core.index.ModelWorkspaceIndexSelector} should be used */ void setIndexSelector(IndexSelector selector ); /** * Set the uri to the modelObject whose related objects are returned on executing this command. * @param The modelObject uri for which related objects are returned. */ public void setModelObjectUri(String uri); /** * Return a collection of {@link RelatedObjectRecord} * objects. * @return a collection of search records that contain related object info. */ public Collection getRelatedObjectInfo(); }