Package pl.zgora.uz.wmie.fe.sps.business.service

Examples of pl.zgora.uz.wmie.fe.sps.business.service.AdministratorService


    String userName = req.getParameter("j_username");
    String password = req.getParameter("j_password");

    try {
      String targetPage = "/pages/index.jsp";
      AdministratorService administratorService = (AdministratorService) BusinessUtil
          .findBusiness("AdministratorService");
      List<Criterion> criterions = new ArrayList<Criterion>();
      criterions.add(Restrictions.eq(Administrator.PROPERTY_USERLOGIN,
          userName));
      criterions.add(Restrictions.eq(Administrator.PROPERTY_USERPASSWORD,
          password));
      List<Administrator> result = administratorService
          .findByParams(criterions);
      if (result.size() > 0) {
        req.getSession().setAttribute("user", userName);
      } else {
        targetPage = "/pages/login/login.jsp?error=1";
View Full Code Here


      return field;
    }
  }
 
  private void prepareDataForSelect(HttpServletRequest request) {
    AdministratorService administratorService  = null;
    List<Administrator> admini = null;
    try {
      administratorService = (AdministratorService) BusinessUtil.findBusiness("AdministratorService");
    List<Criterion> criterions = new ArrayList<Criterion>();
    criterions.add(Restrictions.le(Administrator.PROPERTY_IDADMINISTRATOR, 20));
      admini = administratorService.findByParams(criterions);
    } catch (Exception e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }
    Map<String, String> data = new HashMap<String, String>();
View Full Code Here

TOP

Related Classes of pl.zgora.uz.wmie.fe.sps.business.service.AdministratorService

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.