* @param password
* @param smspasswd
* @throws Exception
*/
private void initSession(String username,String password,String smspasswd) throws Exception{
UserContext currentUser = new UserContext(username,password,smspasswd);
HttpSession session = ActionContext.getActionContext().getHttpServletRequest().getSession();
Map<String,Object> acctMap = (Map<String,Object>)session.getAttribute("acctMap");
if(acctMap==null)
throw new Exception("����SESSION�л�ȡ�û���ϢacctMap!");
List<Map<String,Object>> subAccts = (List<Map<String,Object>>)acctMap.get("SUBACCTS");
if(subAccts==null)
throw new Exception("����ȡ�û���¼��BOMC���˺��б���ϢSUBACCTS!");
for(Map<String,Object> map:subAccts){
logger.info("���ʺ�["+username+"]�¹�BOMC���˺���Ϣ--start��");
logger.info("���˺�[APPACCTID]��"+map.get("APPACCTID"));
logger.info("���˺�[NAME]��"+map.get("NAME"));
logger.info("���˺�[LOCK]��"+map.get("LOCK"));
logger.info("���ʺ�["+username+"]�¹�BOMC���˺���Ϣ--end��");
}
currentUser.setSubAcct(subAccts);
session.setAttribute("SESSION_USER", currentUser);
}