Example usage for org.springframework.web.bind.support SessionStatus setComplete

List of usage examples for org.springframework.web.bind.support SessionStatus setComplete

Introduction

In this page you can find the example usage for org.springframework.web.bind.support SessionStatus setComplete.

Prototype

void setComplete();

Source Link

Document

Mark the current handler's session processing as complete, allowing for cleanup of session attributes.

Usage

From source file:it.jugpadova.controllers.ReliabilityEditController.java

@RequestMapping(method = RequestMethod.POST)
@Validation(view = FORM_VIEW)/*  w  w  w . ja  v a2 s . c o  m*/
protected String update(HttpServletRequest request, @ModelAttribute(ATTRIBUTE_JUGGER) Jugger jugger,
        BindingResult result, SessionStatus status) {
    servicesBo.updateReliability(jugger, Utilities.getBaseUrl(request));
    status.setComplete();
    return "redirect:/adminjugger/juggersearch.form";
}

From source file:org.terasoluna.tourreservation.app.reservetour.ReserveTourController.java

/**
 * redirects to the reservation completion page
 * @return/*from www.j  a  v  a2s  .  co  m*/
 */
@RequestMapping(value = "reserve", method = RequestMethod.GET, params = "complete")
public String reserveComplete(SessionStatus status) {
    status.setComplete();
    return "reservetour/reserveComplete";
}

From source file:fr.unistra.di.metier.dip.ent.portal.portlets.aboutiframe.ConfigController.java

/**
 * on Form cancel  leave CONFIG/*from w  ww.  j  ava2  s.c  o  m*/
 * @param request
 * @param response
 */
@RequestMapping(params = "action=cancel")
public void cancel(ActionRequest request, ActionResponse response, SessionStatus status) {
    // reset From data
    status.setComplete();
    // exit CONFIG PortletMode to go to VIEW PortletMode
    try {
        response.setPortletMode(PortletConstants.PORTLET_MODE_VIEW);
    } catch (PortletModeException e) {
        // VIEW is always an allowed PortletMode
    }
}

From source file:com.benfante.minimark.controllers.AssessmentController.java

@RequestMapping
public String list(Model model, SessionStatus status) {
    status.setComplete(); // clean start
    List<Assessment> assessments = assessmentDao
            .findByTeacherUsername(userProfileBo.getAuthenticatedUsername());
    model.addAttribute("assessments", assessments);
    return LIST_VIEW;
}

From source file:org.wallride.web.controller.admin.customfield.CustomFieldSearchController.java

@RequestMapping(params = "query")
public String search(@PathVariable String language, String query, Model model, SessionStatus sessionStatus,
        RedirectAttributes redirectAttributes) {
    sessionStatus.setComplete();

    for (Map.Entry<String, Object> mapEntry : model.asMap().entrySet()) {
        redirectAttributes.addFlashAttribute(mapEntry.getKey(), mapEntry.getValue());
    }// w  ww . j a v  a2 s .  c o  m
    String url = UriComponentsBuilder.fromPath("/_admin/{language}/customfields/index").query(query)
            .buildAndExpand(language).encode().toUriString();
    return "redirect:" + url;
}

From source file:cherry.sqlman.tool.load.SqlLoadControllerImpl.java

@Override
public ModelAndView init(String redirTo, Integer ref, Authentication auth, Locale locale,
        SitePreference sitePref, NativeWebRequest request, SessionStatus status) {
    status.setComplete();
    return redirect(redirectOnInit(redirTo, ref)).build();
}

From source file:org.wallride.web.controller.admin.user.UserSearchController.java

@RequestMapping(params = "query")
public String search(@PathVariable String language, String query, Model model, SessionStatus sessionStatus,
        RedirectAttributes redirectAttributes) {
    sessionStatus.setComplete();

    for (Map.Entry<String, Object> mapEntry : model.asMap().entrySet()) {
        redirectAttributes.addFlashAttribute(mapEntry.getKey(), mapEntry.getValue());
    }//from   w  ww . j  a  va2s .com
    String url = UriComponentsBuilder.fromPath("/_admin/{language}/users/index").query(query)
            .buildAndExpand(language).encode().toUriString();
    return "redirect:" + url;
}

From source file:org.wallride.web.controller.admin.comment.CommentSearchController.java

@RequestMapping(params = "query")
public String query(@PathVariable String language, String query, Model model, SessionStatus sessionStatus,
        RedirectAttributes redirectAttributes) {
    sessionStatus.setComplete();

    for (Map.Entry<String, Object> mapEntry : model.asMap().entrySet()) {
        redirectAttributes.addFlashAttribute(mapEntry.getKey(), mapEntry.getValue());
    }//w  ww  . j a v  a2s. c o  m
    String url = UriComponentsBuilder.fromPath("/_admin/{language}/comments/index").query(query)
            .buildAndExpand(language).encode().toUriString();
    return "redirect:" + url;
}

From source file:cherry.example.web.applied.ex10.AppliedEx10ControllerImpl.java

@Override
public ModelAndView init(String redirTo, Authentication auth, Locale locale, SitePreference sitePref,
        NativeWebRequest request, SessionStatus status) {

    status.setComplete();

    return redirect(redirectOnInit(redirTo)).build();
}

From source file:cherry.example.web.applied.ex10.AppliedEx10ControllerImpl.java

@Override
public ModelAndView completed(long id, Authentication auth, Locale locale, SitePreference sitePref,
        NativeWebRequest request, SessionStatus status) {

    status.setComplete();

    AppliedEx10Form f = service.findById(id);
    shouldExist(f, AppliedEx10Form.class, id);
    return withoutView().addObject(f).build();
}