Package com.mossle.auth.support

Examples of com.mossle.auth.support.CheckUserStatusException


public class UserStatusChecker implements MessageSourceAware {
    private MessageSourceAccessor messages;

    public void check(UserStatus userStatus) {
        if ((userStatus.getId() != null) && (userStatus.getId() == 1)) {
            throw new CheckUserStatusException(messages.getMessage(
                    "user.superuser.edit", "不允许修改超级管理员"));
        }
    }
View Full Code Here

TOP

Related Classes of com.mossle.auth.support.CheckUserStatusException

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.