Class FacetParameter

java.lang.Object
com.loop54.model.request.parameters.facets.FacetParameter
Direct Known Subclasses:
DistinctFacetParameter, RangeFacetParameter

public abstract class FacetParameter extends Object
Used for faceting an entity collection based on the attributes of the entities.
  • Field Details

    • name

      public String name
      Name of the facet to return to the client. Can be a 'friendly' name to show to the user. If not set the attributeName will be used.
    • attributeName

      public final String attributeName
      The name of the attribute on the entities to facet the result on. If the attribute does not exist on any entity, all entities will pass and an empty facet will be returned.
  • Constructor Details

    • FacetParameter

      protected FacetParameter(String attributeName)
  • Method Details

    • getType

      public abstract FacetType getType()
      Type of the facet. Range or Distinct.
      Returns:
      Type of the facet parameter