@Controller @RequestMapping(value="/plugin/catalogmanager") public class CatalogManagerController extends MolgenisPluginController
| Modifier and Type | Field and Description |
|---|---|
static String |
ID |
static String |
LOAD_LIST_URI |
static String |
URI |
static String |
VIEW_NAME |
PLUGIN_URI_PREFIX| Constructor and Description |
|---|
CatalogManagerController(CatalogManagerService catalogManagerService) |
| Modifier and Type | Method and Description |
|---|---|
String |
deactivateCatalog(String id,
org.springframework.ui.Model model) |
CatalogModel |
getCatalog(String id) |
String |
handleException(Exception e,
javax.servlet.http.HttpServletRequest request) |
ErrorMessageResponse |
handleUnknownCatalogException(UnknownCatalogException e) |
String |
listCatalogs(org.springframework.ui.Model model)
Show the available catalogs.
|
String |
loadCatalog(String id,
org.springframework.ui.Model model)
Loads a catalog by it's id.
|
getId, getUripublic static final String ID
public static final String URI
public static final String LOAD_LIST_URI
public static final String VIEW_NAME
@Autowired public CatalogManagerController(CatalogManagerService catalogManagerService)
@RequestMapping(method=GET) public String listCatalogs(org.springframework.ui.Model model)
model - UnknownCatalogException@RequestMapping(value="/activation",
params="activate",
method=POST)
public String loadCatalog(@RequestParam(value="id",required=false)
String id,
org.springframework.ui.Model model)
id - model - @RequestMapping(value="/activation",
params="deactivate",
method=POST)
public String deactivateCatalog(@RequestParam(value="id",required=false)
String id,
org.springframework.ui.Model model)
@RequestMapping(value="/view/{id}",
method=GET)
@ResponseBody
public CatalogModel getCatalog(@PathVariable
String id)
throws UnknownCatalogException
UnknownCatalogException@ExceptionHandler(value={java.lang.Exception.class,java.lang.RuntimeException.class})
@ResponseStatus(value=INTERNAL_SERVER_ERROR)
public String handleException(Exception e,
javax.servlet.http.HttpServletRequest request)
@ExceptionHandler(value=UnknownCatalogException.class) @ResponseBody @ResponseStatus(value=BAD_REQUEST) public ErrorMessageResponse handleUnknownCatalogException(UnknownCatalogException e)
Copyright © 2014. All Rights Reserved.