Package edu.stanford.bmir.protege.web.shared.event

Examples of edu.stanford.bmir.protege.web.shared.event.NotePostedEvent


    @Override
    public Note addReplyToNote(NoteId inReplyToId, NoteContent replyContent, UserId author, long timestamp) {
        try {
            AnnotatableThing target = getAnnotatableThingForObjectId(inReplyToId);
            Note note = addNoteToTarget(target, replyContent, author, timestamp);
            project.getEventManager().postEvent(new NotePostedEvent(project.getProjectId(), new NoteDetails(note.getHeader(), replyContent), Optional.of(inReplyToId)));
            return note;
        }
        catch (NotesException e) {
            throw new RuntimeException("Problem creating note: " + e.getMessage());
        }
View Full Code Here


            checkNotNull(noteContent);
            checkNotNull(author);
            AnnotatableThing target = getAnnotatableThing(targetEntity);
            Note note = addNoteToTarget(target, noteContent, author, timestamp);
            OWLEntityData entityData = DataFactory.getOWLEntityData(targetEntity, project.getRenderingManager().getBrowserText(targetEntity));
            final NotePostedEvent evt = new NotePostedEvent(project.getProjectId(), Optional.of(entityData), new NoteDetails(note.getHeader(), note.getContent()));
            project.getEventManager().postEvent(evt);
            return note;
        }
        catch (NotesException e) {
            throw new RuntimeException("Problem creating note: " + e.getMessage());
View Full Code Here

TOP

Related Classes of edu.stanford.bmir.protege.web.shared.event.NotePostedEvent

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.