Examples of GetDocumentList


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

        appPresenter.bind();
        Window.enableScrolling(true);
        // eager load document list
        final EventBus eventBus = injector.getEventBus();

        GetDocumentList action =
                new GetDocumentList(injector.getLocation().getQueryDocuments());

        documentListPresenter.showLoading(true);
        final Stopwatch stopwatch = new Stopwatch().start();
        injector.getDispatcher().execute(action,
                new AsyncCallback<GetDocumentListResult>() {
View Full Code Here

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

            AsyncCallback<GetTransUnitListResult> gtuCallback =
                    (AsyncCallback<GetTransUnitListResult>) callback;
            Scheduler.get().scheduleDeferred(
                    new DummyGetTransUnitCommand(gtuAction, gtuCallback));
        } else if (action instanceof GetDocumentList) {
            final GetDocumentList gdlAction = (GetDocumentList) action;
            AsyncCallback<GetDocumentListResult> gdlCallback =
                    (AsyncCallback<GetDocumentListResult>) callback;
            Scheduler.get().scheduleDeferred(
                    new DummyGetDocsListCommand(gdlAction, gdlCallback));
        } else if (action instanceof ActivateWorkspaceAction) {
View Full Code Here

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

    }

    @Test
    public void testExecute() throws Exception {
        WorkspaceId workspaceId = TestFixture.workspaceId();
        GetDocumentList action = new GetDocumentList();
        action.setWorkspaceId(workspaceId);
        HDocument hDocument = hDocument(1);
        List<HDocument> documentList = Arrays.asList(hDocument);

        when(documentDAO.getAllByProjectIteration("project", "master"))
                .thenReturn(documentList);
View Full Code Here

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

    }

    @Test
    public void testExecuteWithFilter() throws Exception {
        WorkspaceId workspaceId = TestFixture.workspaceId();
        GetDocumentList action = new GetDocumentList();
        action.setWorkspaceId(workspaceId);
        HDocument hDocument = hDocument(1);
        List<HDocument> documentList = Arrays.asList(hDocument);
        when(documentDAO.getAllByProjectIteration("project", "master"))
                .thenReturn(documentList);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.