1 23 24 package org.apache.slide.search; 25 26 import org.apache.slide.common.ServiceAccessException; 27 import org.apache.slide.common.SlideToken; 28 import org.apache.slide.event.VetoException; 29 import org.jdom.Element; 30 31 36 public interface Search { 37 38 39 41 42 43 53 SearchQueryResult search(SlideToken token, SearchQuery query) 54 throws ServiceAccessException, VetoException; 55 56 57 60 SearchLanguage[] getSupportedLanguages (); 61 62 63 73 SearchLanguage getLanguage (String grammarUri) 74 throws BadQueryException; 75 76 77 89 SearchQuery createSearchQuery (String grammarUri, 90 Element searchRequestElement, 91 SlideToken token, 92 int maxDepth) 93 throws BadQueryException; 94 95 109 SearchQuery createSearchQuery (String grammarUri, 110 Element searchRequestElement, 111 SlideToken token, 112 int maxDepth, 113 PropertyProvider propertyProvider) 114 throws BadQueryException; 115 116 129 SearchQuery createSearchQuery (String grammarUri, 130 Element searchRequestElement, 131 SlideToken token, 132 int maxDepth, 133 String requestUri) 134 throws BadQueryException; 135 136 151 SearchQuery createSearchQuery (String grammarUri, 152 Element searchRequestElement, 153 SlideToken token, 154 int maxDepth, 155 PropertyProvider propertyProvider, 156 String requestUri) 157 throws BadQueryException; 158 } 159 | Popular Tags |