Package org.zanata.webtrans.server

Examples of org.zanata.webtrans.server.TranslationWorkspace.publish()


                new EditorClientId(httpSessionId, generateEditorClientNum());
        workspace
                .addEditorClient(httpSessionId, editorClientId, person.getId());
        // Send EnterWorkspace event to clients
        EnterWorkspace event = new EnterWorkspace(editorClientId, person);
        workspace.publish(event);

        HLocale locale =
                localeServiceImpl.getByLocaleId(workspaceId.getLocaleId());
        HProject project =
                projectDAO.getBySlug(workspaceId.getProjectIterationId()
View Full Code Here


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

        return new NoOpResult();
    }

    @Override
View Full Code Here

        textFlowTargetReviewCommentsDAO.flush();

        AddReviewComment commentEvent = new AddReviewComment(
                new TransUnitId(hTextFlowTarget.getTextFlow().getId()),
                hTextFlowTarget.getReviewComments().size());
        workspace.publish(commentEvent);
        return new AddReviewCommentResult(toDTO(hComment));
    }

    private void
            throwExceptionIfCommentIsInvalid(AddReviewCommentAction action)
View Full Code Here

                        action.getPerson(), action.getSelectedTransUnitId());

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

        workspace.publish(event);

        return new NoOpResult();
    }

    @Override
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.