Class EntityIDUtils
java.lang.Object
com.ptc.odata.core.entity.processor.EntityIDUtils
Utility for finding an entity identity for a given URI or in order to generate a URI with an the entity identity.
Supported API: true
Extendable: false
Supported API: true
Extendable: false
-
Method Summary
Modifier and TypeMethodDescriptiongetEntityId(org.apache.olingo.commons.api.data.Entity entity) Return the requested entity ID string for the givenEntity
Supported API: truestatic EntityIDUtilsReturns instance of this class.Returns the requested entity ID string if specified in the request.
-
Method Details
-
getInstance
Returns instance of this class.
Supported API: true- Returns:
-
getRequestedId
Returns the requested entity ID string if specified in the request.
Supported API: true- Parameters:
data- the entity data in the request- Returns:
- the entity ID from the request
-
getEntityId
Return the requested entity ID string for the givenEntity
Supported API: true- Parameters:
entity- the entity for which to get the entity ID- Returns:
- the entity ID for the given entity
-