use of edu.stanford.bmir.protege.web.shared.issues.EntityDiscussionThread in project webprotege by protegeproject.
the class EntityDiscussionThreadRepository method deleteComment.
public boolean deleteComment(CommentId commentId) {
Query<EntityDiscussionThread> query = datastore.createQuery(EntityDiscussionThread.class).field(COMMENTS_ID).equal(commentId);
UpdateOperations<EntityDiscussionThread> update = getUpdateOperations().removeAll(COMMENTS, new BasicDBObject("_id", commentId.getId()));
UpdateResults updateResults = datastore.updateFirst(query, update);
return updateResults.getUpdatedCount() == 1;
}
use of edu.stanford.bmir.protege.web.shared.issues.EntityDiscussionThread in project webprotege by protegeproject.
the class GetEntityDiscussionThreadsHandler method execute.
@Nonnull
@Override
public GetEntityDiscussionThreadsResult execute(@Nonnull GetEntityDiscussionThreadsAction action, @Nonnull ExecutionContext executionContext) {
List<EntityDiscussionThread> threads = repository.findThreads(action.getProjectId(), action.getEntity());
OWLEntityData entityData = renderingManager.getRendering(action.getEntity());
return new GetEntityDiscussionThreadsResult(entityData, ImmutableList.copyOf(threads));
}
use of edu.stanford.bmir.protege.web.shared.issues.EntityDiscussionThread in project webprotege by protegeproject.
the class DiscussionThreadListPresenter method redisplayThreads.
private void redisplayThreads() {
view.clear();
stopThreadPresenters();
for (EntityDiscussionThread thread : displayedThreads) {
addThread(thread);
}
}
Aggregations