【Java开源代码栏目提醒】:以下是网学会员为您推荐的Java开源代码-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;
}
上一篇:
StaffManageAction.java
下一篇:
pbl在软件工程课程教学中的研究与应用