| java.lang.Object dlog4j.UserManager
UserManager | public class UserManager (Code) | | author: Liudong author: 网站注册用户管理器 |
Method Summary | |
public static UserForm | createUser(Session ssn, UserForm user) | public static void | fillUserWithLogAndReplyCount(Session ssn, UserForm user, boolean withLogsAndReplyies) | public static UserForm | getUser(Session ssn, SiteForm site, String loginName) | public static UserForm | getUser(Session ssn, int userid, boolean withDetails) | public static UserForm | getUserByName(Session ssn, SiteForm site, String nickname) | public static int | getUserCount(Session ssn, SiteForm site, int role, String username) | public static List | listUsers(Session ssn, SiteForm site, int from, int count, String username) | public static List | listUsers(Session ssn, SiteForm site, int count, String username) | public static UserForm | updateUser(Session ssn, UserForm user) |
PASSWORD_CRYPT_KEY | final public static String PASSWORD_CRYPT_KEY(Code) | | |
createUser | public static UserForm createUser(Session ssn, UserForm user) throws HibernateException(Code) | | 创建用户
Parameters: ssn - Parameters: user - throws: HibernateException - |
fillUserWithLogAndReplyCount | public static void fillUserWithLogAndReplyCount(Session ssn, UserForm user, boolean withLogsAndReplyies) throws HibernateException(Code) | | 填充用户的日记和评论信息数
Parameters: ssn - Parameters: user - Parameters: withLogsAndReplyies - throws: HibernateException - |
getUser | public static UserForm getUser(Session ssn, SiteForm site, String loginName) throws HibernateException(Code) | | 读取用户资料
Parameters: ssn - Parameters: site - Parameters: loginName - throws: HibernateException - |
getUser | public static UserForm getUser(Session ssn, int userid, boolean withDetails) throws HibernateException(Code) | | 获取某个用户的详细资料信息
Parameters: ssn - Parameters: userid - Parameters: withDetails - throws: HibernateException - |
getUserByName | public static UserForm getUserByName(Session ssn, SiteForm site, String nickname) throws HibernateException(Code) | | 通过用户名来获取用户资料,用于注册用户是判断是否重名
Parameters: ssn - Parameters: site - Parameters: nickname - throws: HibernateException - |
getUserCount | public static int getUserCount(Session ssn, SiteForm site, int role, String username) throws HibernateException(Code) | | 获取指定站点某个类型用户的数量(该方法用于日记后台用户维护user_list.jsp)
Parameters: ssn - Parameters: site - Parameters: role - throws: HibernateException - |
listUsers | public static List listUsers(Session ssn, SiteForm site, int from, int count, String username) throws HibernateException(Code) | | 子网站注册用户信息查询(该方法用于members.jsp用于显示最近N个注册用户)
Parameters: ssn - Parameters: site - Parameters: count - throws: SQLException - |
listUsers | public static List listUsers(Session ssn, SiteForm site, int count, String username) throws HibernateException(Code) | | 子网站注册用户信息查询(该方法用于members.jsp用于显示最近N个注册用户)
Parameters: ssn - Parameters: site - Parameters: count - throws: SQLException - |
updateUser | public static UserForm updateUser(Session ssn, UserForm user) throws HibernateException(Code) | | 用户资料修改
Parameters: ssn - Parameters: user - throws: HibernateException - |
|
|