Class TransportOfferingStatusSearchComponentController

java.lang.Object
de.hybris.platform.addonsupport.controllers.AbstractAddOnController
de.hybris.platform.addonsupport.controllers.cms.AbstractCMSAddOnComponentController<T>
de.hybris.platform.travelacceleratorstorefront.controllers.cms.SubstitutingCMSAddOnComponentController<AbstractCMSComponentModel>
de.hybris.platform.traveladdon.controllers.cms.TransportOfferingStatusSearchComponentController

@Controller("TransportOfferingStatusSearchComponentController") @RequestMapping("/view/TransportOfferingStatusSearchComponentController") public class TransportOfferingStatusSearchComponentController extends SubstitutingCMSAddOnComponentController<AbstractCMSComponentModel>
Controller for the TransportOfferingStatusSearchComponent
  • Constructor Details

    • TransportOfferingStatusSearchComponentController

      public TransportOfferingStatusSearchComponentController()
  • Method Details

    • fillModel

      protected void fillModel(javax.servlet.http.HttpServletRequest request, org.springframework.ui.Model model, AbstractCMSComponentModel component)
      Specified by:
      fillModel in class de.hybris.platform.addonsupport.controllers.cms.AbstractCMSAddOnComponentController<AbstractCMSComponentModel>
    • getTransportOfferingStatusSearchForm

      @RequestMapping(value="/get-transport-offering-status-search-form", method=GET) public String getTransportOfferingStatusSearchForm(@RequestParam String componentUid, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.ui.Model model)
      Method called form the transportOfferingStatusComponent. It performs returns the html form for transportOfferingStatusSearch
      Returns:
      the html content for transportOfferingStatusSearch form
    • validateTransportOfferingStatusSearchForm

      @RequestMapping(value="/validate-transport-offering-status-form", method=POST) @ResponseBody public FormErrorResponseData validateTransportOfferingStatusSearchForm(@Valid @ModelAttribute("transportOfferingStatusForm") @Valid TransportOfferingStatusSearchForm transportOfferingStatusForm, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.Model model)
      Method called form the transportOfferingStatusComponent. It performs a form validation and returns a json object with a boolean value and a list of field errors.
      Parameters:
      transportOfferingStatusForm - as the input TransportOfferingStatusForm
      bindingResult - as the bindingResult of the form validation
      model -
      Returns:
      a json object with the results of the validation
    • getFormErrorResponseData

      protected FormErrorResponseData getFormErrorResponseData(org.springframework.validation.BindingResult bindingResult, boolean hasErrorFlag)
    • getTransportOfferingStatus

      @RequestMapping(value="/get-transport-offering-status-page", method=POST) public String getTransportOfferingStatus(@Valid @ModelAttribute("transportOfferingStatusForm") @Valid TransportOfferingStatusSearchForm transportOfferingStatusForm, org.springframework.validation.BindingResult bindingResult, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel)
      Method called from the transportOfferingStatusComponent. It performs a form validation and in case there are no errors, it does a redirect to the TransportOfferingStatusResult page
      Parameters:
      transportOfferingStatusForm - as the input TransportOfferingStatusForm
      bindingResult - as the bindingResult of the form validation
      redirectModel -
      Returns:
      a string representing the redirect to the TransportOfferingStatusResult page if there are no errors, the landing page otherwise
    • getTransportOfferingStatusSearchValidator

      protected TransportOfferingStatusSearchValidator getTransportOfferingStatusSearchValidator()
      Returns:
      the transportOfferingStatusSearchValidator
    • setTransportOfferingStatusSearchValidator

      public void setTransportOfferingStatusSearchValidator(TransportOfferingStatusSearchValidator transportOfferingStatusSearchValidator)
      Parameters:
      transportOfferingStatusSearchValidator - the transportOfferingStatusSearchValidator to set