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
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.springframework.beans.factory.BeanFactoryprotected DatatypeRegistryprotected EntitySerializationprotected Metadataprotected RestControllerUtilsprotected RestParseUtilsprotected RestServicesConfiguration -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription_invokeServiceMethod(String serviceName, String methodName, org.springframework.http.HttpMethod httpMethod, List<String> paramNames, List<String> paramValuesStr, String modelVersion) protected TypegetMethodReturnTypeArgument(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 booleanisEntitiesCollection(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
-