Package org.zanata.webtrans.shared.rpc.HasSearchType

Examples of org.zanata.webtrans.shared.rpc.HasSearchType.SearchType


        StringBuilder sources = new StringBuilder();
        for (String source : transUnit.getSources()) {
            sources.append(source);
            sources.append(" ");
        }
        SearchType searchType = GetGlossary.SearchType.FUZZY;
        createGlossaryRequest(sources.toString(), searchType);
    }
View Full Code Here


            ExecutionContext context) throws ActionException {
        identity.checkLoggedIn();

        String searchText = action.getQuery();
        ShortString abbrev = new ShortString(searchText);
        SearchType searchType = action.getSearchType();
        log.debug("Fetching Glossary matches({}) for \"{}\"", searchType,
                abbrev);

        LocaleId localeID = action.getLocaleId();
        ArrayList<GlossaryResultItem> results;
View Full Code Here

                .getValue()));
    }

    public void createTMRequestForTransUnit(TransUnit transUnit) {
        // Start automatically fuzzy search
        SearchType searchType = SearchType.FUZZY_PLURAL;
        createTMRequest(new TransMemoryQuery(transUnit.getSources(), searchType));
    }
View Full Code Here

TOP

Related Classes of org.zanata.webtrans.shared.rpc.HasSearchType.SearchType

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.