Package org.javlo.search
Class SearchResult
- java.lang.Object
-
- org.javlo.search.SearchResult
-
public class SearchResult extends Object
- Author:
- pvandermaesen
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
SearchResult.DateComporator
class
SearchResult.PriorityComporator
static class
SearchResult.SearchElement
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cleanResult()
ContentContext
getContentContext()
static SearchResult
getInstance(ContentContext ctx)
String
getQuery()
SearchResult.SearchElement[]
getResult()
List<SearchResult.SearchElement>
getSearchResult()
Collection<SearchResult.SearchElement>
getSearchResultCollection()
String
getSearchText()
String
getSort()
String
getUrlQuery()
String
getUrlSearchText()
void
search(ContentContext ctx, String groupId, String searchText, String sort, List<String> comps)
void
searchComponent(ContentContext ctx, String componentType)
void
searchComponentInPage(ContentContext ctx, String componentType)
void
setContentContext(ContentContext ctx)
void
setQuery(String query)
void
setSort(String sort)
-
-
-
Method Detail
-
getInstance
public static SearchResult getInstance(ContentContext ctx)
-
cleanResult
public void cleanResult()
-
getResult
public SearchResult.SearchElement[] getResult()
- Returns:
-
getSearchResult
public List<SearchResult.SearchElement> getSearchResult()
-
searchComponentInPage
public void searchComponentInPage(ContentContext ctx, String componentType) throws Exception
- Throws:
Exception
-
search
public void search(ContentContext ctx, String groupId, String searchText, String sort, List<String> comps) throws Exception
- Throws:
Exception
-
searchComponent
public void searchComponent(ContentContext ctx, String componentType) throws Exception
- Throws:
Exception
-
getSearchResultCollection
public Collection<SearchResult.SearchElement> getSearchResultCollection()
-
getSearchText
public String getSearchText()
-
getUrlSearchText
public String getUrlSearchText()
-
getQuery
public String getQuery()
-
getUrlQuery
public String getUrlQuery()
-
setQuery
public void setQuery(String query)
-
getSort
public String getSort()
-
setSort
public void setSort(String sort)
-
getContentContext
public ContentContext getContentContext()
-
setContentContext
public void setContentContext(ContentContext ctx)
-
-