Package com.mossle.auth.support

Examples of com.mossle.auth.support.CheckRoleException


public class RoleDefChecker implements MessageSourceAware {
    private MessageSourceAccessor messages;

    public void check(RoleDef roleDef) {
        if ((roleDef.getId() != null) && (roleDef.getId() == 1)) {
            throw new CheckRoleException(messages.getMessage(
                    "auth.superuser.edit", "不允许修改超级管理员角色"));
        }
    }
View Full Code Here


public class RoleChecker implements MessageSourceAware {
    private MessageSourceAccessor messages;

    public void check(Role role) {
        if ((role.getId() != null) && (role.getId() == 1)) {
            throw new CheckRoleException(messages.getMessage(
                    "auth.superuser.edit", "不允许修改超级管理员角色"));
        }
    }
View Full Code Here

TOP

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

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.