roleauthmanagerimpl.java

来自「本程序实现了一个访问控制系统」· Java 代码 · 共 58 行

JAVA
58
字号
//Decompiled by DJ v3.7.7.81 Copyright 2004 Atanas Neshkov  Date: 2006-2-2 8:53:34
//Home Page : http://members.fortunecity.com/neshkov/dj.html  - Check often for new version!
//Decompiler options: packimports(3)
//Source File Name:   RoleAuthManageBean.java

package org.appfuse.service.impl;

import java.util.List;

import org.appfuse.service.*;
import org.appfuse.dao.RoleAuthDAO;
import org.appfuse.model.RoleAuth;
import org.appfuse.util.exception.*;

public class RoleAuthManagerImpl
    extends BaseManager implements  RoleAuthManager{
    private RoleAuthDAO dao;

    /**
     * Set the DAO for communication with the data layer.
     *
     * @param dao
     */
    public void setRoleAuthDAO(RoleAuthDAO dao) {
        this.dao = dao;
    }

    /**
     * @see org.appfuse.service.UserManager#saveUser(org.appfuse.model.User)
     */
    public void saveRoleAuth(RoleAuth roleAuth) throws AppSystemException,
        AppBusinessException {
        try {
            dao.saveRoleAuth(roleAuth);
        }
        catch (Exception e) {
            log.error("保存失败!", e);
            throw new AppBusinessException(e.getMessage(), e,
                                           ExceptionConstants.SYS_GENERAL_ERR);
        }
    }

    /**
     * @see org.appfuse.service.UserManager#removeUser(java.lang.String)
     */
    public void removeRoleAuth(RoleAuth roleAuth) throws AppSystemException,
        AppBusinessException {
        try {
            dao.removeRoleAuth(roleAuth);
        }
        catch (Exception e) {
            log.error("删除失败!", e);
            throw new AppBusinessException(e.getMessage(), e,
                                           ExceptionConstants.SYS_GENERAL_ERR);
        }
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?