Coverage Report - org.jtheque.films.controllers.able.ISearchController
 
Classes in this File Line Coverage Branch Coverage Complexity
ISearchController
N/A
N/A
1
 
 1  
 package org.jtheque.films.controllers.able;
 2  
 
 3  
 /*
 4  
  * This file is part of JTheque.
 5  
  *
 6  
  * JTheque is free software: you can redistribute it and/or modify
 7  
  * it under the terms of the GNU General Public License as published by
 8  
  * the Free Software Foundation, either version 3 of the License.
 9  
  *
 10  
  * JTheque is distributed in the hope that it will be useful,
 11  
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 12  
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 13  
  * GNU General Public License for more details.
 14  
  *
 15  
  * You should have received a copy of the GNU General Public License
 16  
  * along with JTheque.  If not, see <http://www.gnu.org/licenses/>.
 17  
  */
 18  
 
 19  
 import org.jtheque.core.managers.view.able.controller.Controller;
 20  
 import org.jtheque.films.services.impl.utils.search.Searcher;
 21  
 import org.jtheque.films.view.able.ISearchView;
 22  
 import org.jtheque.primary.controller.able.IPrincipalController;
 23  
 import org.jtheque.primary.od.able.Data;
 24  
 
 25  
 /**
 26  
  * An search controller specification.
 27  
  *
 28  
  * @author Baptiste Wicht
 29  
  */
 30  
 public interface ISearchController extends Controller {
 31  
     /**
 32  
      * Execute the search. Function of the preview mode, we display the results directly in the principal view
 33  
      * or in the search view.
 34  
      *
 35  
      * @param research The search to execute.
 36  
      */
 37  
     void search(Searcher<? extends Data> research);
 38  
 
 39  
     /**
 40  
      * Set the type of research.
 41  
      *
 42  
      * @param controller The new type to set.
 43  
      */
 44  
     void setResearchController(IPrincipalController<? extends Data> controller);
 45  
 
 46  
     @Override
 47  
     ISearchView getView();
 48  
 }