Package com.boco.bomc.vpn.service

Examples of com.boco.bomc.vpn.service.MainUserService


    String cpuSerial = HttpUtils.getStringParameter("cpuSerial");
    logger.info(">>>ClientInfo:computerName["+computerName+"],userName["+userName+"],ipAddr["+ipAddr+"],macAddr["+macAddr+"],cpuSerial["+cpuSerial+"]");
   
    //������У��
    if(!StringUtils.isEmpty(username)&&VPNConfig.getVpnApprove()){
      MainUserService service = new MainUserServiceImpl();
      try {
        MainUser mainUser = service.findByLoginName(username);
        if(mainUser==null||mainUser.getApprove()!=1){
          String json ="{\"status\":\"0\",\"message\":\"���ʺŲ��ڰ������У��������¼!\",\"result\":\"{}\"}";
          return new TextRenderer(json);       
        }
      } catch (ServiceException e) {
View Full Code Here


    else
      page.setPageNum(1);
    if(pageSize!=null&&!pageSize.equals("")){
      page.setPageSize(Integer.valueOf(pageSize));
    }
    MainUserService service = new MainUserServiceImpl();
    List<MainUser> mainUsers = null;
    try {
      page = service.getMainUsers(page,null);
    } catch (ServiceException e) {
      logger.error("�޷���ȡ�������û��б�", e);
      String json ="{\"status\":\"0\",\"message\":\"�޷���ȡ�������û��б�!\",\"result\":{}}";
      return new TextRenderer(json);
    }
View Full Code Here

    if(loginname==null||"".equals(loginname.trim())){
      String json = "{\"status\":\"0\",\"message\":\"��ֹ�������޶�Ӧ�����ʺ�!\",\"result\":\"{��ֹ�������޶�Ӧ�����ʺ�!}\"}";
      return new TextRenderer(json);
    }
   
    MainUserService service = new MainUserServiceImpl();
    int ret= 0;
    try {
      if (approve.equals("1")) {
        ret = service.enableMainUser(loginname);
      } else if (approve.equals("0")) {
        ret = service.disabledMainUser(loginname);
      }
    } catch (ServiceException e) {
      String json = "{\"status\":\"0\",\"message\":\"�����û�ʧ��!\",\"result\":\""+e.getMessage()+"\"}";
      return new TextRenderer(json);
    }
View Full Code Here

TOP

Related Classes of com.boco.bomc.vpn.service.MainUserService

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.