📄 staffmanager.java
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -