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

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


        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

Related Classes of edu.stanford.bmir.protege.web.shared.user.UnrecognizedUserNameException

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.