Examples of ViewNotFoundException


Examples of com.asual.summer.core.ViewNotFoundException

  @RequestMapping(value="/{value}", method=RequestMethod.GET)
  @ResponseViews({JsonView.class, XmlView.class})
  public ModelAndView view(@PathVariable("value") String value) {
    Technology technology = Technology.find(value);
    if (technology == null) {
      throw new ViewNotFoundException();
    }
    return new ModelAndView("/view", new ModelMap(technology));
  }
View Full Code Here

Examples of com.asual.summer.core.ViewNotFoundException

 
  @RequestMapping("/{value}/edit")
  public ModelAndView edit(@PathVariable("value") String value) {
    Technology technology = Technology.find(value);
    if (technology == null) {
      throw new ViewNotFoundException();
    }
    ModelMap model = new ModelMap();
    model.addAllAttributes(Arrays.asList(technology, License.list(), Status.list()));
    return new ModelAndView("/edit", model);
  }
View Full Code Here

Examples of com.asual.summer.core.ViewNotFoundException

  @RequestMapping(value="/{value}", method=RequestMethod.GET)
  @ResponseViews({JsonView.class,XmlView.class})
  public ModelAndView view(@PathVariable("value") String value) {
    Technology technology = Technology.find(value);
    if (technology == null) {
      throw new ViewNotFoundException();
    }
    return new ModelAndView("/view", new ModelMap(technology));
  }
View Full Code Here

Examples of com.asual.summer.core.ViewNotFoundException

 
  @RequestMapping("/{value}/edit")
  public ModelAndView edit(@PathVariable("value") String value) {
    Technology technology = Technology.find(value);
    if (technology == null) {
      throw new ViewNotFoundException();
    }
    ModelMap model = new ModelMap();
    model.addAllAttributes(Arrays.asList(technology, License.list(), Status.list()));
    return new ModelAndView("/edit", model);
  }
View Full Code Here

Examples of com.asual.summer.core.ViewNotFoundException

  }

  public View resolveViewName(String viewName, Locale locale) throws Exception {
    View view = super.resolveViewName(viewName, locale);
    if (view == null) {
      throw new ViewNotFoundException();
    }
    return view;
  }
View Full Code Here

Examples of com.asual.summer.core.ViewNotFoundException

    String viewName = findViewName(prefix, uri, suffix, false);
    if (viewName != null) {
      return viewName;
    }
   
    throw new ViewNotFoundException();
  }
View Full Code Here

Examples of com.facebook.presto.spi.ViewNotFoundException

    @Override
    public void dropView(ConnectorSession session, SchemaTableName viewName)
    {
        String view = getViews(session, viewName.toSchemaTablePrefix()).get(viewName);
        if (view == null) {
            throw new ViewNotFoundException(viewName);
        }

        try {
            metastore.dropTable(viewName.getSchemaName(), viewName.getTableName());
        }
        catch (TableNotFoundException e) {
            throw new ViewNotFoundException(e.getTableName());
        }
    }
View Full Code Here

Examples of com.facebook.presto.spi.ViewNotFoundException

    @Override
    public void dropView(ConnectorSession session, SchemaTableName viewName)
    {
        if (!viewExists(session, viewName)) {
            throw new ViewNotFoundException(viewName);
        }
        dao.dropView(connectorId, viewName.getSchemaName(), viewName.getTableName());
    }
View Full Code Here

Examples of com.facebook.presto.spi.ViewNotFoundException

    @Override
    public void dropView(ConnectorSession session, SchemaTableName viewName)
    {
        if (views.remove(viewName) == null) {
            throw new ViewNotFoundException(viewName);
        }
    }
View Full Code Here

Examples of com.facebook.presto.spi.ViewNotFoundException

    @Override
    public void dropView(ConnectorSession session, SchemaTableName viewName)
    {
        String view = getViews(session, viewName.toSchemaTablePrefix()).get(viewName);
        if (view == null) {
            throw new ViewNotFoundException(viewName);
        }

        try {
            metastore.dropTable(viewName.getSchemaName(), viewName.getTableName());
        }
        catch (TableNotFoundException e) {
            throw new ViewNotFoundException(e.getTableName());
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.