Package io.jmix.rest.impl.service
Class ServicesControllerManager
java.lang.Object
io.jmix.rest.impl.service.ServicesControllerManager
Class that executes business logic required by the
ServicesController
. It
performs middleware services invocations.-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.springframework.beans.factory.BeanFactory
protected DatatypeRegistry
protected EntitySerialization
protected Metadata
protected RestControllerUtils
protected RestParseUtils
protected RestServicesConfiguration
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription_invokeServiceMethod
(String serviceName, String methodName, org.springframework.http.HttpMethod httpMethod, List<String> paramNames, List<String> paramValuesStr, String modelVersion) protected Type
getMethodReturnTypeArgument
(Method serviceMethod) getServiceInfo
(String serviceName) invokeServiceMethodGet
(String serviceName, String methodName, Map<String, String> paramsMap, String modelVersion) invokeServiceMethodPost
(String serviceName, String methodName, String paramsJson, String modelVersion) protected boolean
isEntitiesCollection
(Collection collection)
-
Field Details
-
restServicesConfiguration
-
entitySerializationAPI
-
restParseUtils
-
restControllerUtils
-
metadata
-
beanFactory
@Autowired protected org.springframework.beans.factory.BeanFactory beanFactory -
datatypeRegistry
-
-
Constructor Details
-
ServicesControllerManager
public ServicesControllerManager()
-
-
Method Details
-
invokeServiceMethodGet
@Nullable public ServicesControllerManager.ServiceCallResult invokeServiceMethodGet(String serviceName, String methodName, Map<String, String> paramsMap, String modelVersion) throws Throwable- Throws:
Throwable
-
invokeServiceMethodPost
@Nullable public ServicesControllerManager.ServiceCallResult invokeServiceMethodPost(String serviceName, String methodName, String paramsJson, String modelVersion) throws Throwable - Throws:
Throwable
-
getServiceInfos
-
getServiceInfo
-
_invokeServiceMethod
@Nullable protected ServicesControllerManager.ServiceCallResult _invokeServiceMethod(String serviceName, String methodName, org.springframework.http.HttpMethod httpMethod, List<String> paramNames, List<String> paramValuesStr, String modelVersion) throws Throwable - Throws:
Throwable
-
getMethodReturnTypeArgument
-
isEntitiesCollection
-