Package io.jmix.samples.rest.service
Class RestTestServiceBean
java.lang.Object
io.jmix.samples.rest.service.RestTestServiceBean
- All Implemented Interfaces:
RestTestService
@Service("jmix_RestTestService")
public class RestTestServiceBean
extends Object
implements RestTestService
-
Field Summary
Modifier and TypeFieldDescriptionprotected DataManager
protected FetchPlanRepository
protected Metadata
Fields inherited from interface io.jmix.samples.rest.service.RestTestService
NAME
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionconcatCarVins
(List<Car> cars) void
findAllCars
(String viewName) getPojo()
void
void
int
methodWithListOfMapParam
(List<Map<String, BigDecimal>> param) methodWithOptionalArgs
(String arg1, String arg2, String arg3) int
methodWithPojoCollectionParameter
(List<TestPojo> pojoCollection) methodWithPojoCollectionParameter2
(List<TestPojo> pojoCollection) int
methodWithPrimitiveListArguments
(List<String> stringList, int[] intArray, int intArgument) void
overloadedMethod
(int param) overloadedMethod
(String param) overloadedMethodWithOptionalArgs
(String arg1, String arg2) testBigDecimalParam
(BigDecimal param) testDateParam
(Date param) testJavaTimeParam
(LocalDate localDate, LocalDateTime localDateTime, LocalTime localTime, OffsetDateTime offsetDateTime, OffsetTime offsetTime, Time time) testNullParam
(UUID uuid) updateCarVin
(Car car, String vin) updateCarVins
(List<Car> cars, String vin) int
validatedMethod
(String code) validatedMethodResult
(String code)
-
Field Details
-
metadata
-
dataManager
-
fetchPlanRepository
-
-
Constructor Details
-
RestTestServiceBean
public RestTestServiceBean()
-
-
Method Details
-
emptyMethod
public void emptyMethod()- Specified by:
emptyMethod
in interfaceRestTestService
-
notPermittedMethod
public void notPermittedMethod()- Specified by:
notPermittedMethod
in interfaceRestTestService
-
sum
- Specified by:
sum
in interfaceRestTestService
-
methodWithCustomException
public void methodWithCustomException()- Specified by:
methodWithCustomException
in interfaceRestTestService
-
methodWithException
public void methodWithException()- Specified by:
methodWithException
in interfaceRestTestService
-
overloadedMethod
- Specified by:
overloadedMethod
in interfaceRestTestService
-
overloadedMethod
- Specified by:
overloadedMethod
in interfaceRestTestService
-
findCar
- Specified by:
findCar
in interfaceRestTestService
-
findAllCars
- Specified by:
findAllCars
in interfaceRestTestService
-
updateCarVin
- Specified by:
updateCarVin
in interfaceRestTestService
-
concatCarVins
- Specified by:
concatCarVins
in interfaceRestTestService
-
updateCarVins
- Specified by:
updateCarVins
in interfaceRestTestService
-
testNullParam
- Specified by:
testNullParam
in interfaceRestTestService
-
testDateParam
- Specified by:
testDateParam
in interfaceRestTestService
-
testJavaTimeParam
public String testJavaTimeParam(LocalDate localDate, LocalDateTime localDateTime, LocalTime localTime, OffsetDateTime offsetDateTime, OffsetTime offsetTime, Time time) - Specified by:
testJavaTimeParam
in interfaceRestTestService
-
testBigDecimalParam
- Specified by:
testBigDecimalParam
in interfaceRestTestService
-
getPojo
- Specified by:
getPojo
in interfaceRestTestService
- Throws:
Exception
-
getPojoList
- Specified by:
getPojoList
in interfaceRestTestService
- Throws:
ParseException
-
methodWithPojoParameter
- Specified by:
methodWithPojoParameter
in interfaceRestTestService
-
methodWithPojoCollectionParameter
- Specified by:
methodWithPojoCollectionParameter
in interfaceRestTestService
-
methodWithPojoCollectionParameter2
- Specified by:
methodWithPojoCollectionParameter2
in interfaceRestTestService
-
validatedMethod
- Specified by:
validatedMethod
in interfaceRestTestService
-
validatedMethodResult
- Specified by:
validatedMethodResult
in interfaceRestTestService
-
notPersistedEntity
- Specified by:
notPersistedEntity
in interfaceRestTestService
-
methodWithPrimitiveListArguments
public List<String> methodWithPrimitiveListArguments(List<String> stringList, int[] intArray, int intArgument) - Specified by:
methodWithPrimitiveListArguments
in interfaceRestTestService
-
getPojosWithNestedEntity
- Specified by:
getPojosWithNestedEntity
in interfaceRestTestService
-
getPojosWithNestedEntityWithView
- Specified by:
getPojosWithNestedEntityWithView
in interfaceRestTestService
-
methodWithListOfMapParam
- Specified by:
methodWithListOfMapParam
in interfaceRestTestService
-
methodReturnsListOfMap
- Specified by:
methodReturnsListOfMap
in interfaceRestTestService
-
getNotPersistentStringIdEntity
- Specified by:
getNotPersistentStringIdEntity
in interfaceRestTestService
-
methodWithOptionalArgs
- Specified by:
methodWithOptionalArgs
in interfaceRestTestService
-
overloadedMethodWithOptionalArgs
- Specified by:
overloadedMethodWithOptionalArgs
in interfaceRestTestService
-
overloadedMethodWithOptionalArgs
- Specified by:
overloadedMethodWithOptionalArgs
in interfaceRestTestService
-