Package io.jmix.rest.impl
Class RestControllerUtils
java.lang.Object
io.jmix.rest.impl.RestControllerUtils
-
Field Summary
Modifier and TypeFieldDescriptionprotected Metadata
protected RestJsonTransformations
protected FetchPlanRepository
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetMetaClass
(String entityName) Finds metaClass by entityName.Finds a view for a given metaClass.transformEntityNameIfRequired
(String entityName, String modelVersion, JsonTransformationDirection direction) transformJsonIfRequired
(String entityName, String modelVersion, JsonTransformationDirection direction, String json)
-
Field Details
-
metadata
-
restJsonTransformations
-
viewRepository
-
-
Constructor Details
-
RestControllerUtils
public RestControllerUtils()
-
-
Method Details
-
getMetaClass
Finds metaClass by entityName. Throws a RestAPIException if metaClass not found -
getView
Finds a view for a given metaClass. Throws a RestAPIException if Fetch plan not found -
transformEntityNameIfRequired
public String transformEntityNameIfRequired(String entityName, @Nullable String modelVersion, JsonTransformationDirection direction) -
transformJsonIfRequired
public String transformJsonIfRequired(String entityName, @Nullable String modelVersion, JsonTransformationDirection direction, String json)
-