Package org.springframework.social.popup.message

Examples of org.springframework.social.popup.message.Message


  @RequestMapping(value="/signup", method=RequestMethod.GET)
  public SignupForm signupForm(WebRequest request) {
    Connection<?> connection = providerSignInUtils.getConnectionFromSession(request);
    if (connection != null) {
      request.setAttribute("message", new Message(MessageType.INFO, "Your " + StringUtils.capitalize(connection.getKey().getProviderId()) + " account is not associated with a Spring Social Popup account. If you're new, please sign up."), WebRequest.SCOPE_REQUEST);
      return SignupForm.fromProviderUser(connection.fetchUserProfile());
    } else {
      return new SignupForm();
    }
  }
View Full Code Here

TOP

Related Classes of org.springframework.social.popup.message.Message

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.