Exemple #1
0
        public void modifyUserPerLevel(string username, int perLevel)
        {
            IDBUtil dBUtil = DBUtilFactory.getDBUtil("DBUtilImpl");
            User    user   = dBUtil.getUser(username);

            user.PerLevel = perLevel;
            dBUtil.modifyUser(username, 5, user);
        }
Exemple #2
0
        public void modifyUserPassword(string username, string pwd)
        {
            IDBUtil dBUtil = DBUtilFactory.getDBUtil("DBUtilImpl");
            User    user   = dBUtil.getUser(username);

            user.Pwd = pwd;
            dBUtil.modifyUser(username, 2, user);
        }
Exemple #3
0
        public void modifyUser(string username, User user)
        {
            IDBUtil dBUtil = DBUtilFactory.getDBUtil("DBUtilImpl");

            dBUtil.modifyUser(username, 0, user);
        }