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);
});
}
Aggregations