Search in sources :

Example 1 with GetPerspectivesAction

use of edu.stanford.bmir.protege.web.shared.perspective.GetPerspectivesAction 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);
        }
    });
}
Also used : GetPerspectivesResult(edu.stanford.bmir.protege.web.shared.perspective.GetPerspectivesResult) UserId(edu.stanford.bmir.protege.web.shared.user.UserId) ImmutableList(com.google.common.collect.ImmutableList) GetPerspectivesAction(edu.stanford.bmir.protege.web.shared.perspective.GetPerspectivesAction)

Aggregations

ImmutableList (com.google.common.collect.ImmutableList)1 GetPerspectivesAction (edu.stanford.bmir.protege.web.shared.perspective.GetPerspectivesAction)1 GetPerspectivesResult (edu.stanford.bmir.protege.web.shared.perspective.GetPerspectivesResult)1 UserId (edu.stanford.bmir.protege.web.shared.user.UserId)1