Examples of UnrecognizedUserNameException


Examples of edu.stanford.bmir.protege.web.shared.user.UnrecognizedUserNameException

    }

    public void sendPasswordReminder(String userName) throws UnrecognizedUserNameException {
        String email = MetaProjectManager.getManager().getUserEmail(userName);
        if (email == null) {
            throw new UnrecognizedUserNameException("User " + userName + " does not have an email configured.");
        }
        changePassword(userName, EmailConstants.RESET_PASSWORD);
        App.get().getMailManager().sendMail(email, EmailConstants.FORGOT_PASSWORD_SUBJECT, EmailConstants.FORGOT_PASSWORD_EMAIL_BODY);
    }
View Full Code Here

Examples of edu.stanford.bmir.protege.web.shared.user.UnrecognizedUserNameException

        if (metaProject == null) {
            throw new IllegalStateException("Metaproject is set to null");
        }
        User user = metaProject.getUser(userName);
        if (user == null) {
            throw new UnrecognizedUserNameException(userName);
        }
        return user.getEmail();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.