Search in sources :

Example 1 with UpdateEntityTagsResult

use of edu.stanford.bmir.protege.web.shared.tag.UpdateEntityTagsResult in project webprotege by protegeproject.

the class UpdateEntityTagsActionHandler method execute.

@Nonnull
@Override
public UpdateEntityTagsResult execute(@Nonnull UpdateEntityTagsAction action, @Nonnull ExecutionContext executionContext) {
    EventTag startTag = eventEventManager.getCurrentTag();
    tagsManager.updateTags(action.getEntity(), action.getFromTagIds(), action.getToTagIds());
    EventList<ProjectEvent<?>> events = eventEventManager.getEventsFromTag(startTag);
    return new UpdateEntityTagsResult(events);
}
Also used : UpdateEntityTagsResult(edu.stanford.bmir.protege.web.shared.tag.UpdateEntityTagsResult) EventTag(edu.stanford.bmir.protege.web.shared.event.EventTag) ProjectEvent(edu.stanford.bmir.protege.web.shared.event.ProjectEvent) Nonnull(javax.annotation.Nonnull)

Aggregations

EventTag (edu.stanford.bmir.protege.web.shared.event.EventTag)1 ProjectEvent (edu.stanford.bmir.protege.web.shared.event.ProjectEvent)1 UpdateEntityTagsResult (edu.stanford.bmir.protege.web.shared.tag.UpdateEntityTagsResult)1 Nonnull (javax.annotation.Nonnull)1