Examples of NotLoginException


Examples of com.skyline.base.exception.NotLoginException

  @RequestMapping(value = "/photoupload", method = RequestMethod.GET)
  public ModelAndView photoUploadRequest() {
    User user = (User) WebHelper.getSessionAttribute(null, Constant.SESSION_USER);
    if (user == null) {
      throw new NotLoginException("上传头像必须登录");
    }

    long ownerId = user.getId();
    Album portraitAlbum = albumService.getUserPortraitAlbum(ownerId);
    Photo portraitPhoto = albumService.getCurrentPortraitPhotoFromAlbum(portraitAlbum);
View Full Code Here

Examples of com.skyline.base.exception.NotLoginException

  @RequestMapping(value = "/photoupload", method = RequestMethod.POST)
  public ModelAndView photoUploadOk(Integer x, Integer y, Integer size, String submitToken) {
    User user = (User) WebHelper.getSessionAttribute(null, Constant.SESSION_USER);
    if (user == null) {
      throw new NotLoginException("上传头像必须登录");
    }

    String errMsg = this.validateForm("portraitUploadForm", submitToken);
    if (errMsg != null) {
      return processValidationErrors("errMsg", errMsg, photoUploadRequest());
View Full Code Here

Examples of com.skyline.base.exception.NotLoginException

  @RequestMapping(value = "/{spotId}/editPortrait", method = RequestMethod.POST)
  public ModelAndView uploadPortraitSpotrequestOk(Long spotId, Integer x, Integer y,
      Integer size, String submitToken) {
    User user = (User) WebHelper.getSessionAttribute(null, Constant.SESSION_USER);
    if (user == null) {
      throw new NotLoginException("上传头像必须登录");
    }

    String errMsg = this.validateForm("portraitUploadForm", submitToken);
    if (errMsg != null) {
      return processValidationErrors("errMsg", errMsg, photoUploadRequest());
View Full Code Here

Examples of com.skyline.base.exception.NotLoginException

  @RequestMapping(value = "/photoupload", method = RequestMethod.GET)
  public ModelAndView photoUploadRequest() {
    User user = (User) WebHelper.getSessionAttribute(null, Constant.SESSION_USER);
    if (user == null) {
      throw new NotLoginException("上传头像必须登录");
    }

    long ownerId = user.getId();
    Album portraitAlbum = albumService.getUserPortraitAlbum(ownerId);
    Photo portraitPhoto = albumService.getCurrentPortraitPhotoFromAlbum(portraitAlbum);
View Full Code Here

Examples of com.skyline.base.exception.NotLoginException

  @RequestMapping(value = "/{spotId}/upload/{albumId}", method = RequestMethod.GET)
  public ModelAndView btachUpload(@PathVariable("spotId") Long spotId,
      @PathVariable("albumId") Long albumId) {
    User user = (User) WebHelper.getSessionAttribute(null, Constant.SESSION_USER);
    if (user == null) {
      throw new NotLoginException("上传照片必须登录");
    }
    Album album = albumService.getAlbumForChange(albumId, spotId);
    ModelAndView mav = new ModelAndView(ViewPaths.SPOT_UPLOADPHOTO);
    mav.addObject("album", album);
    // WebHelper.saveToken(request);
View Full Code Here

Examples of com.skyline.base.exception.NotLoginException

  @RequestMapping(value = "/joinUs", method = RequestMethod.GET)
  public ModelAndView inviteRequest() {
    ModelAndView mav = new ModelAndView();
    User user = (User) WebHelper.getSessionAttribute(null, Constant.SESSION_USER);
    if (user == null || user.getId() == 0) {
      throw new NotLoginException();
    } else {
      mav.setViewName(ViewPaths.INVITE_REQUEST);
    }
    return mav;
  }
View Full Code Here

Examples of com.skyline.base.exception.NotLoginException

  @RequestMapping(value = "/joinUs", method = RequestMethod.POST)
  public ModelAndView inviteExecute(String[] emails,int valideEmailCount) {
    ModelAndView mav = new ModelAndView();
    User user = (User) WebHelper.getSessionAttribute(null, Constant.SESSION_USER);
    if (user == null || user.getId() == 0) {
      throw new NotLoginException();
    } else {
      //System.out.println(valideEmailCount);
      inviteService.sendInvitation(emails, user,valideEmailCount);
      mav.setViewName(ViewPaths.INVITE_SUCCESS);
    }
View Full Code Here

Examples of com.skyline.base.exception.NotLoginException

      @PathVariable("spotId") Long spotId) {
    User user = (User) WebHelper.getSessionAttribute(null,
        Constant.SESSION_USER);
    ModelAndView mav = new ModelAndView();
    if (user == null) {
      throw new NotLoginException("上传照片必须登录");
    }
    Spot spot = spotService.getSpot(spotId);
    if (spot == null) {
      mav.setViewName(ViewPaths.SPOT_NOTFOUND);
      return mav;
View Full Code Here

Examples of com.skyline.base.exception.NotLoginException

      @PathVariable("ownerId") Long ownerId,
      @PathVariable("albumId") Long albumId) {
    User user = (User) WebHelper.getSessionAttribute(null,
        Constant.SESSION_USER);
    if (user == null) {
      throw new NotLoginException("添加REF必须登录");
    }
    ModelAndView mav = new ModelAndView(ViewPaths.SPOTREF_NEWALBUMREFOK);
    Spot spot = spotService.getSpot(ownerId);
    if (spot == null) {
      mav.setViewName(ViewPaths.SPOT_NOTFOUND);
View Full Code Here

Examples of com.skyline.base.exception.NotLoginException

      String refTitle, String refrenceDigest) {
    User user = (User) WebHelper.getSessionAttribute(null,
        Constant.SESSION_USER);
    ModelAndView mav = new ModelAndView();
    if (user == null) {
      throw new NotLoginException("添加REF必须登录");
    }
    Spot spot = spotService.getSpot(spotId);

    if (spot == null) {
      mav.setViewName(ViewPaths.SPOT_NOTFOUND);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.