use of com.evolveum.midpoint.web.component.search.SearchItem in project midpoint by Evolveum.
the class PageUsers method initSearch.
private void initSearch(String text) {
PageStorage storage = getSessionStorage().getPageStorageMap().get(SessionStorage.KEY_USERS);
if (storage == null) {
storage = getSessionStorage().initPageStorage(SessionStorage.KEY_USERS);
}
Search search = SearchFactory.createSearch(UserType.class, this);
if (SearchBoxModeType.FULLTEXT.equals(search.getSearchType())) {
search.setFullText(text);
} else if (search.getItems() != null && search.getItems().size() > 0) {
SearchItem searchItem = search.getItems().get(0);
searchItem.getValues().add(new SearchValue<>(text));
}
storage.setSearch(search);
getSessionStorage().getPageStorageMap().put(SessionStorage.KEY_USERS, storage);
}
Aggregations