Search in sources :

Example 1 with GetEntityDiscussionThreadsResult

use of edu.stanford.bmir.protege.web.shared.issues.GetEntityDiscussionThreadsResult 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));
}
Also used : GetEntityDiscussionThreadsResult(edu.stanford.bmir.protege.web.shared.issues.GetEntityDiscussionThreadsResult) EntityDiscussionThread(edu.stanford.bmir.protege.web.shared.issues.EntityDiscussionThread) OWLEntityData(edu.stanford.bmir.protege.web.shared.entity.OWLEntityData) Nonnull(javax.annotation.Nonnull)

Aggregations

OWLEntityData (edu.stanford.bmir.protege.web.shared.entity.OWLEntityData)1 EntityDiscussionThread (edu.stanford.bmir.protege.web.shared.issues.EntityDiscussionThread)1 GetEntityDiscussionThreadsResult (edu.stanford.bmir.protege.web.shared.issues.GetEntityDiscussionThreadsResult)1 Nonnull (javax.annotation.Nonnull)1