Package org.jahia.services.search.SearchCriteria

Examples of org.jahia.services.search.SearchCriteria.CommaSeparatedMultipleValue


            context.setSite(homeNode.getResolveSite());
            new URLGenerator(context, resource);

            SearchCriteria criteria = new SearchCriteria();

            CommaSeparatedMultipleValue oneSite = new CommaSeparatedMultipleValue();
            oneSite.setValue(FIRST_TESTSITE_NAME);

            CommaSeparatedMultipleValue englishLang = new CommaSeparatedMultipleValue();
            englishLang.setValue("en");

            criteria.setSites(oneSite);
            criteria.setLanguages(englishLang);
            criteria.getTerms().get(0).setTerm("ACME");
            criteria.getTerms().get(0).getFields().setSiteContent(true);
View Full Code Here


            context.setSite(homeNode.getResolveSite());
            new URLGenerator(context, resource);

            SearchCriteria criteria = new SearchCriteria();

            CommaSeparatedMultipleValue oneSite = new CommaSeparatedMultipleValue();
            oneSite.setValue(FIRST_TESTSITE_NAME);

            CommaSeparatedMultipleValue frenchLang = new CommaSeparatedMultipleValue();
            frenchLang.setValue("fr");

            criteria.setSites(oneSite);
            criteria.setLanguages(frenchLang);
            criteria.getTerms().get(0).setTerm("ACME");
            criteria.getTerms().get(0).getFields().setSiteContent(true);
View Full Code Here

            context.setSite(homeNode.getResolveSite());
            new URLGenerator(context, resource);

            SearchCriteria criteria = new SearchCriteria();

            CommaSeparatedMultipleValue oneSite = new CommaSeparatedMultipleValue();
            oneSite.setValue(FIRST_TESTSITE_NAME);

            CommaSeparatedMultipleValue englishLang = new CommaSeparatedMultipleValue();
            englishLang.setValue("en");

            criteria.setSites(oneSite);
            criteria.setLanguages(englishLang);
            criteria.getTerms().get(0).setTerm("ACME");
            criteria.getTerms().get(0).getFields().setFileContent(true);
View Full Code Here

            context.setSite(homeNode.getResolveSite());
            new URLGenerator(context, resource);

            SearchCriteria criteria = new SearchCriteria();

            CommaSeparatedMultipleValue oneSite = new CommaSeparatedMultipleValue();
            oneSite.setValue(FIRST_TESTSITE_NAME);

            CommaSeparatedMultipleValue englishLang = new CommaSeparatedMultipleValue();
            englishLang.setValue("en");

            criteria.setSites(oneSite);
            criteria.setLanguages(englishLang);
            criteria.getTerms().get(0).setTerm("civil Polytech");
            criteria.getTerms().get(0).setMatch(MatchType.ALL_WORDS);
View Full Code Here

            context.setSite(homeNode.getResolveSite());
            new URLGenerator(context, resource);

            SearchCriteria criteria = new SearchCriteria();

            CommaSeparatedMultipleValue twoSites = new CommaSeparatedMultipleValue();
            twoSites.setValue(FIRST_TESTSITE_NAME + "," + SECOND_TESTSITE_NAME);

            CommaSeparatedMultipleValue englishLang = new CommaSeparatedMultipleValue();
            englishLang.setValue("en");

            criteria.setSites(twoSites);
            criteria.setLanguages(englishLang);
            criteria.getTerms().get(0).setTerm("ACME");
            criteria.getTerms().get(0).getFields().setSiteContent(true);
View Full Code Here

    }

    private SearchCriteria createSearchCriteria() {
        SearchCriteria criteria = new SearchCriteria();

        CommaSeparatedMultipleValue oneSite = new CommaSeparatedMultipleValue();
        oneSite.setValue(FIRST_TESTSITE_NAME);

        CommaSeparatedMultipleValue englishLang = new CommaSeparatedMultipleValue();
        englishLang.setValue("en");

        criteria.setSites(oneSite);
        criteria.setLanguages(englishLang);
        criteria.getTerms().get(0).setTerm("ACME");
        criteria.getTerms().get(0).getFields().setSiteContent(true);
View Full Code Here

TOP

Related Classes of org.jahia.services.search.SearchCriteria.CommaSeparatedMultipleValue

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.