Class ValidateFluentHelper
java.lang.Object
com.sap.cloud.sdk.datamodel.odata.helper.FluentHelperBasic<FluentHelperT,ObjectT,ResultT>
com.sap.cloud.sdk.datamodel.odata.helper.FluentHelperFunction<FluentHelperT,ObjectT,ResultT>
com.sap.cloud.sdk.datamodel.odata.helper.CollectionValuedFluentHelperFunction<ValidateFluentHelper,ValidationMessages,List<ValidationMessages>>
com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.purchaserequisition.ValidateFluentHelper
- All Implemented Interfaces:
FluentHelperExecutable<Object>
public class ValidateFluentHelper
extends CollectionValuedFluentHelperFunction<ValidateFluentHelper,ValidationMessages,List<ValidationMessages>>
Fluent helper for the Validate OData function import.
-
Field Summary
Fields inherited from class com.sap.cloud.sdk.datamodel.odata.helper.FluentHelperBasic
csrfTokenRetriever, entityCollection -
Constructor Summary
ConstructorsConstructorDescriptionValidateFluentHelper(String servicePath, String purchaseRequisition) Creates a fluent helper object that will execute the Validate OData function import with the provided parameters. -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.http.client.methods.HttpUriRequestcreateRequest(URI uri) executeRequest(HttpDestinationProperties destination) Execute this function import.protected Class<ValidationMessages>protected Stringprotected com.google.gson.JsonElementrefineJsonResponse(com.google.gson.JsonElement jsonElement) Methods inherited from class com.sap.cloud.sdk.datamodel.odata.helper.FluentHelperFunction
executeMultiple, executeSingle, getCsrfTokenRetriever, toRequest, withCsrfToken, withoutCsrfTokenMethods inherited from class com.sap.cloud.sdk.datamodel.odata.helper.FluentHelperBasic
getHeaders, getParametersForRequestOnly, getServicePath, getThis, withHeader, withHeaders, withQueryParameter
-
Constructor Details
-
ValidateFluentHelper
Creates a fluent helper object that will execute the Validate OData function import with the provided parameters. To perform execution, call theexecuteRequestmethod on the fluent helper object.- Parameters:
servicePath- Service path to be used to call the functions against.purchaseRequisition- Constraints: noneOriginal parameter name from the Odata EDM: PurchaseRequisition
-
-
Method Details
-
getEntityClass
- Specified by:
getEntityClassin classFluentHelperBasic<ValidateFluentHelper,ValidationMessages, List<ValidationMessages>>
-
getFunctionName
- Specified by:
getFunctionNamein classFluentHelperFunction<ValidateFluentHelper,ValidationMessages, List<ValidationMessages>>
-
refineJsonResponse
@Nullable protected com.google.gson.JsonElement refineJsonResponse(@Nullable com.google.gson.JsonElement jsonElement) - Overrides:
refineJsonResponsein classFluentHelperFunction<ValidateFluentHelper,ValidationMessages, List<ValidationMessages>>
-
getParameters
- Specified by:
getParametersin classFluentHelperFunction<ValidateFluentHelper,ValidationMessages, List<ValidationMessages>>
-
createRequest
- Specified by:
createRequestin classFluentHelperFunction<ValidateFluentHelper,ValidationMessages, List<ValidationMessages>>
-
executeRequest
@Nonnull public List<ValidationMessages> executeRequest(@Nonnull HttpDestinationProperties destination) Execute this function import.- Specified by:
executeRequestin interfaceFluentHelperExecutable<Object>- Specified by:
executeRequestin classFluentHelperBasic<ValidateFluentHelper,ValidationMessages, List<ValidationMessages>>
-