Class EntityProcessorData
java.lang.Object
com.ptc.odata.core.entity.processor.EntityProcessorData
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
NavigationProcessorData
An EntityProcessor parameter object used for creating, reading, updating and deleting entities.
Supported API: true
Extendable: false
Supported API: true
Extendable: false
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturns the requested entity configuration
Supported API: trueReturns the requested entity set name
Supported API: trueReturns the requested entity type
Supported API: truejakarta.servlet.http.HttpServletRequestReturns the originalHttpServletRequest
Supported API: trueThe locale for request
Supported API: trueReturnsEntityOperationof the request.Returns theEntityObjectProcessorfor the requested entity set name.getProcessor(String entitySetName) Deprecated.getProcessorByEntityFQNString(String entityFQNString) Returns theEntityObjectProcessorfor the given entity full qualified name.Returns the requested select URL context for the requested entity type
Supported API: truebooleanMethod to check if the filter is applied on the results
.voidsetContinueProcessing(boolean continueProcessing) Sets whether or not EntityProcessors will continue with the default implementation processing at the completion of a javascript call.voidsetFilterAppliedOnResults(boolean filterAppliedOnResults) Indicates that the results have been filtered and no further filtering/sorting is required.
Setting this flag tells the Framework and subsequent processing to stop filtering the entity collection from this point onwards.
-
Method Details
-
getLocale
The locale for request
Supported API: true- Returns:
- the
Localefor the request
-
getEntityConfig
Returns the requested entity configuration
Supported API: true- Returns:
- the
EntityConfigfor the request
-
getEntitySetName
Returns the requested entity set name
Supported API: true- Returns:
- the requested entity set name
-
getEntityType
Returns the requested entity type
Supported API: true- Returns:
- the request entity type
-
getSelectedURLContext
Returns the requested select URL context for the requested entity type
Supported API: true- Returns:
- the context URL for the requested entity type
- Throws:
org.apache.olingo.server.api.serializer.SerializerExceptionPTCODataSerializerException
-
getOperation
ReturnsEntityOperationof the request. Defaults to READ if not specified.
Supported API: true- Returns:
- the
EntityOperationof the request
-
getProcessor
Deprecated.Returns theEntityObjectProcessorfor the given entity set name.
Supported API: true- Parameters:
entitySetName- the entity set name for which to get theEntityObjectProcessor- Returns:
- the
EntityObjectProcessorfor the given entity set name
-
getProcessorByEntityFQNString
Returns theEntityObjectProcessorfor the given entity full qualified name.
Supported API: true- Parameters:
entityFQNString- the entity full qualified name for which to get theEntityObjectProcessor- Returns:
- the
EntityObjectProcessorfor the given entity set name
-
getProcessor
Returns theEntityObjectProcessorfor the requested entity set name.
Supported API: true- Returns:
- the
EntityObjectProcessorfor the requested entity set name
-
setContinueProcessing
public void setContinueProcessing(boolean continueProcessing) Sets whether or not EntityProcessors will continue with the default implementation processing at the completion of a javascript call.
Supported API: true- Parameters:
continueProcessing- if true, continues with the default processing ; otherwise, continues with the javascript implementation.
-
getHttpRequest
public jakarta.servlet.http.HttpServletRequest getHttpRequest()Returns the originalHttpServletRequest
Supported API: true- Returns:
- the original
HttpServletRequest
-
isFilterAppliedOnResults
public boolean isFilterAppliedOnResults()Method to check if the filter is applied on the results
.
Supported API: true- Returns:
-
setFilterAppliedOnResults
public void setFilterAppliedOnResults(boolean filterAppliedOnResults) Indicates that the results have been filtered and no further filtering/sorting is required.
Setting this flag tells the Framework and subsequent processing to stop filtering the entity collection from this point onwards. This effectively prevents any post filtering.
Setting this flag can be desirable in several scenarios:
- When implementing basic/custom entities where filtering is already done inreadEntitySetData(EntityProcessorData)
- When implementing navigations, where filtering is already done ingetRelatedEntityCollection(NavigationProcessorData)
- When implementing bound functions on an entity set, where the binding entity collection is already filtered.
Supported API: true
-