/** * Configures the Data provider that enables to get the data to feed the table that lists CasIndex * entries * * @param provider * @param searchText * @return */ private String configureDataProvider(CasIndexDataProvider provider, String searchText) { String filteringMessage = null; if (searchText != null) { filteringMessage = provider.fullTextSearch(searchText); LocalSession.get().setSearchCriterions(provider.getSearchCriterions(), filteringMessage); } else { ImogJunctionProxy searchCriterions = LocalSession.get().getSearchCriterions(); if (searchCriterions != null) { provider.setSearchCriterions(searchCriterions); filteringMessage = LocalSession.get().getFilteringMessage(); } } return filteringMessage; }
/** * Sets criterions for which values have to be temporally searched * * @param criterions ImogJunctionProxy including the criterions for which the values have to be * searched */ public void setSearchCriterions(ImogJunctionProxy criterions) { if (criterions == null) { if (ProfileUtil.isAdmin()) { filter(getDeletedEntityFilterCriteria(false)); LocalSession.get().setSearchCriterions(getSearchCriterions(), null); } else searchCriterions = criterions; } else searchCriterions = criterions; }