Class DefaultODataFacade
- java.lang.Object
-
- de.hybris.platform.odata2webservices.odata.impl.DefaultODataFacade
-
- All Implemented Interfaces:
ODataFacade
public class DefaultODataFacade extends java.lang.Object implements ODataFacade
A default implementation of theODataFacade. This implementation delegates to the odata classes to derive the ODataResponse for the request.
-
-
Constructor Summary
Constructors Constructor Description DefaultODataFacade()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DefaultIntegrationODataRequestHandlercreateRequestHandler(org.apache.olingo.odata2.api.processor.ODataContext oDataContext, org.apache.olingo.odata2.api.ODataService oDataService)protected EdmxProviderValidatorgetEdmxProviderValidator()org.apache.olingo.odata2.api.processor.ODataResponsehandleGetEntity(org.apache.olingo.odata2.api.processor.ODataContext oDataContext)Obtains ODataResponse with a stream that contains entity data model.org.apache.olingo.odata2.api.processor.ODataResponsehandleGetSchema(org.apache.olingo.odata2.api.processor.ODataContext oDataContext)Obtains ODataResponse with a stream that contains odata EDMX schema specified by theoDataContext.org.apache.olingo.odata2.api.processor.ODataResponsehandlePost(org.apache.olingo.odata2.api.processor.ODataContext oDataContext)Creates an integration object item based on request.org.apache.olingo.odata2.api.processor.ODataResponsehandleRequest(org.apache.olingo.odata2.api.processor.ODataContext oDataContext)Handles create, read, update or delete requests on an integration object item.protected org.apache.olingo.odata2.api.processor.ODataRequestodataRequest(org.apache.olingo.odata2.api.processor.ODataContext oDataContext)voidsetEdmxProviderValidator(EdmxProviderValidator edmxProviderValidator)voidsetIntegrationObjectMetadataPermissionService(IntegrationObjectMetadataPermissionService integrationObjectMetadataPermissionService)voidsetODataServiceFactory(org.apache.olingo.odata2.api.ODataServiceFactory oDataServiceFactory)protected org.apache.olingo.odata2.api.processor.ODataResponsevalidatedResponse(org.apache.olingo.odata2.api.processor.ODataResponse oDataResponse)
-
-
-
Method Detail
-
handleGetSchema
public org.apache.olingo.odata2.api.processor.ODataResponse handleGetSchema(org.apache.olingo.odata2.api.processor.ODataContext oDataContext)
Description copied from interface:ODataFacadeObtains ODataResponse with a stream that contains odata EDMX schema specified by theoDataContext.- Specified by:
handleGetSchemain interfaceODataFacade- Parameters:
oDataContext- contains information about what schema should be retrieved.- Returns:
- requested ODataResponse with a stream that contains EDMX schema
-
handleGetEntity
public org.apache.olingo.odata2.api.processor.ODataResponse handleGetEntity(org.apache.olingo.odata2.api.processor.ODataContext oDataContext)
Description copied from interface:ODataFacadeObtains ODataResponse with a stream that contains entity data model.- Specified by:
handleGetEntityin interfaceODataFacade- Parameters:
oDataContext- contains information about what entity should be retrieved.- Returns:
- requested ODataResponse with a stream that contains entity data.
-
handlePost
public org.apache.olingo.odata2.api.processor.ODataResponse handlePost(org.apache.olingo.odata2.api.processor.ODataContext oDataContext)
Description copied from interface:ODataFacadeCreates an integration object item based on request.- Specified by:
handlePostin interfaceODataFacade- Parameters:
oDataContext- contains information about what item should be created- Returns:
- response with information about the newly created item
-
handleRequest
public org.apache.olingo.odata2.api.processor.ODataResponse handleRequest(org.apache.olingo.odata2.api.processor.ODataContext oDataContext)
Description copied from interface:ODataFacadeHandles create, read, update or delete requests on an integration object item.- Specified by:
handleRequestin interfaceODataFacade- Parameters:
oDataContext- contains the information about the item- Returns:
- response with information about the item
-
odataRequest
protected org.apache.olingo.odata2.api.processor.ODataRequest odataRequest(org.apache.olingo.odata2.api.processor.ODataContext oDataContext)
-
createRequestHandler
protected DefaultIntegrationODataRequestHandler createRequestHandler(org.apache.olingo.odata2.api.processor.ODataContext oDataContext, org.apache.olingo.odata2.api.ODataService oDataService)
-
validatedResponse
protected org.apache.olingo.odata2.api.processor.ODataResponse validatedResponse(org.apache.olingo.odata2.api.processor.ODataResponse oDataResponse)
-
setODataServiceFactory
public void setODataServiceFactory(org.apache.olingo.odata2.api.ODataServiceFactory oDataServiceFactory)
-
getEdmxProviderValidator
protected EdmxProviderValidator getEdmxProviderValidator()
-
setEdmxProviderValidator
public void setEdmxProviderValidator(EdmxProviderValidator edmxProviderValidator)
-
setIntegrationObjectMetadataPermissionService
public void setIntegrationObjectMetadataPermissionService(IntegrationObjectMetadataPermissionService integrationObjectMetadataPermissionService)
-
-