staffmanager.java
来自「飞机订票系统」· Java 代码 · 共 49 行
JAVA
49 行
package org.appfuse.service;
import java.util.List;
import org.appfuse.dao.StaffDAO;
import org.appfuse.model.*;
import org.appfuse.util.exception.*;
public interface StaffManager {
/**
* Set the DAO for communication with the data layer.
*
* @param dao
*/
public void setStaffDAO(StaffDAO dao);
/**
* @see org.appfuse.service.UserManager#getUser(java.lang.String)
*/
public Staff getStaff(int staffno) throws AppSystemException,
AppBusinessException;
public Staff getStaff(String staffname, String staffpwd) throws
AppSystemException, AppBusinessException;
/**
* @see org.appfuse.service.UserManager#getUsers(org.appfuse.model.User)
*/
public List getStaffs(Staff staff) throws AppSystemException,
AppBusinessException;
/**
* @see org.appfuse.service.UserManager#saveUser(org.appfuse.model.User)
*/
public void saveStaff(Staff staff) throws AppSystemException,
AppBusinessException;
/**
* @see org.appfuse.service.UserManager#removeUser(java.lang.String)
*/
public void removeStaff(int staffno) throws AppSystemException,
AppBusinessException;
public List getRoles(int staffno) throws AppSystemException,
AppBusinessException;
// public void removeStaffRole(StaffRole staffRole) throws AppSystemException,
// AppBusinessException;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?