java.lang.Object
de.hybris.platform.odata2services.odata.processor.handler.persistence.PersistenceHandler
de.hybris.platform.odata2services.odata.processor.handler.persistence.PatchPersistenceHandler
All Implemented Interfaces:
ODataProcessorHandler<PersistenceParam,org.apache.olingo.odata2.api.processor.ODataResponse>

public class PatchPersistenceHandler extends PersistenceHandler
Implementation of PersistenceHandler that processes OData PATCH requests.
  • Constructor Details

    • PatchPersistenceHandler

      public PatchPersistenceHandler()
  • Method Details

    • convertToODataEntry

      protected org.apache.olingo.odata2.api.ep.entry.ODataEntry convertToODataEntry(PersistenceParam param) throws org.apache.olingo.odata2.api.edm.EdmException
      Description copied from class: PersistenceHandler
      Converts the request payload to an ODataEntry
      Overrides:
      convertToODataEntry in class PersistenceHandler
      Parameters:
      param - Parameters from the request
      Returns:
      ODataEntry representing the request payload
      Throws:
      org.apache.olingo.odata2.api.edm.EdmException - is thrown when there's a failure in the conversion
    • buildResponse

      protected org.apache.olingo.odata2.api.processor.ODataResponse.ODataResponseBuilder buildResponse(PersistenceParam param, PersistenceContext ctx, org.apache.olingo.odata2.api.ep.entry.ODataEntry persistedEntry) throws org.apache.olingo.odata2.api.exception.ODataException
      Description copied from class: PersistenceHandler
      Creates an ODataResponse for the request
      Overrides:
      buildResponse in class PersistenceHandler
      Parameters:
      param - Parameters from the request
      ctx - Storage request contains the information on how to create the response
      persistedEntry - The persisted ODataEntry
      Returns:
      The ODataResponse
      Throws:
      org.apache.olingo.odata2.api.exception.ODataException - is thrown if a failure occurs creating the response
    • getIntegrationKeyToODataEntryGenerator

      protected IntegrationKeyToODataEntryGenerator getIntegrationKeyToODataEntryGenerator()
    • setIntegrationKeyToODataEntryGenerator

      public void setIntegrationKeyToODataEntryGenerator(IntegrationKeyToODataEntryGenerator integrationKeyToODataEntryGenerator)
    • getRequestValidator

      protected RequestValidator getRequestValidator()
    • setRequestValidator

      public void setRequestValidator(RequestValidator validator)
      Injects implementation of the entry validator to use.
      Parameters:
      validator - a validator to use for validating the payload and/or the integration key. If null, no validation will be performed.