Class EntityIDUtils

java.lang.Object
com.ptc.odata.core.entity.processor.EntityIDUtils

public class EntityIDUtils extends Object
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
  • Method Details

    • getInstance

      public static EntityIDUtils getInstance()
      Returns instance of this class.

      Supported API: true
      Returns:
    • getRequestedId

      public String getRequestedId(EntityProcessorData data)
      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

      public String getEntityId(org.apache.olingo.commons.api.data.Entity entity)
      Return the requested entity ID string for the given Entity

      Supported API: true
      Parameters:
      entity - the entity for which to get the entity ID
      Returns:
      the entity ID for the given entity