use of io.github.edmm.model.PluginSupportResult in project winery by eclipse.
the class EdmmResource method checkModelSupport.
@GET
@Path("check-model-support")
@Produces(MediaType.APPLICATION_JSON)
public Response checkModelSupport() {
EntityGraph graph = RestUtils.getEdmmEntityGraph(this.element, true);
GraphNormalizer.normalize(graph);
PluginService pluginService = PluginManager.getInstance().getPluginService();
// getting the model from the graph
DeploymentModel model = new DeploymentModel(UUID.randomUUID().toString(), graph);
List<PluginSupportResult> result = pluginService.checkModelSupport(model);
return Response.ok().type(MediaType.APPLICATION_JSON).entity(result).build();
}
Aggregations