Class GetRelatedEntitiesRequest

java.lang.Object
com.loop54.model.request.Request
com.loop54.model.request.GetRelatedEntitiesRequest

public class GetRelatedEntitiesRequest extends Request
This class is used to configure a GetEntities request to the Loop54 e-commerce search engine.
  • Field Details

    • entity

      public Entity entity
      The entity who's related entities we want to get. Only needs the type and id set.
    • resultsOptions

      public final EntityCollectionParameters resultsOptions
      Parameters for specifying which entities to retrieve. Such as filtering, faceting, sorting and paging. Note that filtering is advised when doing this request.
  • Constructor Details

    • GetRelatedEntitiesRequest

      public GetRelatedEntitiesRequest(String entityType, String entityId)
      Parameters:
      entityType - Type of the entity to query
      entityId - Id of the entity to query
    • GetRelatedEntitiesRequest

      public GetRelatedEntitiesRequest(Entity entity)
      Parameters:
      entity - The entity to use in the query.