Class ExpandedEntityReader
java.lang.Object
de.hybris.platform.odata2services.odata.processor.reader.AbstractEntityReader
de.hybris.platform.odata2services.odata.processor.reader.ExpandedEntityReader
- All Implemented Interfaces:
EntityReader
The ExpandedEntityReader reads from the commerce suite a navigation property that is a collection
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected NavigationSegmentExplorerbooleanisApplicable(org.apache.olingo.odata2.api.uri.UriInfo uriInfo) Indicates whether this EntityReader can read the requested informationorg.apache.olingo.odata2.api.processor.ODataResponseread(ItemLookupRequest itemLookupRequest) Reads from the commerce suite the requested informationvoidsetNavigationSegmentExplorer(NavigationSegmentExplorer navigationSegmentExplorer) Methods inherited from class de.hybris.platform.odata2services.odata.processor.reader.AbstractEntityReader
getPersistenceService, getResponseWriter, handleAssociationMultiplicityRetrievalError, setPersistenceService, setResponseWriter, setTypePermissionService, validateReadPermission
-
Constructor Details
-
ExpandedEntityReader
public ExpandedEntityReader()
-
-
Method Details
-
isApplicable
public boolean isApplicable(org.apache.olingo.odata2.api.uri.UriInfo uriInfo) Description copied from interface:EntityReaderIndicates whether this EntityReader can read the requested information- Parameters:
uriInfo- Used to determine whether this EntityReader is applicable- Returns:
trueif this EntityReader can do the read, otherwisefalse
-
read
public org.apache.olingo.odata2.api.processor.ODataResponse read(ItemLookupRequest itemLookupRequest) throws org.apache.olingo.odata2.api.exception.ODataException Description copied from interface:EntityReaderReads from the commerce suite the requested information- Parameters:
itemLookupRequest- Parameter object that contains the request- Returns:
- The result provided as an
ODataResponse - Throws:
org.apache.olingo.odata2.api.exception.ODataException- When an error occurs retrieving the entity
-