Class RequiredAttributeValidator
java.lang.Object
com.ptc.odata.core.entity.processor.RequiredAttributeValidator
This is a class that helps validate whether or not required attributes are actually set for entities being created.
The primary intention of this validation is to prevent a hit to the database if something does not comply with the EDM.
In other words, the main intention to fail the request, as soon as possible if all of the required attributes are not provided on the request as expected.
Supported API: true
Extendable: false
Supported API: true
Extendable: false
-
Method Summary
Modifier and TypeMethodDescriptionvoidvalidateActionRequiredAttributes(ActionProcessorData processorData) For actions (bound invalid input: '&' unbound), verify that all parameters are set according to the EDM.
-
Method Details
-
validateActionRequiredAttributes
public void validateActionRequiredAttributes(ActionProcessorData processorData) throws org.apache.olingo.server.api.ODataApplicationException For actions (bound invalid input: '&' unbound), verify that all parameters are set according to the EDM. Checks that non-nullable properties and non-nullable navigation properties in ComplexType and Entity parameters have a value (i.e. not null and not empty array for collections).
Supported API: true- Parameters:
processorData-- Throws:
org.apache.olingo.server.api.ODataApplicationException
-