Package org.zanata.webtrans.shared.rpc

Examples of org.zanata.webtrans.shared.rpc.LoadOptionsAction


                        hasGlossaryUpdateAccess, hasReviewAccess, requireReview);
        log.debug("workspace restrictions: {}", workspaceRestrictions);

        LoadOptionsResult loadOptsRes =
                loadOptionsHandler
                        .execute(new LoadOptionsAction(null), context);

        GetValidationRulesResult validationRulesResult =
                getValidationRulesHandler.execute(new GetValidationRulesAction(
                        workspaceId), context);
View Full Code Here


    public void loadOptions() {
        ArrayList<String> prefixes = new ArrayList<String>();
        prefixes.add(UserOptions.doc());
        prefixes.add(UserOptions.common());

        dispatcher.execute(new LoadOptionsAction(prefixes),
                new AsyncCallback<LoadOptionsResult>() {
                    @Override
                    public void onFailure(Throwable caught) {
                        eventBus.fireEvent(new NotificationEvent(
                                NotificationEvent.Severity.Warning,
View Full Code Here

    public void loadOptions() {
        ArrayList<String> prefixes = new ArrayList<String>();
        prefixes.add(UserOptions.editor());
        prefixes.add(UserOptions.common());

        dispatcher.execute(new LoadOptionsAction(prefixes),
                new AsyncCallback<LoadOptionsResult>() {
                    @Override
                    public void onFailure(Throwable caught) {
                        eventBus.fireEvent(new NotificationEvent(
                                NotificationEvent.Severity.Warning,
View Full Code Here

        SaveOptionsAction action =
                new SaveOptionsAction(generateConfigMap(configHolder));
        saveHandler.execute(action, null); // save some options first

        LoadOptionsResult result =
                handler.execute(new LoadOptionsAction(null), null);

        assertThat(result.getConfiguration().isShowError(),
                Matchers.equalTo(true));
        assertThat(result.getConfiguration().getNavOption(),
                Matchers.equalTo(NavOption.FUZZY_UNTRANSLATED));
View Full Code Here

        List<HAccountOption> options =
                getEm().createQuery("from HAccountOption").getResultList();
        assertThat(options, Matchers.<HAccountOption> empty());

        LoadOptionsResult result =
                handler.execute(new LoadOptionsAction(null), null);

        // then: we get back default values
        assertThat(result.getConfiguration().isShowError(),
                Matchers.equalTo(false));
        assertThat(result.getConfiguration().getNavOption(),
View Full Code Here

TOP

Related Classes of org.zanata.webtrans.shared.rpc.LoadOptionsAction

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.