Package org.zanata.events

Examples of org.zanata.events.DocumentUploadedEvent


        long actorId = authenticatedAccount.getPerson().getId();
        if (changed) {
            if (Events.exists()) {
                Events.instance().raiseTransactionSuccessEvent(
                        DocumentUploadedEvent.EVENT_NAME,
                        new DocumentUploadedEvent(actorId, document.getId(),
                                true, hLocale.getLocaleId()));
            }
            clearStatsCacheForUpdatedDocument(document);
        }
View Full Code Here


                if (Events.exists()) {
                    Long actorId = authenticatedAccount.getPerson().getId();
                    Events.instance().raiseEvent(
                            DocumentUploadedEvent.EVENT_NAME,
                            new DocumentUploadedEvent(actorId,
                                    document.getId(), false, hLocale
                                            .getLocaleId()));
                }
            } catch (Exception e) {
                throw new ZanataServiceException("Error during translation.",
View Full Code Here

        activityService.logTextFlowStateUpdate(new TextFlowTargetStateEvent(
                personId, versionId, documentId, null, new LocaleId("as"),
                textFlowTargetId, ContentState.Approved,
                ContentState.NeedReview));

        activityService.onDocumentUploaded(new DocumentUploadedEvent(personId,
                documentId, false, new LocaleId("as")));

        List<Activity> activities =
                activityService.findLatestActivitiesForContext(personId,
                        projectVersionId, 0, 5);
View Full Code Here

TOP

Related Classes of org.zanata.events.DocumentUploadedEvent

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.