Class MetadataManagerController
- java.lang.Object
-
- org.molgenis.web.PluginController
-
- org.molgenis.core.ui.controller.VuePluginController
-
- org.molgenis.metadata.manager.controller.MetadataManagerController
-
@Controller @RequestMapping("/plugin/metadata-manager") public class MetadataManagerController extends org.molgenis.core.ui.controller.VuePluginController
-
-
Field Summary
Fields Modifier and Type Field Description static StringMETADATA_MANAGERstatic StringURI
-
Constructor Summary
Constructors Constructor Description MetadataManagerController(org.molgenis.web.menu.MenuReaderService menuReaderService, org.molgenis.settings.AppSettings appSettings, MetadataManagerService metadataManagerService, org.molgenis.security.user.UserAccountService userAccountService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EditorAttributeResponsecreateEditorAttribute()EditorEntityTypeResponsecreateEditorEntityType()EditorEntityTypeResponsegetEditorEntityType(String id)List<EditorPackageIdentifier>getEditorPackages()org.molgenis.web.ErrorMessageResponsehandleRuntimeException(RuntimeException e)Stringinit(org.springframework.ui.Model model)voidupsertEntityType(EditorEntityType editorEntityType)
-
-
-
Field Detail
-
METADATA_MANAGER
public static final String METADATA_MANAGER
- See Also:
- Constant Field Values
-
URI
public static final String URI
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MetadataManagerController
public MetadataManagerController(org.molgenis.web.menu.MenuReaderService menuReaderService, org.molgenis.settings.AppSettings appSettings, MetadataManagerService metadataManagerService, org.molgenis.security.user.UserAccountService userAccountService)
-
-
Method Detail
-
init
@GetMapping("/**") public String init(org.springframework.ui.Model model)
-
getEditorPackages
@ResponseBody @GetMapping(value="/editorPackages", produces="application/json") public List<EditorPackageIdentifier> getEditorPackages()
-
getEditorEntityType
@ResponseBody @GetMapping(value="/entityType/{id:.*}", produces="application/json") public EditorEntityTypeResponse getEditorEntityType(@PathVariable("id") String id)
-
createEditorEntityType
@ResponseBody @GetMapping(value="/create/entityType", produces="application/json") public EditorEntityTypeResponse createEditorEntityType()
-
upsertEntityType
@ResponseStatus(OK) @PostMapping(value="/entityType", consumes="application/json") public void upsertEntityType(@RequestBody EditorEntityType editorEntityType)
-
createEditorAttribute
@ResponseBody @GetMapping(value="/create/attribute", produces="application/json") public EditorAttributeResponse createEditorAttribute()
-
handleRuntimeException
@ResponseBody @ResponseStatus(INTERNAL_SERVER_ERROR) @ExceptionHandler(java.lang.RuntimeException.class) public org.molgenis.web.ErrorMessageResponse handleRuntimeException(RuntimeException e)
-
-