Package org.zanata.webtrans.shared.model

Examples of org.zanata.webtrans.shared.model.ContentStateGroup


    public ContentStateGroup getCurrentFilterStates() {
        return filterStatesFromCheckboxStates(getCheckboxStates());
    }

    private ContentStateGroup getCheckboxStates() {
        ContentStateGroup checkboxStates =
                ContentStateGroup.builder().includeNew(filterUntranslated)
                        .includeFuzzy(filterFuzzy)
                        .includeTranslated(filterTranslated)
                        .includeApproved(filterApproved)
                        .includeRejected(filterRejected).build();
View Full Code Here


        }

        // FIXME this looks like it assumes only 3 states and would not work
        // properly for getting
        // e.g. only approved strings while there is a search active.
        ContentStateGroup includedStates = constraints.getIncludedStates();
        if (!includedStates.hasNew() && !includedStates.hasFuzzy()
                && !includedStates.hasTranslated()) {
            // including nothing
            return Collections.emptyList();
        }

        // FIXME this switch is provided for easy comparison of options before a
View Full Code Here

TOP

Related Classes of org.zanata.webtrans.shared.model.ContentStateGroup

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.