Search in sources :

Example 1 with SetProjectSharingSettingsAction

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

the class SharingSettingsPresenter method applyChangesAndGoToNextPlace.

private void applyChangesAndGoToNextPlace() {
    nextPlace.ifPresent(placeController::goTo);
    ProjectSharingSettings settings = new ProjectSharingSettings(projectId, view.getLinkSharingPermission(), view.getSharingSettings());
    dispatchServiceManager.execute(new SetProjectSharingSettingsAction(settings), new DispatchServiceCallbackWithProgressDisplay<SetProjectSharingSettingsResult>() {

        @Override
        public void handleSuccess(SetProjectSharingSettingsResult result) {
            permissionManager.firePermissionsChanged();
        }

        @Override
        public String getProgressDisplayTitle() {
            return "Updating sharing settings";
        }

        @Override
        public String getProgressDisplayMessage() {
            return "Please wait";
        }
    });
}
Also used : ProjectSharingSettings(edu.stanford.bmir.protege.web.shared.sharing.ProjectSharingSettings) SetProjectSharingSettingsAction(edu.stanford.bmir.protege.web.shared.sharing.SetProjectSharingSettingsAction) SetProjectSharingSettingsResult(edu.stanford.bmir.protege.web.shared.sharing.SetProjectSharingSettingsResult)

Aggregations

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