use of edu.stanford.bmir.protege.web.shared.perspective.GetPerspectivesResult in project webprotege by protegeproject.
the class LoadProjectInNewWindowRequestHandlerImpl method handleLoadProjectInNewWindow.
@Override
public void handleLoadProjectInNewWindow(final ProjectId projectId) {
UserId userId = loggedInUserProvider.getCurrentUserId();
dispatchServiceManager.execute(new GetPerspectivesAction(projectId, userId), new DispatchServiceCallback<GetPerspectivesResult>() {
@Override
public void handleSuccess(GetPerspectivesResult result) {
ImmutableList<PerspectiveId> perspectives = result.getPerspectives();
handleOpenInNewWindow(perspectives, projectId);
}
});
}
use of edu.stanford.bmir.protege.web.shared.perspective.GetPerspectivesResult in project webprotege by protegeproject.
the class GetPerspectivesActionHandler method execute.
@Nonnull
@Override
public GetPerspectivesResult execute(@Nonnull GetPerspectivesAction action, @Nonnull ExecutionContext executionContext) {
ProjectId projectId = action.getProjectId();
UserId userId = action.getUserId();
ImmutableList<PerspectiveId> perspectives = perspectivesManager.getPerspectives(projectId, userId);
return new GetPerspectivesResult(perspectives);
}
Aggregations