Search in sources :

Example 1 with GetProjectSharingSettingsAction

use of edu.stanford.bmir.protege.web.shared.sharing.GetProjectSharingSettingsAction in project webprotege by protegeproject.

the class SharingSettingsPresenter method displaySharingSettings.

private void displaySharingSettings(AcceptsOneWidget container) {
    dispatchServiceManager.execute(new GetProjectSharingSettingsAction(projectId), result -> {
        ProjectSharingSettings settings = result.getProjectSharingSettings();
        view.setApplyChangesHandler(this::applyChangesAndGoToNextPlace);
        view.setCancelHandler(this::cancelChangesAndGoToNextPlace);
        view.setLinkSharingPermission(settings.getLinkSharingPermission());
        view.setSharingSettings(settings.getSharingSettings());
        container.setWidget(view);
    });
    activeProjectManager.getActiveProjectDetails(projectDetails -> {
        String displayName = projectDetails.map(ProjectDetails::getDisplayName).orElse("");
        view.setProjectTitle(displayName);
    });
}
Also used : ProjectSharingSettings(edu.stanford.bmir.protege.web.shared.sharing.ProjectSharingSettings) GetProjectSharingSettingsAction(edu.stanford.bmir.protege.web.shared.sharing.GetProjectSharingSettingsAction)

Aggregations

GetProjectSharingSettingsAction (edu.stanford.bmir.protege.web.shared.sharing.GetProjectSharingSettingsAction)1 ProjectSharingSettings (edu.stanford.bmir.protege.web.shared.sharing.ProjectSharingSettings)1