Package org.hoteia.qalingo.core.pojo

Examples of org.hoteia.qalingo.core.pojo.RequestData


public class FaqController extends AbstractBackofficeQalingoController {

  @RequestMapping(BoUrls.FAQ_URL)
  public ModelAndView searchEngineSetting(final HttpServletRequest request, final HttpServletResponse response) throws Exception {
    ModelAndViewThemeDevice modelAndView = new ModelAndViewThemeDevice(getCurrentVelocityPath(request), BoUrls.FAQ.getVelocityPage());
        final RequestData requestData = requestUtil.getRequestData(request);
        final Locale locale = requestData.getLocale();

    final String pageKey = BoUrls.FAQ.getKey();
    final String title = getSpecificMessage(ScopeWebMessage.SEO, getMessageTitleKey(pageKey), locale);
    overrideSeoTitle(request, modelAndView, title);
   
View Full Code Here


  @RequestMapping(BoUrls.CONTEXT_URL)
  public ModelAndView context(final HttpServletRequest request, final Model model) throws Exception {
    ModelAndViewThemeDevice modelAndView = new ModelAndViewThemeDevice(getCurrentVelocityPath(request), BoUrls.CONTEXT.getVelocityPage());

        final RequestData requestData = requestUtil.getRequestData(request);
        final VelocityPageContextDataPojo context = new VelocityPageContextDataPojo();
       
        UrlPojo url = new UrlPojo();
        url.setCode(BoUrls.GET_CATALOG_AJAX.name());
        url.setUrl(backofficeUrlService.generateUrl(BoUrls.GET_CATALOG_AJAX, requestData));
View Full Code Here

  protected final Logger logger = LoggerFactory.getLogger(getClass());

  @RequestMapping("/connect-oauth-facebook.html*")
  public ModelAndView connectFacebook(final HttpServletRequest request, final HttpServletResponse response) throws Exception {
    final RequestData requestData = requestUtil.getRequestData(request);
   
    // SANITY CHECK
    if(!requestUtil.hasKnownCustomerLogged(request)){
      try {
          // CLIENT ID
View Full Code Here

  protected final Logger logger = LoggerFactory.getLogger(getClass());

  @RequestMapping("/connect-oauth-twitter.html*")
  public ModelAndView connectTwitter(final HttpServletRequest request, final HttpServletResponse response) throws Exception {
    final RequestData requestData = requestUtil.getRequestData(request);
   
    // SANITY CHECK
    if(!requestUtil.hasKnownCustomerLogged(request)){
      try {
          // CLIENT ID
View Full Code Here

    @Autowired
    protected JsonMapper jsonMapper;
   
  @RequestMapping("/callback-oauth-twitter.html*")
  public ModelAndView callBackTwitter(final HttpServletRequest request, final HttpServletResponse response) throws Exception {
    final RequestData requestData = requestUtil.getRequestData(request);
   
    // SANITY CHECK
    if(!requestUtil.hasKnownCustomerLogged(request)){
      try {

View Full Code Here

    @Autowired
    protected JsonMapper jsonMapper;
 
  @RequestMapping("/callback-oauth-google-account.html*")
  public ModelAndView callBackGoogleAccount(final HttpServletRequest request, final HttpServletResponse response) throws Exception {
    final RequestData requestData = requestUtil.getRequestData(request);
   
    // SANITY CHECK
    if(!requestUtil.hasKnownCustomerLogged(request)){
      try {

View Full Code Here

public class UserPersonalController extends AbstractBackofficeQalingoController {

    @RequestMapping(value = BoUrls.PERSONAL_DETAILS_URL, method = RequestMethod.GET)
    public ModelAndView personalDetails(final HttpServletRequest request, final Model model) throws Exception {
        ModelAndViewThemeDevice modelAndView = new ModelAndViewThemeDevice(getCurrentVelocityPath(request), BoUrls.PERSONAL_DETAILS.getVelocityPage());
        final RequestData requestData = requestUtil.getRequestData(request);
        final User currentUser = requestData.getUser();
       
        // User is already set by the abstract

        Object[] params = {currentUser.getLastname() + " " + currentUser.getFirstname() + " (" + currentUser.getLogin() + ")"};
        overrideDefaultSeoPageTitleAndMainContentTitle(request, modelAndView,  BoUrls.PERSONAL_DETAILS.getKey(), params);
View Full Code Here

    }
   
    @RequestMapping(value = BoUrls.PERSONAL_EDIT_URL, method = RequestMethod.GET)
    public ModelAndView displayPersonalEdit(final HttpServletRequest request, final Model model, @ModelAttribute(ModelConstants.USER_FORM) UserForm userForm) throws Exception {
        ModelAndViewThemeDevice modelAndView = new ModelAndViewThemeDevice(getCurrentVelocityPath(request), BoUrls.PERSONAL_EDIT.getVelocityPage());
        final RequestData requestData = requestUtil.getRequestData(request);
        final User currentUser = requestData.getUser();
       
        // User is already set by the abstract

        Object[] params = {currentUser.getLastname() + " " + currentUser.getFirstname() + " (" + currentUser.getLogin() + ")"};
        overrideDefaultSeoPageTitleAndMainContentTitle(request, modelAndView,  BoUrls.PERSONAL_EDIT.getKey(), params);
View Full Code Here

    /**
     *
     */
    @ModelAttribute(ModelConstants.USER_FORM)
    protected UserForm initUserForm(final HttpServletRequest request, final Model model) throws Exception {
        final RequestData requestData = requestUtil.getRequestData(request);
        final User currentUser = requestData.getUser();
        return backofficeFormFactory.buildUserForm(requestData, currentUser);
    }
View Full Code Here

    @Autowired
    protected JsonMapper jsonMapper;
 
  @RequestMapping("/callback-oauth-facebook.html*")
  public ModelAndView callBackFacebook(final HttpServletRequest request, final HttpServletResponse response) throws Exception {
    final RequestData requestData = requestUtil.getRequestData(request);
   
    // SANITY CHECK
    if(!requestUtil.hasKnownCustomerLogged(request)){
      try {

View Full Code Here

TOP

Related Classes of org.hoteia.qalingo.core.pojo.RequestData

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.