Search in sources :

Example 6 with SearchFilter

use of org.eclipse.scout.rt.shared.services.common.jdbc.SearchFilter in project scout.rt by eclipse.

the class MediumMemoryPolicy method storeSearchFormState.

@Override
protected void storeSearchFormState(IForm f, String pageFormIdentifier) {
    // cache search form data
    if (f.isEmpty()) {
        m_searchFormCache.remove(pageFormIdentifier);
    } else {
        String xml = f.storeToXmlString();
        SearchFilter filter = f.getSearchFilter();
        m_searchFormCache.put(pageFormIdentifier, new SearchFormState(xml, filter));
    }
}
Also used : SearchFilter(org.eclipse.scout.rt.shared.services.common.jdbc.SearchFilter)

Example 7 with SearchFilter

use of org.eclipse.scout.rt.shared.services.common.jdbc.SearchFilter in project scout.rt by eclipse.

the class DefaultSearchFilterServiceTest method setUp.

@Before
public void setUp() {
    m_searchFilterService = new DefaultSearchFilterService();
    m_searchFilter = new SearchFilter();
}
Also used : SearchFilter(org.eclipse.scout.rt.shared.services.common.jdbc.SearchFilter) Before(org.junit.Before)

Aggregations

SearchFilter (org.eclipse.scout.rt.shared.services.common.jdbc.SearchFilter)7 ISearchFilterService (org.eclipse.scout.rt.client.services.common.search.ISearchFilterService)2 ArrayList (java.util.ArrayList)1 IBookmarkAdapter (org.eclipse.scout.rt.client.services.common.bookmark.IBookmarkAdapter)1 IOutline (org.eclipse.scout.rt.client.ui.desktop.outline.IOutline)1 IPage (org.eclipse.scout.rt.client.ui.desktop.outline.pages.IPage)1 IPageWithNodes (org.eclipse.scout.rt.client.ui.desktop.outline.pages.IPageWithNodes)1 IPageWithTable (org.eclipse.scout.rt.client.ui.desktop.outline.pages.IPageWithTable)1 Order (org.eclipse.scout.rt.platform.Order)1 ConfigOperation (org.eclipse.scout.rt.platform.annotations.ConfigOperation)1 PlatformException (org.eclipse.scout.rt.platform.exception.PlatformException)1 ProcessingException (org.eclipse.scout.rt.platform.exception.ProcessingException)1 VetoException (org.eclipse.scout.rt.platform.exception.VetoException)1 IStatus (org.eclipse.scout.rt.platform.status.IStatus)1 Status (org.eclipse.scout.rt.platform.status.Status)1 Bookmark (org.eclipse.scout.rt.shared.services.common.bookmark.Bookmark)1 Before (org.junit.Before)1