Package org.springframework.web.servlet.view

Examples of org.springframework.web.servlet.view.RedirectView


    albumService.changePhotosDescription(albumId, ids, descriptions);
    albumService.changeAlbumCover(ownerId, albumId, cover, ext);
    spotCharaService.updateCharacteristic(charaId, cover + "." + ext);
    WebHelper.removeSessionAttribute(null, Constant.SESSION_UPLOAD_OK_FILES);
    String url = buildRecirectPath("/spot/chara/detail/" + charaId);
    ModelAndView mav = new ModelAndView(new RedirectView(url));
    return mav;
  }
View Full Code Here


  public ModelAndView deleteSpotPhoto(@PathVariable("ownerId") long ownerId,
      @PathVariable("photoId") long photoId) {

    Long albumId = albumService.deletePhoto(ownerId, photoId);
    String url = buildRecirectPath(ALBUM_URL_PREFIX + "/view/" + albumId);
    ModelAndView mav = new ModelAndView(new RedirectView(url));
    return mav;
  }
View Full Code Here

    albumService.deleteAlbum(albumId, userId);
    String url = buildRecirectPath(URL_PREFIX + "/list/" + userId);
    url = url + "?curpage=" + page.getCurpage();

    ModelAndView mav = new ModelAndView(new RedirectView(url));
    return mav;
  }
View Full Code Here

    album.setId(albumId);
    albumService.editAlbum(album);
    String url = buildRecirectPath(URL_PREFIX + "/list/" + userId);
    url = url + "?curpage=" + page.getCurpage();

    ModelAndView mav = new ModelAndView(new RedirectView(url));
    return mav;
  }
View Full Code Here

    if (resultAlbum == null) {
      LOGGER.warn("数据异常,如果结果为空,应该早已抛出异常!");
      throw new OperateFailedException("创建相册失败");
    }
    String url = buildRecirectPath(URL_PREFIX + "/bupload/" + resultAlbum.getId());
    ModelAndView mav = new ModelAndView(new RedirectView(url));
    return mav;
  }
View Full Code Here

    albumService.changeAlbumCover(user.getId(), albumId, cover, ext);

    WebHelper.removeSessionAttribute(null, Constant.SESSION_UPLOAD_OK_FILES);
    String url = buildRecirectPath(URL_PREFIX + "/view/" + albumId);

    ModelAndView mav = new ModelAndView(new RedirectView(url));
    return mav;
  }
View Full Code Here

    }

    Long albumId = albumService.deletePhoto(userId, photoId);
    String url = buildRecirectPath(URL_PREFIX + "/view/" + albumId);

    ModelAndView mav = new ModelAndView(new RedirectView(url));
    return mav;
  }
View Full Code Here

    if (!oldDesc.equals(description)) {
      albumService.changePhotoDescription(photo.getAlbumId(), photoId, description);
    }

    String url = buildRecirectPath(URL_PREFIX + "/photo/" + photoId);
    ModelAndView mav = new ModelAndView(new RedirectView(url));
    return mav;
  }
View Full Code Here

        return modelAndView;
    }

    @RequestMapping(value = "/favicon.ico", method = RequestMethod.GET)
    public ModelAndView getFavicon() {
        return new ModelAndView(new RedirectView("/static/img/favicon.gif"));
    }
View Full Code Here

  public RedirectView signIn(@PathVariable String providerId, NativeWebRequest request) {
    ConnectionFactory<?> connectionFactory = connectionFactoryLocator.getConnectionFactory(providerId);
    MultiValueMap<String, String> parameters = new LinkedMultiValueMap<String, String>();
    preSignIn(connectionFactory, parameters, request);
    try {
      return new RedirectView(connectSupport.buildOAuthUrl(connectionFactory, request, parameters));
    } catch (Exception e) {
      logger.error("Exception while building authorization URL: ", e);
      return redirect(URIBuilder.fromUri(signInUrl).queryParam("error", "provider").build().toString());
    }
  }
View Full Code Here

TOP

Related Classes of org.springframework.web.servlet.view.RedirectView

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.