Interface BadgeTileComponent<C extends BadgeTileComponent<C>>

All Superinterfaces:
Comparable<C>, Component<C>, Copyable<C>, CustomCssComponent<C>, Serializable, TileComponent<C>
All Known Implementing Classes:
DefaultBadgeTileComponent

public interface BadgeTileComponent<C extends BadgeTileComponent<C>> extends TileComponent<C>
Represents the metadata for a TileComponentTypes.BADGE.
Since:
Metadata Service 2.0.7, Release Train 2.3.0
Author:
Jon Fleschler (jfleschler)
  • Method Details

    • maxBadgesToShow

      default C maxBadgesToShow(int maxBadgesToShow)
      Sets the maximum number of badges to show in the tile.
      Parameters:
      maxBadgesToShow - the maximum number of badges to show
      Returns:
      this
    • hydrateEndpoint

      default C hydrateEndpoint(Endpoint<?> endpoint)
      Configures the hydration endpoint for the lookup. This endpoint tells the lookup where to go to retrieve the hydrated value of the column.

      This is useful when the associated domain only stores an entity ID in the field value, but we wish to display additional entity information in the column.

      Parameters:
      endpoint - the hydrate endpoint
      Returns:
      this
    • hydrateEndpoint

      default C hydrateEndpoint(UnaryOperator<Endpoint<?>> fn)
      Configures the hydration endpoint for the lookup. This endpoint tells the lookup where to go to retrieve the hydrated value of the column.

      This is useful when the associated domain only stores an entity ID in the field value, but we wish to display additional entity information in the column.

      Parameters:
      fn - a function to configure the hydrate endpoint
      Returns:
      this
    • hydrateUrl

      default C hydrateUrl(String url)
      Returns:
      this
    • hydrateScope

      default C hydrateScope(String scope)
      Returns:
      this
    • hydrateUrl

      default C hydrateUrl(String url, String scope)
      Configures hydrateEndpoint(UnaryOperator) url and scope.
      Returns:
      this
    • getHydrateEndpoint

      default Endpoint<?> getHydrateEndpoint()
      Returns:
      the hydrate endpoint
    • findHydrateEndpoint

      default Optional<Endpoint<?>> findHydrateEndpoint()
      Returns:
      an optional with hydrate endpoint, or empty