Package org.zanata.webtrans.shared.rpc

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


                new PublishWorkspaceChat(action.getPerson(),
                        formatter.format(currentDate), action.getMsg(),
                        action.getMessageType());
        workspace.publish(event);

        return new NoOpResult();
    }
View Full Code Here


        TranslationWorkspace workspace =
                translationWorkspaceManager.getOrRegisterWorkspace(action
                        .getWorkspaceId());
        workspace.onEventServiceConnected(action.getEditorClientId(),
                action.getConnectionId());
        return new NoOpResult();
    }
View Full Code Here

                translationWorkspaceManager.getOrRegisterWorkspace(action
                        .getWorkspaceId());

        // Send ExitWorkspace event to client
        workspace.removeEditorClient(action.getEditorClientId());
        return new NoOpResult();
    }
View Full Code Here

                    action.getMessage());
        } catch (Exception e) {
            log.warn("can not authenticate user.");
        }

        return new NoOpResult();
    }
View Full Code Here

        workspace.updateUserSelection(action.getEditorClientId(),
                action.getSelectedTransUnitId());

        workspace.publish(event);

        return new NoOpResult();
    }
View Full Code Here

    @Test
    public void testExecuteWithoutLoggedIn() throws Exception {
        doThrow(new RuntimeException("not logged in")).when(identity)
                .checkLoggedIn();

        NoOpResult result =
                handler.execute(new RemoteLoggingAction("blah"), null);

        assertThat(result, Matchers.notNullValue());
    }
View Full Code Here

        assertThat(result, Matchers.notNullValue());
    }

    @Test
    public void testRollback() throws Exception {
        handler.rollback(new RemoteLoggingAction("blow"), new NoOpResult(),
                null);
    }
View Full Code Here

    @Override
    public void execute() {
        Log.info("ENTER DummyPublishWorkspaceChatCommand.execute()");

        callback.onSuccess(new NoOpResult());
        Log.info("EXIT PublishWorkspaceChatResult.execute()");

    }
View Full Code Here

    }

    @Override
    public void execute() {
        Log.info("ENTER DummyEventServiceConnectedCommand.execute()");
        callback.onSuccess(new NoOpResult());
        Log.info("EXIT DummyEventServiceConnectedCommand.execute()");
    }
View Full Code Here

            Scheduler.get().scheduleDeferred(
                    new DummyGetGlossaryDetailsCommand(_action, _callback));
        }

        else if (action instanceof NoOpResult) {
            final NoOpResult _action = (NoOpResult) action;
            AsyncCallback<NoOpResult> _callback =
                    (AsyncCallback<NoOpResult>) callback;
            Scheduler.get().scheduleDeferred(
                    new DummyPublishWorkspaceChatCommand(_callback));
        } else if (action instanceof EventServiceConnectedAction) {
View Full Code Here

TOP

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

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.