Class GenericFacet

java.lang.Object
com.appiancorp.common.query.Facet<Object>
com.appiancorp.common.query.GenericFacet
All Implemented Interfaces:
com.appiancorp.common.query.ReadOnlyFacet<Object>

@GwtCompatible public final class GenericFacet extends Facet<Object>

This class holds the metadata for a facet and its options. For example, a Car record could have a Color facet with the options Black, White, Silver.

  • Constructor Details

    • GenericFacet

      public GenericFacet(String name, boolean isVisible, String defaultOption, List<FacetOption<Object>> options, int numOmittedOptions, int omittedOptionsDataCount, boolean isExclusiveOptions)
      Constructs a new facet.
      Parameters:
      name - The name of the facet.
      options - The list of options for this facet.
      defaultOption - The name of the label of the option to be applied by default
      numOmittedOptions - The number of additional options that are available, but are not included in the provided list of options.
      omittedOptionsDataCount - The number of objects that contain data matched by the omitted options. This allows the UI to present the generic option "Other" along with a count.
      isExclusiveOptions - Whether this facet's options are exclusive or not. See Facet.isExclusiveOptions().
    • GenericFacet

      public GenericFacet(String name, boolean isVisible, String defaultOption, List<FacetOption<Object>> options, int numOmittedOptions, int omittedOptionsDataCount, boolean isExclusiveOptions, String facetType, String sourceRef)
  • Method Details