⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rootservice.java

📁 are are are are are are are are are are are are
💻 JAVA
字号:
/*
 * RootService.java
 *
 * Created on 2006年5月18日, 下午6:28
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package enova.service;

import java.util.List;
import enova.pojo.*;

/**
 *
 * @author vlinux
 */
public interface RootService {
    
    /*通过ID获取管理员*/
    public Root get(Integer rootId) throws StoreException;
    
    /*更新或者创建一个管理员,如果管理员帐号出现重复则抛出重复异常*/
    public void updateOrCreate(Root root) throws UniqueException, StoreException;
    
    /*通过管理员ID删除一个管理员*/
    public void delete(Integer rootId) throws NotExistException, StoreException;
    
    /*获取所有管理员*/
    public List getAll() throws StoreException;
    
    /*通过管理员帐号获取管理员*/
    public List getByUsername(String username) throws StoreException;
    
    /*管理员登录验证,抛出密码错误异常*/
    public Root loginVerify(String username,String password) throws PasswordErrorException, StoreException;
    
    /*管理员修改密码,如果原来密码错误则抛出密码错误异常*/
    public void changePassword(String username,String oldPassword,String newPassword) throws PasswordErrorException, StoreException;
    
}

⌨️ 快捷键说明

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