@Controller @RequestMapping(value="/plugin/metadata-manager") public class MetadataManagerController extends MolgenisPluginController
| Modifier and Type | Field and Description |
|---|---|
static String |
METADATA_MANAGER |
static String |
URI |
PLUGIN_URI_PREFIX| Constructor and Description |
|---|
MetadataManagerController(MenuReaderService menuReaderService,
org.molgenis.data.i18n.LanguageService languageService,
org.molgenis.data.settings.AppSettings appSettings,
MetadataManagerService metadataManagerService) |
| Modifier and Type | Method and Description |
|---|---|
EditorAttributeResponse |
createEditorAttribute() |
EditorEntityTypeResponse |
createEditorEntityType() |
EditorEntityTypeResponse |
getEditorEntityType(String id) |
List<EditorPackageIdentifier> |
getEditorPackages() |
ErrorMessageResponse |
handleRuntimeException(RuntimeException e) |
ErrorMessageResponse |
handleUnknownEntityException(UnknownEntityException e) |
String |
init(org.springframework.ui.Model model) |
void |
upsertEntityType(EditorEntityType editorEntityType) |
getId, getPluginSettings, getUripublic static final String METADATA_MANAGER
public static final String URI
public MetadataManagerController(MenuReaderService menuReaderService, org.molgenis.data.i18n.LanguageService languageService, org.molgenis.data.settings.AppSettings appSettings, MetadataManagerService metadataManagerService)
@RequestMapping(value="/**",
method=GET)
public String init(org.springframework.ui.Model model)
@ResponseBody
@RequestMapping(value="/editorPackages",
method=GET,
produces="application/json")
public List<EditorPackageIdentifier> getEditorPackages()
@ResponseBody
@RequestMapping(value="/entityType/{id:.*}",
method=GET,
produces="application/json")
public EditorEntityTypeResponse getEditorEntityType(@PathVariable(value="id")
String id)
@ResponseBody
@RequestMapping(value="/create/entityType",
method=GET,
produces="application/json")
public EditorEntityTypeResponse createEditorEntityType()
@ResponseStatus(value=OK)
@RequestMapping(value="/entityType",
method=POST,
consumes="application/json")
public void upsertEntityType(@RequestBody
EditorEntityType editorEntityType)
@ResponseBody
@RequestMapping(value="/create/attribute",
method=GET,
produces="application/json")
public EditorAttributeResponse createEditorAttribute()
@ResponseBody @ResponseStatus(value=BAD_REQUEST) @ExceptionHandler(value=org.molgenis.data.UnknownEntityException.class) public ErrorMessageResponse handleUnknownEntityException(UnknownEntityException e)
@ResponseBody @ResponseStatus(value=INTERNAL_SERVER_ERROR) @ExceptionHandler(value=java.lang.RuntimeException.class) public ErrorMessageResponse handleRuntimeException(RuntimeException e)
Copyright © 2017. All rights reserved.