Package edu.stanford.bmir.protege.web.shared.mail

Examples of edu.stanford.bmir.protege.web.shared.mail.SetEmailAddressAction


            if (userEmailTextBox.getText().trim().isEmpty() || isEmailValid) {
                win.getEl().mask("Saving email ...");
                final EditProfileHandler callback = new EditProfileHandler(win);
                final String userName = userNameTextBox.getText().trim();
                final UserId userId = UserId.getUserId(userName);
                DispatchServiceManager.get().execute(new SetEmailAddressAction(userId, userEmailTextBox.getText().trim()), new EmptySuccessWebProtegeCallback<SetEmailAddressResult>());
                NotificationServiceManager.getInstance().setNotificationDelay(userId,
                            NotificationType.COMMENT, NotificationInterval.fromString(commentsNotification.getItemText(commentsNotification.getSelectedIndex())), callback);
                    NotificationServiceManager.getInstance().setNotificationDelay(userId,
                            NotificationType.ONTOLOGY, NotificationInterval.fromString(ontologyNotification.getItemText(ontologyNotification.getSelectedIndex())), callback);
            } else {
View Full Code Here


        }
        controller.setDialogButtonHandler(DialogButton.OK, new WebProtegeDialogButtonHandler<Optional<EmailAddress>>() {
            @Override
            public void handleHide(Optional<EmailAddress> data, final WebProtegeDialogCloser closer) {
                if(data.isPresent()) {
                    DispatchServiceManager.get().execute(new SetEmailAddressAction(userId, data.get().getEmailAddress()), new AbstractWebProtegeAsyncCallback<SetEmailAddressResult>() {
                        @Override
                        public void onSuccess(SetEmailAddressResult result) {
                            closer.hide();
                        }
                    });
View Full Code Here

TOP

Related Classes of edu.stanford.bmir.protege.web.shared.mail.SetEmailAddressAction

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.