Class DefaultItemLookupRequestFactory

    • Constructor Detail

      • DefaultItemLookupRequestFactory

        public DefaultItemLookupRequestFactory()
    • Method Detail

      • create

        public ItemLookupRequest create​(org.apache.olingo.odata2.api.uri.UriInfo uriInfo,
                                        org.apache.olingo.odata2.api.processor.ODataContext context,
                                        java.lang.String contentType)
        Description copied from interface: ItemLookupRequestFactory
        Creates an ItemLookupRequest from the given parameters
        Specified by:
        create in interface ItemLookupRequestFactory
        Parameters:
        uriInfo - Used to create the ItemLookupRequest
        context - Used to create the ItemLookupRequest
        contentType - Used to create the ItemLookupRequest
        Returns:
        ItemLookupRequest instance
      • create

        public ItemLookupRequest create​(org.apache.olingo.odata2.api.processor.ODataContext context,
                                        org.apache.olingo.odata2.api.edm.EdmEntitySet edmEntitySet,
                                        org.apache.olingo.odata2.api.ep.entry.ODataEntry oDataEntry,
                                        java.lang.String integrationKey)
                                 throws org.apache.olingo.odata2.api.edm.EdmException
        Description copied from interface: ItemLookupRequestFactory
        Creates an ItemLookupRequest that can be used to filter items matching the integration key
        Specified by:
        create in interface ItemLookupRequestFactory
        Parameters:
        context - Used to create the ItemLookupRequest
        edmEntitySet - Used to create the ItemLookupRequest
        oDataEntry - Used to create the ItemLookupRequest
        integrationKey - Used to create the ItemLookupRequest
        Returns:
        ItemLookupRequest instance
        Throws:
        org.apache.olingo.odata2.api.edm.EdmException - if OData problem
      • create

        public ItemLookupRequest create​(org.apache.olingo.odata2.api.processor.ODataContext context,
                                        org.apache.olingo.odata2.api.edm.EdmEntitySet edmEntitySet,
                                        org.apache.commons.lang3.tuple.Pair<java.lang.String,​java.lang.String> attribute)
                                 throws org.apache.olingo.odata2.api.edm.EdmException
        Description copied from interface: ItemLookupRequestFactory
        Creates an ItemLookupRequest that can be used to filter items matching the given attribute (e.g. version = 'Staged')
        Specified by:
        create in interface ItemLookupRequestFactory
        Parameters:
        context - Used to create the ItemLookupRequest
        edmEntitySet - Used to create the ItemLookupRequest
        attribute - Used to create the ItemLookupRequest
        Returns:
        ItemLookupRequest instance
        Throws:
        org.apache.olingo.odata2.api.edm.EdmException - if OData problem
      • create

        public ItemLookupRequest create​(org.apache.olingo.odata2.api.uri.info.DeleteUriInfo uriInfo,
                                        org.apache.olingo.odata2.api.processor.ODataContext context)
        Description copied from interface: ItemLookupRequestFactory
        Creates an ItemLookupRequest from the given parameters
        Specified by:
        create in interface ItemLookupRequestFactory
        Parameters:
        uriInfo - Used to create the ItemLookupRequest
        context - Used to create the ItemLookupRequest
        Returns:
        ItemLookupRequest instance
      • createFrom

        public ItemLookupRequest createFrom​(ItemLookupRequest request,
                                            org.apache.olingo.odata2.api.edm.EdmEntitySet entitySet,
                                            org.apache.olingo.odata2.api.ep.entry.ODataEntry oDataEntry)
                                     throws org.apache.olingo.odata2.api.edm.EdmException
        Description copied from interface: ItemLookupRequestFactory
        Creates an ItemLookupRequest from the given parameters
        Specified by:
        createFrom in interface ItemLookupRequestFactory
        Parameters:
        request - base request to create new request from
        entitySet - entity set of the new lookup request
        oDataEntry - the new ODataEntry for the lookup request
        Returns:
        ItemLookupRequest instance
        Throws:
        org.apache.olingo.odata2.api.edm.EdmException - if OData problem
      • buildWithFilter

        protected de.hybris.platform.odata2services.odata.persistence.ItemLookupRequest.ItemLookupRequestBuilder buildWithFilter​(de.hybris.platform.odata2services.odata.persistence.ItemLookupRequest.ItemLookupRequestBuilder builder,
                                                                                                                                 org.apache.olingo.odata2.api.uri.UriInfo uriInfo,
                                                                                                                                 org.apache.olingo.odata2.api.processor.ODataContext context)
                                                                                                                          throws org.apache.olingo.odata2.api.uri.expression.ExceptionVisitExpression,
                                                                                                                                 org.apache.olingo.odata2.api.exception.ODataApplicationException
        Throws:
        org.apache.olingo.odata2.api.uri.expression.ExceptionVisitExpression
        org.apache.olingo.odata2.api.exception.ODataApplicationException
      • createExpressionVisitor

        protected org.apache.olingo.odata2.api.uri.expression.ExpressionVisitor createExpressionVisitor​(org.apache.olingo.odata2.api.uri.UriInfo uriInfo,
                                                                                                        org.apache.olingo.odata2.api.processor.ODataContext context)
      • hasKey

        protected static boolean hasKey​(org.apache.olingo.odata2.api.uri.UriInfo uriInfo)
      • deriveSkip

        protected java.lang.Integer deriveSkip​(org.apache.olingo.odata2.api.uri.UriInfo uriInfo)
      • deriveTop

        protected java.lang.Integer deriveTop​(java.lang.Integer uriInfoTop)
      • getServiceNameFromContext

        protected java.lang.String getServiceNameFromContext​(org.apache.olingo.odata2.api.processor.ODataContext context)
      • getIntegrationKey

        protected java.lang.String getIntegrationKey​(org.apache.olingo.odata2.api.edm.EdmEntitySet edmEntitySet,
                                                     java.util.List<org.apache.olingo.odata2.api.uri.KeyPredicate> keyPredicates)
                                              throws org.apache.olingo.odata2.api.edm.EdmException
        Throws:
        org.apache.olingo.odata2.api.edm.EdmException
      • setServiceNameExtractor

        public void setServiceNameExtractor​(ServiceNameExtractor serviceNameExtractor)
      • setODataServicesConfiguration

        public void setODataServicesConfiguration​(ODataServicesConfiguration oDataServicesConfiguration)
      • setExpressionVisitorFactory

        public void setExpressionVisitorFactory​(ExpressionVisitorFactory expressionVisitorFactory)