Package com.skyline.common.bean

Examples of com.skyline.common.bean.Page


      mav.setViewName(ViewPaths.USER_LOGIN);
      return mav;
    }
    Spot spotInfo = spotService.getSpot(spotId);
    mav.addObject("spotInfo", spotInfo);
    Page page = new Page();
    page.setSize(listRefrencePageSize);
    if (refType.equals("ALBUM")) {
      List<Album> albumList = albumService
          .listAlbumsOfUserWithoutPortrait(user.getId(),
              user.getId(), Authority.PUBLIC, page);
      mav.addObject("albumList", albumList);
View Full Code Here


    {
      mav.setViewName(ViewPaths.SPOT_NOTFOUND);
      return mav;
    }
    if (ref.getRefrenceType() == SpotRefrenceType.ALBUM) {
      Page page = new Page();
      page.setSize(listRefrencePageSize);
      List<Photo> photoList = albumService.listPhotosOfAlbum(
          ref.getRefrenceId(), 0, Authority.PUBLIC, page, true);
      mav.addObject("refInfo", ref);
      mav.addObject("photoList", photoList);
      mav.setViewName(ViewPaths.SPOTREFRENCE_PHOTOVIEW);
View Full Code Here

  public ModelAndView querySpotRefrenceDetail(
      @PathVariable("refrenceType") SpotRefrenceType refrenceType,
      @PathVariable("spotId") Long spotId) {
    ModelAndView mav = new ModelAndView();
    if (refrenceType == SpotRefrenceType.ALBUM) {
      Page page = new Page();
      page.setSize(1);
      SpotRefrence spotRef = spotRefrenceService
          .getRefrencesBySpotIdAndType(spotId,
              SpotRefrenceType.ALBUM, page).get(0);
      Album album = albumService.getAlbumById(spotRef.getRefrenceId());
      List<Photo> photosList = albumService.listPhotosOfAlbum(
View Full Code Here

    photoDao = (PhotoDao) ctx.getBean("photoDao");
  }

  @Test
  public void queryAlbumsByUserIdWithPortrait() {
    Page page = new Page();
    page.setSize(10);
    List<Album> albums = albumDao.queryAlbumDetailsByUserIdWithPortrait(1, 0,
        page);
    System.out.println(albums.size());
  }
View Full Code Here

//  }


  @Test
  public void addAlbumVisitCount() {
    Page page = new Page();
    page.setSize(10);
    // albumDao.addVisitCount(1);
  }
View Full Code Here

    // albumDao.addVisitCount(1);
  }

  @Test
  public void queryPhotosWithDetailOfAlbum() {
    Page page = new Page();
    page.setSize(20);
    List<Photo> photos = photoDao.queryPhotosWithDetailOfAlbum(1, 0,page);
    System.out.println(photos.size());
  }
View Full Code Here

    if (user == null) {
      mav.setViewName(ViewPaths.USER_LOGIN);
      return mav;
    }
    Integer authority = Authority.PUBLIC;
    Page page = new Page();
    page.setSize(6);
    Spot spot = spotService.view(spotId);
    if (user.getId().equals(spot.getAdministratorId())) {
      authority = Authority.ADMIN;
    }
    List<SpotCharacteristic> scList = spotCharaService.queryCharacteristicBySpotId(spotId,
View Full Code Here

    mav.setViewName(ViewPaths.SPOT_INVITE);

    User user = WebHelper.getSessionAttribute(null, Constant.SESSION_USER);
    long userId = user.getId();

    Page page = new Page();
    page.setCurpage(5);
    page.setSize(20);
    page.setTotal(120);

    ArrayList<Fan> fanList = null;
    fanList = (ArrayList<Fan>) attentionService.queryFans(userId, page);
    WebHelper.setSessionAttribute(null, Constant.SESSION_FANS, fanList);
    mav.addObject("fanList", fanList);
View Full Code Here

TOP

Related Classes of com.skyline.common.bean.Page

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.