Package kr.or.javacafe.member.domain

Examples of kr.or.javacafe.member.domain.User


    return "/intro/welcome";
  }

  @RequestMapping("/people")
  public String people(Model model) {
    User param = new User();
    param.setRoleGrpId("G3");

    int intListCount = memberBO.getUserListCount(param);

    param.setStartNum(0);
    param.setEndNum(100);
   
    List<User> objList = memberBO.getUserList(param);
   
    model.addAttribute("objList", objList);
   
View Full Code Here


    Bbs objBbsInfo = boardBO.getBbsInfo(bbsId);
   
    // 게시판 권한 정보
    String strRoleRead = "";
    String strRoleWrite = "";   
    User objUserInfo = RoleUtil.getUserInfo();
    if (objUserInfo == null) {
      strRoleRead = RoleUtil.getRoleByBoardRead(objBbsInfo.getBbsRole(), "R", "G0");
      strRoleWrite = RoleUtil.getRoleByBoardRead(objBbsInfo.getBbsRole(), "W", "G0");
    } else {
      strRoleRead = RoleUtil.getRoleByBoardRead(objBbsInfo.getBbsRole(), "R", objUserInfo.getRoleGrpId());
      strRoleWrite = RoleUtil.getRoleByBoardRead(objBbsInfo.getBbsRole(), "W", objUserInfo.getRoleGrpId());
    }     
    // 목록 조회시 [읽기권한]이 없는 경우 로그인 페이지로 이동시킨다.
    if (strRoleRead == "") throw new UsernameNotFoundException("목록 조회시 접근한 게시판에 Read 권한이 존재하지않습니다.");

View Full Code Here

    Bbs objBbsInfo = boardBO.getBbsInfo(bbsId);

    // 게시판 권한 정보
    String strRoleRead = "";
    String strRoleWrite = "";   
    User objUserInfo = RoleUtil.getUserInfo();
    if (objUserInfo == null) {
      strRoleRead = RoleUtil.getRoleByBoardRead(objBbsInfo.getBbsRole(), "R", "G0");
      strRoleWrite = RoleUtil.getRoleByBoardRead(objBbsInfo.getBbsRole(), "W", "G0");
    } else {
      strRoleRead = RoleUtil.getRoleByBoardRead(objBbsInfo.getBbsRole(), "R", objUserInfo.getRoleGrpId());
      strRoleWrite = RoleUtil.getRoleByBoardRead(objBbsInfo.getBbsRole(), "W", objUserInfo.getRoleGrpId());
    }     
    // 내용 조회시 [읽기권한]이 없는 경우 로그인 페이지로 이동시킨다.
    if (strRoleRead == "") throw new UsernameNotFoundException("내용 조회시 접근한 게시판에 Read 권한이 존재하지않습니다.");


    // 게시판 정보
    Article article = new Article();
    article.setBbsId(bbsId);

    // Page 정보
    if (page == null) page = "1";
    if (page.equals("")) page = "1";
    int totalRows = boardBO.getListArticleCount(article);
    int rowRange = m_intRowRange;
    int pageRange = m_intPageRange;
    int pageNum = Integer.parseInt(page);
    String pageURL = "/board/list/BBS_ID/" + bbsId;

    PagingHelper pHelper = PagingHelper.instance;
    pHelper.init(totalRows, rowRange, pageRange, pageNum);

    String pageHTML = pHelper.getPagingHTML(single, pageURL);
   
    int startNum = pHelper.getStartRownum();
    int endNum = pHelper.getEndRownum();

    Article objViewArticle = null;

    article.setStartBbsThread(startNum);
    article.setEndBbsThread(endNum);
    List<Article> objArticleList = boardBO.listArticle(article);

    // 사용자 정보
    String strId = "";
    if (objUserInfo != null) strId = objUserInfo.getId();
   
    // 권한정보
    String strAuth = "";
    if (objUserInfo != null) {
      strAuth = objUserInfo.getRoleGrpId();
    }
   
    Map objMap = new HashMap();
   
    objMap.put("userRole", strAuth);
View Full Code Here

      WebApplicationContext ctx = WebApplicationContextUtils.getWebApplicationContext(sc);    
      //ApplicationContext applicationContext = WebApplicationContextUtils.getWebApplicationContext(sc);
     
      MemberDAO memberDAO = (MemberDAO)ctx.getBean("memberDAOImpl");

      User param = new User();
      param.setId(empNo);
      User user = memberDAO.selectUser(param);
     
      if (null != user) {
        return user.getName();
      } else {
        return "";
      }
    }
   
View Full Code Here

 
  @RequestMapping(value = "/memberRole/list", method = RequestMethod.GET)
  public String memberRole(Model model) {
       
    User param = new User();

    int intListCount = memberBO.getUserListCount(param);
   
    param.setStartNum(0);
    param.setEndNum(100);
   
    List<User> objList = memberBO.getUserList(param);
   
    model.addAttribute("objList", objList);
   
View Full Code Here

    return "manage/memberRole";
  }
 
  @RequestMapping(value = "/memberRole/view/{userId}", method = RequestMethod.GET)
  public String memberRoleEdit(@PathVariable String userId, Model model) {
    User param = new User();
    param.setId(userId);
   
    model.addAttribute("user", memberBO.viewUser(param));
    model.addAttribute("roleGrpCodeList", codeBO.listRoleGrpForCombo());
   
    return "manage/memberRoleEdit";
View Full Code Here

 

  @RequestMapping(value = "/memberTeam/list", method = RequestMethod.GET)
  public String memberTeam(Model model) {
       
    User param = new User();

    int intListCount = memberBO.getUserListCount(param);
   
    param.setStartNum(0);
    param.setEndNum(100);
   
    List<User> objList = memberBO.getUserList(param);
   
    model.addAttribute("objList", objList);
   
View Full Code Here

    return "manage/memberTeam";
  }

  @RequestMapping(value = "/memberTeam/view/{userId}", method = RequestMethod.GET)
  public String memberTeamEdit(@PathVariable String userId, Model model) {
    User param = new User();
    param.setId(userId);
   
    model.addAttribute("user", memberBO.viewUser(param));
    model.addAttribute("teamCodeList", codeBO.listCodeCategoryForCombo("TEAM_CD"));
   
    return "manage/memberTeamEdit";
View Full Code Here

 
 
  @RequestMapping(value = "/memberHistory/list", method = RequestMethod.GET)
  public String memberHistory(Model model) {
       
    User param = new User();

    int intListCount = memberBO.getUserListCount(param);

    param.setStartNum(0);
    param.setEndNum(100);
   
    List<User> objList = memberBO.getUserList(param);
   
    model.addAttribute("objList", objList);
   
View Full Code Here

 
 
  @RequestMapping(value = "/managerInfo/list", method = RequestMethod.GET)
  public String managerInfo(Model model) {
       
    User param = new User();
    param.setRoleGrpId("G3");

    int intListCount = memberBO.getUserListCount(param);

    param.setStartNum(0);
    param.setEndNum(100);
   
    List<User> objList = memberBO.getUserList(param);
   
    model.addAttribute("objList", objList);
   
View Full Code Here

TOP

Related Classes of kr.or.javacafe.member.domain.User

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.