Interface ViewFacets

All Known Implementing Classes:
ViewFacetsImpl

public interface ViewFacets
Interface for managing facets associated with a View.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addFacet(Facet facet)
    Adds a facet to a view.
    Returns a facet by its ID.
    Returns a stream of all facets associated with the view.
    void
    Removes the specified facet from the view.
  • Method Details

    • addFacet

      void addFacet(Facet facet)
      Adds a facet to a view.
      Parameters:
      facet - the facet to be added
    • getFacet

      @Nullable Facet getFacet(String id)
      Returns a facet by its ID.
      Parameters:
      id - the identifier of the facet to retrieve
      Returns:
      the facet corresponding to the given identifier, or null if no facet is associated with the identifier
    • removeFacet

      void removeFacet(Facet facet)
      Removes the specified facet from the view.
      Parameters:
      facet - the facet to be removed
    • getFacets

      Stream<Facet> getFacets()
      Returns a stream of all facets associated with the view.
      Returns:
      a stream of Facet instances associated with the view