Package org.hoteia.qalingo.core.web.servlet

Examples of org.hoteia.qalingo.core.web.servlet.ModelAndViewThemeDevice


    @Autowired
    protected ServerService serverService;
   
  @RequestMapping(value = BoUrls.CACHE_URL, method = RequestMethod.GET)
  public ModelAndView cache(final HttpServletRequest request, final HttpServletResponse response) throws Exception {
    ModelAndViewThemeDevice modelAndView = new ModelAndViewThemeDevice(getCurrentVelocityPath(request), BoUrls.CACHE.getVelocityPage());
    List<ServerStatus> severList = serverService.findServerList();
    modelAndView.addObject("severList", severList);
   
        return modelAndView;
  }
View Full Code Here


   
        return modelAndView;
  }
  @RequestMapping(value = "/flushCache.html", method = RequestMethod.POST)
  public ModelAndView flushCache(final HttpServletRequest request, final HttpServletResponse response) throws Exception {
    ModelAndViewThemeDevice modelAndView = new ModelAndViewThemeDevice(getCurrentVelocityPath(request), BoUrls.CACHE.getVelocityPage());
    String flag = request.getParameter(RequestConstants.REQUEST_PARAMETER_FLAG);

    String responseString = "";
    try{
    if(FLUSH_SCOPE.equals(flag)){
View Full Code Here

  @RequestMapping(FoUrls.PRODUCT_DETAILS_URL)
  public ModelAndView productDetails(final HttpServletRequest request, final HttpServletResponse response ,final Model model, @PathVariable(RequestConstants.URL_PATTERN_CATEGORY_CODE) final String categoryCode,
                      @PathVariable(RequestConstants.URL_PATTERN_PRODUCT_MARKETING_CODE) final String productMarketingCode,
                      @PathVariable(RequestConstants.URL_PATTERN_PRODUCT_SKU_CODE) final String productSkuCode,
                      @ModelAttribute(ModelConstants.PRODUCT_COMMENT_FORM) ProductCommentForm productCommentForm) throws Exception {
    ModelAndViewThemeDevice modelAndView = new ModelAndViewThemeDevice(getCurrentVelocityPath(request), FoUrls.PRODUCT_DETAILS.getVelocityPage());
        final RequestData requestData = requestUtil.getRequestData(request);

    CatalogCategoryVirtual catalogCategory = catalogCategoryService.getVirtualCatalogCategoryByCode(categoryCode, requestData.getVirtualCatalogCode(), requestData.getMasterCatalogCode());
    ProductMarketing productMarketing = productService.getProductMarketingByCode(productMarketingCode, new FetchPlan(productMarketingFetchPlans));
        ProductSku productSku = productService.getProductSkuByCode(productSkuCode, new FetchPlan(productSkuFetchPlans));
View Full Code Here

@Controller("customerProductCommentController")
public class CustomerProductCommentController extends AbstractCustomerController {

  @RequestMapping(FoUrls.PERSONAL_PRODUCT_COMMENT_LIST_URL)
  public ModelAndView customerProductComments(final HttpServletRequest request, final Model model) throws Exception {
    ModelAndViewThemeDevice modelAndView = new ModelAndViewThemeDevice(getCurrentVelocityPath(request), FoUrls.PERSONAL_PRODUCT_COMMENT_LIST.getVelocityPage());
    final RequestData requestData = requestUtil.getRequestData(request);
        final Customer currentCustomer = requestData.getCustomer();
   
    // WE RELOAD THE CUSTOMER FOR THE PERSISTANCE PROXY FILTER
    // IT AVOIDS LazyInitializationException: could not initialize proxy - no Session
View Full Code Here

@Controller("legalTermsController")
public class LegalTermsController extends AbstractBackofficeQalingoController {

  @RequestMapping(BoUrls.LEGAL_TERMS_URL)
  public ModelAndView legalTerms(final HttpServletRequest request, final HttpServletResponse response) throws Exception {
    ModelAndViewThemeDevice modelAndView = new ModelAndViewThemeDevice(getCurrentVelocityPath(request), BoUrls.LEGAL_TERMS.getVelocityPage());
        final RequestData requestData = requestUtil.getRequestData(request);
        final Locale locale = requestData.getLocale();
   
    final String pageKey = BoUrls.LEGAL_TERMS_KEY;
    final String title = getSpecificMessage(ScopeWebMessage.SEO, getMessageTitleKey(pageKey), locale);
View Full Code Here

@Controller("faqController")
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);
View Full Code Here

  @Autowired
  protected CoreMessageSource coreMessageSource;
 
  @RequestMapping(BoUrls.VELOCITY_CACHE_URL)
  public ModelAndView searchEngineSetting(final HttpServletRequest request) throws Exception {
    ModelAndViewThemeDevice modelAndView = new ModelAndViewThemeDevice(getCurrentVelocityPath(request), BoUrls.VELOCITY_CACHE.getVelocityPage());

    viewResolver.clearCache();

    coreMessageSource.clearCache();
View Full Code Here

@Controller("contextController")
public class ContextController extends AbstractBackofficeQalingoController {

  @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();
View Full Code Here

@Controller("timeoutController")
public class TimeoutController extends AbstractBackofficeQalingoController {

  @RequestMapping(BoUrls.TIMEOUT_URL)
  public ModelAndView timeout(final HttpServletRequest request, final HttpServletResponse response) throws Exception {
    ModelAndViewThemeDevice modelAndView = new ModelAndViewThemeDevice(getCurrentVelocityPath(request), (BoUrls.TIMEOUT.getVelocityPage()));
   
        return modelAndView;
  }
View Full Code Here

@Controller("userPersonalController")
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
View Full Code Here

TOP

Related Classes of org.hoteia.qalingo.core.web.servlet.ModelAndViewThemeDevice

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.