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

📄 iuserinfomanager.java

📁 这是本人在学习T4SH框架时
💻 JAVA
字号:
package com.zxx.tsh.service;

import java.io.Serializable;
import java.util.List;

import com.zxx.common.exception.DataAccessException;
import com.zxx.tsh.view.userinfo.vo.UserInfoVO;
import com.zxx.tsh.view.userinfo.vo.UserTypeVO;

public interface IUserInfoManager {
	
	/**
	 * 添加用户类型
	 * @return 用户类型ID
	 * @throws DataAccessException 
	 */
	public Serializable addUserType(UserTypeVO userTypeVO) throws DataAccessException;
	
	/**
	 * 方法描述:删除用户类型
	 * @param id 用户类型ID
	 * @return 删除是否成功的状态True或False
	 * @throws DataAccessException 
	 */
	public boolean deleteUserType(Serializable id) throws DataAccessException;
	
	/**
	 * 方法描述:编辑用户类型
	 * @param userTypeVo 用户类型Vo对象 
	 * @return 编辑是否成功的状态True或False
	 * @throws DataAccessException 
	 */
	public boolean editUserType(UserTypeVO userTypeVo) throws DataAccessException;
	
	/**
	 * 根据类型Id获得用户类型
	 * @param id 用户类型ID 
	 * @return 指定类型的对象
	 * @throws DataAccessException 
	 */
	public UserTypeVO getUserTypeById(Serializable id) throws DataAccessException;
	
	/**
	 * 方法描述:获得用户类型列表
	 * @return 全部类型列表
	 * @throws DataAccessException 
	 */
	public List<UserTypeVO> listAllUserType() throws DataAccessException;
	
	/**
	 * 方法描述:根据属性名及值查找相应用户类型
	 * @param propertyName 属性名
	 * @param  value 属性名对应的值
	 * @return 查找到的结果列表
	 * @throws DataAccessException 
	 */
	public List<UserTypeVO> listUserTypeByProperty(String propertyName, Object value) 
			throws DataAccessException;
	
	
	/**
	 * 添加用户
	 * @return 用户ID
	 * @throws DataAccessException 
	 */
	public Serializable addUser(UserInfoVO userInfoVO)throws DataAccessException;
	
	/**
	 * 方法描述:删除用户
	 * @param id 用户ID
	 * @return 删除是否成功的状态True或False
	 * @throws DataAccessException 
	 */
	public boolean deleteUserInfo(Serializable id) throws DataAccessException;
	
	/**
	 * 方法描述:根据用户Id获得用户信息实体
	 * @param id 用户ID 
	 * @return 指定Id的用户VO对象
	 * @throws DataAccessException 
	 */
	public UserInfoVO getUserInfoById(Serializable id) throws DataAccessException;
	
	/**
	 * 方法描述:用户登录的方法
	 * 实现逻辑:检查用户与userName和password相匹配的记录,如果存在则允许登录,即登录成功!
	 * @param vo 用户信息VO对象 
	 * @return 是否登录成功 True|False
	 * @throws DataAccessException 
	 */
	public boolean getUserInfoByLogin(UserInfoVO vo) throws DataAccessException;
	
}

⌨️ 快捷键说明

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