Search in sources :

Example 1 with GetNamedIndividualFrameResult

use of edu.stanford.bmir.protege.web.shared.dispatch.actions.GetNamedIndividualFrameResult in project webprotege by protegeproject.

the class GetNamedIndividualFrameActionHandler method execute.

@Nonnull
@Override
public GetNamedIndividualFrameResult execute(@Nonnull GetNamedIndividualFrameAction action, @Nonnull ExecutionContext executionContext) {
    NamedIndividualFrame frame = translator.getFrame(renderingManager.getRendering(action.getSubject()));
    String rendering = renderingManager.getShortForm(action.getSubject());
    LabelledFrame<NamedIndividualFrame> labelledFrame = new LabelledFrame<>(rendering, frame);
    logger.info(BROWSING, "{} {} retrieved NamedIndividual frame for {} ({})", action.getProjectId(), executionContext.getUserId(), action.getSubject(), labelledFrame.getDisplayName());
    return new GetNamedIndividualFrameResult(labelledFrame);
}
Also used : NamedIndividualFrame(edu.stanford.bmir.protege.web.shared.frame.NamedIndividualFrame) LabelledFrame(edu.stanford.bmir.protege.web.shared.frame.LabelledFrame) GetNamedIndividualFrameResult(edu.stanford.bmir.protege.web.shared.dispatch.actions.GetNamedIndividualFrameResult) Nonnull(javax.annotation.Nonnull)

Aggregations

GetNamedIndividualFrameResult (edu.stanford.bmir.protege.web.shared.dispatch.actions.GetNamedIndividualFrameResult)1 LabelledFrame (edu.stanford.bmir.protege.web.shared.frame.LabelledFrame)1 NamedIndividualFrame (edu.stanford.bmir.protege.web.shared.frame.NamedIndividualFrame)1 Nonnull (javax.annotation.Nonnull)1