Package org.zanata.events

Examples of org.zanata.events.DocumentStatisticUpdatedEvent


            oldStats.decrement(event.getNewState(), wordCount);
            oldStats.increment(event.getPreviousState(), wordCount);

            Events.instance().raiseAsynchronousEvent(
                    DocumentStatisticUpdatedEvent.EVENT_NAME,
                    new DocumentStatisticUpdatedEvent(oldStats, stats,
                            event.getProjectIterationId(),
                            event.getDocumentId(), event.getLocaleId(),
                            event.getPreviousState(), event.getNewState()));
        }
    }
View Full Code Here


        int wordCount = 10;
        WordStatistic oldStats = StatisticsUtil.copyWordStatistic(stats);
        oldStats.decrement(newState, wordCount);
        oldStats.increment(oldState, wordCount);

        DocumentStatisticUpdatedEvent event =
                new DocumentStatisticUpdatedEvent(oldStats, stats, versionId,
                        docId, localeId, oldState, newState);

        spyService.documentStatisticUpdated(event);
    }
View Full Code Here

TOP

Related Classes of org.zanata.events.DocumentStatisticUpdatedEvent

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.