1 16 package org.jahia.services.search; 17 18 import org.jahia.data.search.JahiaSearchResult; 19 import org.jahia.exceptions.JahiaException; 20 import org.jahia.params.ParamBean; 21 22 import java.util.ArrayList ; 23 24 25 30 31 public abstract class JahiaSearcher { 32 33 34 public static final String PAGE_SEARCHER = "PageSearcher"; 35 public static final String CONTAINER_SEARCHER = "ContainerSearcher"; 36 37 38 39 private String query; 40 41 42 private Object result; 43 44 48 public abstract int[] getSiteIds (); 49 50 56 public abstract String getName (); 57 58 68 public abstract JahiaSearchResult search (String query, ParamBean jParams) 69 throws JahiaException; 70 71 77 public String getQuery () { 78 return this.query; 79 } 80 81 87 public void setQuery (String query) { 88 this.query = query; 89 } 90 91 97 public Object getResult () { 98 return this.result; 99 } 100 101 107 void setResult (Object result) { 108 this.result = result; 109 } 110 111 115 public abstract ArrayList getLanguageCodes (); 116 117 } 118 | Popular Tags |